Fixed ambience (again, same fix as before)
This commit is contained in:
parent
6e0961c73b
commit
c24d1a32be
@ -223,6 +223,7 @@ public Action:EventPlayerSpawnPost(Handle:timer, any:index)
|
|||||||
|
|
||||||
// Forward event to modules.
|
// Forward event to modules.
|
||||||
WeaponsOnClientSpawnPost(index);
|
WeaponsOnClientSpawnPost(index);
|
||||||
|
SEffectsOnClientSpawnPost(index);
|
||||||
SpawnProtectOnClientSpawnPost(index);
|
SpawnProtectOnClientSpawnPost(index);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -146,7 +146,7 @@ AmbientSoundsOnRoundEnd()
|
|||||||
*
|
*
|
||||||
* @param client The client index.
|
* @param client The client index.
|
||||||
*/
|
*/
|
||||||
AmbientSoundsOnClientSpawn(client)
|
AmbientSoundsOnClientSpawnPost(client)
|
||||||
{
|
{
|
||||||
// If ambience is disabled, then stop.
|
// If ambience is disabled, then stop.
|
||||||
if (!g_bAmbientSounds)
|
if (!g_bAmbientSounds)
|
||||||
|
@ -94,10 +94,20 @@ SEffectsOnRoundEnd()
|
|||||||
SEffectsOnClientSpawn(client)
|
SEffectsOnClientSpawn(client)
|
||||||
{
|
{
|
||||||
// Forward event to sub-modules.
|
// Forward event to sub-modules.
|
||||||
AmbientSoundsOnClientSpawn(client);
|
|
||||||
ZombieSoundsOnClientSpawn(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.
|
* Client has been killed.
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user