From ab55282282696230aff91390dcd794af76dd2f3d Mon Sep 17 00:00:00 2001 From: jenz Date: Sat, 24 Feb 2024 15:09:52 +0100 Subject: [PATCH] on round end adding invulnerability for both teams --- ZombieRiot/scripting/unloze_zr.sp | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/ZombieRiot/scripting/unloze_zr.sp b/ZombieRiot/scripting/unloze_zr.sp index 18138637..3b793da1 100644 --- a/ZombieRiot/scripting/unloze_zr.sp +++ b/ZombieRiot/scripting/unloze_zr.sp @@ -1191,7 +1191,7 @@ public Action RetrieveWaveSettings(int wave) } char hostname[512]; - Format(hostname, sizeof(hostname), "UNLOZE | FASTDL | Ranking | Day %i: %s", wave, g_cDaysTitles[wave - 1]); + Format(hostname, sizeof(hostname), "UNLOZE | Zombie Riot | Ranking | Day %i: %s", wave, g_cDaysTitles[wave - 1]); ServerCommand("hostname \"%s\"", hostname); @@ -1936,19 +1936,6 @@ public Action UpdateWaveCount(int client) CS_TerminateRound(4.0, CSRoundEnd_CTWin, true); g_iWave++; g_bRoundInProgress = false; - - - if (g_iWave > 90) - { - PrintToChatAll("debug: Reseting to Wave 1."); - g_iWave = 1; - } - /* i dont fucking know how g_iWave got out of bounds... - L 01/31/2024 - 10:53:07: [SM] Exception reported: Array index out-of-bounds (index 111, limit 100) - L 01/31/2024 - 10:53:07: [SM] Blaming: unloze_zr.smx - L 01/31/2024 - 10:53:07: [SM] Call stack trace: - L 01/31/2024 - 10:53:07: [SM] [1] Line 1040, unloze_zr.sp::RetrieveWaveSettings - */ } return Plugin_Continue; } @@ -1975,6 +1962,10 @@ public Action CS_OnTerminateRound(float& delay, CSRoundEndReason& reason) //---------------------------------------------------------------------------------------------------- public Action OnTakeDamage(int client, int &attacker, int &inflictor, float &damage, int &damagetype) { + //it was requested that if round ended that CT and ZM should not be able to damage each other anymore. + if (!g_bRoundInProgress) + return Plugin_Handled; + if (g_bClientProtection[client]) return Plugin_Handled; else if (damagetype & DMG_FALL && g_bFallDamage[client])