Because Object has the ability to play, pause, resume and stop sounds, I think this would be very ideal for objects as well.
What was added is restricted to just actors (A_SoundVolume).
S_ChangeSoundVolume for Object
Moderator: GZDoom Developers
- Major Cooke
- Posts: 8176
- Joined: Sun Jan 28, 2007 3:55 pm
- Preferred Pronouns: He/Him
- Location: QZDoom Maintenance Team
- Pixel Eater
-
- Posts: 667
- Joined: Wed Aug 02, 2017 12:31 am
- Location: In between the Moon and you, between the buried and me.
Re: S_ChangeSoundVolume for Object
Would that mean the ability to reduce the volume of the Plasma Gun? I began to mess with the audio file recently for night-time play's sake. If so, I'd rather leave it as it is!
Re: S_ChangeSoundVolume for Object
You could already just create a simple SNDINFO patch that reduces the plasma firing sound with $volume (see [wiki]SNDINFO[/wiki]). Don't need ZScript for that.Pixel Eater wrote:Would that mean the ability to reduce the volume of the Plasma Gun? I began to mess with the audio file recently for night-time play's sake. If so, I'd rather leave it as it is!
This feature suggestion is for more advanced modding cases.
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49073
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: S_ChangeSoundVolume for Object
The issue here is: The static methods in Object play sounds that are not being assigned to any control object so you cannot change their volume retroactively with another static command because the engine never knows what sound sound needs to be modified.
- The Zombie Killer
- Posts: 1528
- Joined: Thu Jul 14, 2011 12:06 am
- Location: Gold Coast, Queensland, Australia
Re: S_ChangeSoundVolume for Object
S_Sound could be changed to return an int (which would be unique for that instance of the sound), which you could then use with S_ChangeSoundVolume to make it quieter or louder.
Re: S_ChangeSoundVolume for Object
The sound player would benefit an overall update to allow expansion, as discussed here.