Fixed ambience (again, same fix as before)

This commit is contained in:
Greyscale 2009-06-21 23:51:23 -07:00
parent 6e0961c73b
commit c24d1a32be
3 changed files with 13 additions and 2 deletions

View File

@ -223,6 +223,7 @@ public Action:EventPlayerSpawnPost(Handle:timer, any:index)
// Forward event to modules.
WeaponsOnClientSpawnPost(index);
SEffectsOnClientSpawnPost(index);
SpawnProtectOnClientSpawnPost(index);
}

View File

@ -146,7 +146,7 @@ AmbientSoundsOnRoundEnd()
*
* @param client The client index.
*/
AmbientSoundsOnClientSpawn(client)
AmbientSoundsOnClientSpawnPost(client)
{
// If ambience is disabled, then stop.
if (!g_bAmbientSounds)

View File

@ -94,10 +94,20 @@ SEffectsOnRoundEnd()
SEffectsOnClientSpawn(client)
{
// Forward event to sub-modules.
AmbientSoundsOnClientSpawn(client);
ZombieSoundsOnClientSpawn(client);
}
/**
* Client is spawning into the game. *Post
*
* @param client The client index.
*/
SEffectsOnClientSpawnPost(client)
{
// Forward event to sub-modules.
AmbientSoundsOnClientSpawnPost(client);
}
/**
* Client has been killed.
*