Server: Prohibit AI damage to Player when Nuke is active

This commit is contained in:
Ian 2022-04-20 11:58:49 -04:00
parent 8cc9296371
commit 4446d96358

View file

@ -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)
{