From c02da4abce314b5f625a50551e647cf1a61b34e6 Mon Sep 17 00:00:00 2001 From: Mario Date: Sun, 4 Mar 2018 01:31:19 +1000 Subject: [PATCH] Remove observers from monster attack target list and reset their dphitcontentsmask --- qcsrc/server/client.qc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qcsrc/server/client.qc b/qcsrc/server/client.qc index e898e74e8f..238e07fb0f 100644 --- a/qcsrc/server/client.qc +++ b/qcsrc/server/client.qc @@ -308,6 +308,9 @@ void PutObserverInServer(entity this) if(this.bot_attack) IL_REMOVE(g_bot_targets, this); this.bot_attack = false; + if(this.monster_attack) + IL_REMOVE(g_monster_targets, this); + this.monster_attack = false; STAT(HUD, this) = HUD_NORMAL; TRANSMUTE(Observer, this); this.iscreature = false; @@ -340,6 +343,7 @@ void PutObserverInServer(entity this) this.strength_finished = 0; this.invincible_finished = 0; this.superweapons_finished = 0; + this.dphitcontentsmask = 0; this.pushltime = 0; this.istypefrag = 0; setthink(this, func_null); -- 2.39.2