mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-02-19 12:01:36 +00:00
Add srb2::Mobj::voice_reduced
This commit is contained in:
parent
764a692a5e
commit
1cadcf8804
1 changed files with 7 additions and 1 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue