mirror of
https://github.com/Jackzmc/sourcemod-plugins.git
synced 2025-05-07 05:43:21 +00:00
ftt: Fix vocalize gag
This commit is contained in:
parent
fb2295786e
commit
d260313555
2 changed files with 5 additions and 8 deletions
Binary file not shown.
|
@ -353,18 +353,15 @@ public Action SoundHook(int[] clients, int& numClients, char sample[PLATFORM_MAX
|
|||
}
|
||||
lastButtonUser = -1;
|
||||
}else if(numClients > 0 && entity > 0 && entity <= MaxClients) {
|
||||
if(HasTrollMode(entity, Troll_Honk)) {
|
||||
if(StrContains(sample, "survivor/voice") > -1) {
|
||||
if(StrContains(sample, "survivor/voice") > -1) {
|
||||
if(HasTrollMode(entity, Troll_Honk)) {
|
||||
strcopy(sample, sizeof(sample), "player/footsteps/clown/concrete1.wav");
|
||||
return Plugin_Changed;
|
||||
} else if(HasTrollMode(entity, Troll_VocalizeGag)) {
|
||||
return Plugin_Stop;
|
||||
}
|
||||
}
|
||||
}
|
||||
return Plugin_Continue;
|
||||
}
|
||||
public Action OnVocalizationProcess(int client, const char[] vocalize, int initiator) {
|
||||
if(HasTrollMode(client, Troll_VocalizeGag)) {
|
||||
return Plugin_Stop;
|
||||
|
||||
}
|
||||
return Plugin_Continue;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue