From ff8c8aa65707b6114d26fa545a11fda69bd0b4a1 Mon Sep 17 00:00:00 2001 From: Mario Date: Tue, 19 Jun 2018 19:05:28 +1000 Subject: [PATCH] Make sure the hunter-killer rocket loses its target if the player becomes a spectator/observer --- qcsrc/common/turrets/turret/hk_weapon.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcsrc/common/turrets/turret/hk_weapon.qc b/qcsrc/common/turrets/turret/hk_weapon.qc index 0e38ebfad..b68bfb773 100644 --- a/qcsrc/common/turrets/turret/hk_weapon.qc +++ b/qcsrc/common/turrets/turret/hk_weapon.qc @@ -58,7 +58,7 @@ void turret_hk_missile_think(entity this) //if (this.cnt < time) // turret_hk_missile_explode(); - if (IS_DEAD(this.enemy)) + if (IS_DEAD(this.enemy) || IS_SPEC(this.enemy) || IS_OBSERVER(this.enemy)) this.enemy = NULL; // Pick the closest valid target. -- 2.39.2