Imported feature from dev: 688:03dd044dcdd3 - Made scream and moan commands for zombies, with spam protection.

This commit is contained in:
Richard Helgeby
2010-04-05 01:36:32 +02:00
parent 9ec9a121da
commit bac3384520
7 changed files with 237 additions and 14 deletions

View File

@ -749,14 +749,8 @@ InfectFireEffects(client)
VEffectsCreateExplosion(clientloc, flags);
}
// If cvar contains path, then continue.
decl String:sound[PLATFORM_MAX_PATH];
GetConVarString(g_hCvarsList[CVAR_INFECT_SOUND], sound, sizeof(sound));
if (sound[0])
{
// Emit infect sound from infected client.
SEffectsEmitSoundFromClient(client, sound, SNDLEVEL_SCREAMING);
}
// Emit scream sound if enabled.
ZombieSoundsScream(client);
// If energy splash effect is enabled, then continue.
new bool:esplash = GetConVarBool(g_hCvarsList[CVAR_INFECT_ESPLASH]);