From d3b862cdf2ab393fba2dc2d5c2effeefbb209181 Mon Sep 17 00:00:00 2001 From: jenz Date: Wed, 8 May 2024 22:17:54 +0200 Subject: [PATCH] fixed resetting gravity and damage --- zombie_hunting_respawn/zh_respawn_stop.sp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/zombie_hunting_respawn/zh_respawn_stop.sp b/zombie_hunting_respawn/zh_respawn_stop.sp index 7b2c6cfb..f3d9ed97 100644 --- a/zombie_hunting_respawn/zh_respawn_stop.sp +++ b/zombie_hunting_respawn/zh_respawn_stop.sp @@ -83,6 +83,14 @@ public Action announce_zone_controlls(Handle hTimer) float zm_controlled_zone = 0.0; if (g_zoneCount == 0 || !g_permit_zone_benefits) { + g_human_damage_addition = 1.0; //indicating no damage buffs + for (int i = 0; i < MaxClients; i++) + { + if (IsValidClient(i) && IsPlayerAlive(i)) + { + SetEntityGravity(i, 1.0); + } + } return Plugin_Handled; } for (int i = 0; i < g_zoneCount; i++)