From 46a4a47b7e3e911f4ee1957102610c1628d31c41 Mon Sep 17 00:00:00 2001 From: Jbleezy Date: Fri, 10 Mar 2023 09:32:17 -0800 Subject: [PATCH] Meat: fix zombies going after player after revive or respawn --- scripts/zm/_zm_reimagined.gsc | 6 +++++- scripts/zm/replaced/_zm.gsc | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/scripts/zm/_zm_reimagined.gsc b/scripts/zm/_zm_reimagined.gsc index fb783e3e..c66beeb5 100644 --- a/scripts/zm/_zm_reimagined.gsc +++ b/scripts/zm/_zm_reimagined.gsc @@ -2002,7 +2002,11 @@ player_revive_protection() wait 0.05; } - self.ignoreme = 0; + if (!isDefined(level.meat_player)) + { + self.ignoreme = 0; + } + self.revive_protection = 0; } diff --git a/scripts/zm/replaced/_zm.gsc b/scripts/zm/replaced/_zm.gsc index 67aff6e0..41583c31 100644 --- a/scripts/zm/replaced/_zm.gsc +++ b/scripts/zm/replaced/_zm.gsc @@ -1079,7 +1079,11 @@ player_spawn_protection() wait 0.05; } - self.ignoreme = 0; + if (!isDefined(level.meat_player)) + { + self.ignoreme = 0; + } + self.spawn_protection = 0; }