Add srb2::Mobj::voice_reduced

This commit is contained in:
James R 2023-11-25 04:51:50 -08:00
parent 764a692a5e
commit 1cadcf8804

View file

@ -179,8 +179,14 @@ struct Mobj : mobj_t
// Sound
//
void voice(sfxenum_t sfx, int volume = 255) const { S_StartSoundAtVolume(this, sfx, volume); }
bool voice_playing(sfxenum_t sfx) const { return S_SoundPlaying(this, sfx); }
void voice(sfxenum_t sfx, int volume = 255) const { S_StartSoundAtVolume(this, sfx, volume); }
void voice_reduced(sfxenum_t sfx, const player_t* player, int volume = 255) const
{
S_ReducedVFXSoundAtVolume(this, sfx, volume, player);
}
void voice_loop(sfxenum_t sfx, int volume = 255) const
{
if (!voice_playing(sfx))