From 4446d96358357e66fc33be8ca21663c10b1d2955 Mon Sep 17 00:00:00 2001 From: Ian Date: Wed, 20 Apr 2022 11:58:49 -0400 Subject: [PATCH] Server: Prohibit AI damage to Player when Nuke is active --- source/server/ai/zombie_core.qc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/server/ai/zombie_core.qc b/source/server/ai/zombie_core.qc index 3462481..e0eec93 100644 --- a/source/server/ai/zombie_core.qc +++ b/source/server/ai/zombie_core.qc @@ -645,7 +645,9 @@ void() zombie_attack2 = { Window_Damage_Setup(); } - else if (self.enemy.classname == "player") + // motolegacy -- Prohibit damage to the Player if the Nuke Power-Up logic is currently + // running. + else if (self.enemy.classname == "player" && nuke_powerup_active == false) { if(vlen(self.enemy.origin - self.origin) < 60) {