From 23bc0b5dcf106c3e8fb3bc4f379882c4270bdc9e Mon Sep 17 00:00:00 2001 From: Richard Helgeby Date: Tue, 9 Oct 2012 16:21:40 +0200 Subject: [PATCH] Fixed zombie scream command timers not properly destroyed on map change. --- src/zombiereloaded.sp | 1 + src/zr/soundeffects/zombiesounds.inc | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/src/zombiereloaded.sp b/src/zombiereloaded.sp index 26061af..06318af 100644 --- a/src/zombiereloaded.sp +++ b/src/zombiereloaded.sp @@ -195,6 +195,7 @@ public OnMapEnd() InfectOnMapEnd(); VolOnMapEnd(); VEffectsOnMapEnd(); + ZombieSoundsOnMapEnd(); } /** diff --git a/src/zr/soundeffects/zombiesounds.inc b/src/zr/soundeffects/zombiesounds.inc index 8b1263a..1a16fe2 100644 --- a/src/zr/soundeffects/zombiesounds.inc +++ b/src/zr/soundeffects/zombiesounds.inc @@ -220,6 +220,11 @@ ZombieSoundsOnRoundEnd() ZombieSoundsResetCmdTimers(); } +ZombieSoundsOnMapEnd() +{ + ZombieSoundsOnRoundEnd(); +} + ZombieSoundsOnCommandsCreate() { RegConsoleCmd("scream", ZombieSoundsScreamCommand, "Emits a scream sound, if the player is a zombie.");