Added Actor.A_SoundVolume(int slot, double volume) function to ZScript

https://forum.zdoom.org/viewtopic.php?t=57594
This commit is contained in:
alexey.lysiuk 2017-08-31 09:45:09 +03:00
commit ca55d8993f
2 changed files with 10 additions and 0 deletions

View file

@ -979,6 +979,15 @@ DEFINE_ACTION_FUNCTION(AActor, A_StopSound)
return 0;
}
DEFINE_ACTION_FUNCTION(AActor, A_SoundVolume)
{
PARAM_SELF_PROLOGUE(AActor);
PARAM_INT(channel);
PARAM_FLOAT(volume);
S_ChangeSoundVolume(self, channel, static_cast<float>(volume));
return 0;
}
//==========================================================================
//
// These come from a time when DECORATE constants did not exist yet and