ftt: Fix soundhook vocalization trolls not working

This commit is contained in:
Jackzie 2021-06-18 23:47:21 -05:00
parent a7e8cd67f8
commit f692231542
No known key found for this signature in database
GPG key ID: 1E834FE36520537A
2 changed files with 1 additions and 1 deletions

Binary file not shown.

View file

@ -376,7 +376,7 @@ public Action SoundHook(int[] clients, int& numClients, char sample[PLATFORM_MAX
} }
lastButtonUser = -1; lastButtonUser = -1;
}else if(numClients > 0 && entity > 0 && entity <= MaxClients) { }else if(numClients > 0 && entity > 0 && entity <= MaxClients) {
if(StrContains(sample, "survivor/voice") > -1) { if(StrContains(sample, "survivor\\voice") > -1) {
if(HasTrollMode(entity, Troll_Honk)) { if(HasTrollMode(entity, Troll_Honk)) {
strcopy(sample, sizeof(sample), "player/footsteps/clown/concrete1.wav"); strcopy(sample, sizeof(sample), "player/footsteps/clown/concrete1.wav");
return Plugin_Changed; return Plugin_Changed;