Skip to content

Commit

Permalink
Fix SCP-096 audio cues able to be cancelled (#143)
Browse files Browse the repository at this point in the history
  • Loading branch information
FortyTwoFortyTwo authored Jun 17, 2024
1 parent 4473048 commit dae0a08
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions addons/sourcemod/scripting/scp_sf/scps/096.sp
Original file line number Diff line number Diff line change
Expand Up @@ -316,13 +316,13 @@ public void SCP096_OnButton(int client, int button)
{
if(Client[client].Pos[0])
{
StopSound(client, SNDCHAN_VOICE, SoundPassive);
StopSound(client, SNDCHAN_AUTO, SoundPassive);
Client[client].Pos[0] = 0.0;
}
}
else if(!Client[client].Pos[0])
{
EmitSoundToAll2(SoundPassive, client, SNDCHAN_VOICE, SNDLEVEL_MINIBIKE, _, _, _, client);
EmitSoundToAll2(SoundPassive, client, SNDCHAN_AUTO, SNDLEVEL_MINIBIKE, _, _, _, client);
Client[client].Pos[0] = 1.0;
}
}
Expand Down Expand Up @@ -357,7 +357,7 @@ static void TriggerShyGuy(int client, int target, bool full)
default:
{
if(Client[client].Pos[0])
StopSound(client, SNDCHAN_VOICE, SoundPassive);
StopSound(client, SNDCHAN_AUTO, SoundPassive);

Client[client].Pos[0] = 0.0;
Client[client].Extra3 = GetGameTime()+RageWarmup;
Expand Down

0 comments on commit dae0a08

Please sign in to comment.