projects
/
xonotic
/
xonotic-data.pk3dir.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ecd2a1
)
Make sure the hunter-killer rocket loses its target if the player becomes a spectator...
author
Mario <mario@smbclan.net>
Tue, 19 Jun 2018 09:05:28 +0000
(19:05 +1000)
committer
Mario <mario@smbclan.net>
Tue, 19 Jun 2018 09:05:28 +0000
(19:05 +1000)
qcsrc/common/turrets/turret/hk_weapon.qc
patch
|
blob
|
history
diff --git
a/qcsrc/common/turrets/turret/hk_weapon.qc
b/qcsrc/common/turrets/turret/hk_weapon.qc
index 0e38ebfad388c01d01a858666917e494542f0ca1..b68bfb77307a5f3ed243779deb9b3b717eacfad9 100644
(file)
--- 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.