Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix SCP-096 audio cues able to be cancelled #143

Merged
merged 1 commit into from
Jun 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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