From c24d1a32bef57410005d2ab08743997979465cce Mon Sep 17 00:00:00 2001 From: Greyscale Date: Sun, 21 Jun 2009 23:51:23 -0700 Subject: [PATCH] Fixed ambience (again, same fix as before) --- src/zr/event.inc | 1 + src/zr/soundeffects/ambientsounds.inc | 2 +- src/zr/soundeffects/soundeffects.inc | 12 +++++++++++- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/src/zr/event.inc b/src/zr/event.inc index 4146b19..213dd6b 100644 --- a/src/zr/event.inc +++ b/src/zr/event.inc @@ -223,6 +223,7 @@ public Action:EventPlayerSpawnPost(Handle:timer, any:index) // Forward event to modules. WeaponsOnClientSpawnPost(index); + SEffectsOnClientSpawnPost(index); SpawnProtectOnClientSpawnPost(index); } diff --git a/src/zr/soundeffects/ambientsounds.inc b/src/zr/soundeffects/ambientsounds.inc index 0b90e3b..d205a12 100644 --- a/src/zr/soundeffects/ambientsounds.inc +++ b/src/zr/soundeffects/ambientsounds.inc @@ -146,7 +146,7 @@ AmbientSoundsOnRoundEnd() * * @param client The client index. */ -AmbientSoundsOnClientSpawn(client) +AmbientSoundsOnClientSpawnPost(client) { // If ambience is disabled, then stop. if (!g_bAmbientSounds) diff --git a/src/zr/soundeffects/soundeffects.inc b/src/zr/soundeffects/soundeffects.inc index 78b9252..ea99c78 100644 --- a/src/zr/soundeffects/soundeffects.inc +++ b/src/zr/soundeffects/soundeffects.inc @@ -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. *