From a3a64dbd0b7648a3da057da5a2b9feb356d12af8 Mon Sep 17 00:00:00 2001 From: Mario Date: Fri, 30 Aug 2013 20:22:49 +1000 Subject: [PATCH] Remove monster vehicle targeting --- qcsrc/common/monsters/sv_monsters.qc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/qcsrc/common/monsters/sv_monsters.qc b/qcsrc/common/monsters/sv_monsters.qc index aa0f0d0fb..f3e06ca43 100644 --- a/qcsrc/common/monsters/sv_monsters.qc +++ b/qcsrc/common/monsters/sv_monsters.qc @@ -67,8 +67,7 @@ float monster_isvalidtarget (entity targ, entity ent) if(vlen(targ.origin - ent.origin) >= ent.target_range) return FALSE; // enemy is too far away - - if not(targ.vehicle_flags & VHF_ISVEHICLE) + if(trace_ent != targ) return FALSE; // we can't see the enemy @@ -84,7 +83,6 @@ float monster_isvalidtarget (entity targ, entity ent) if(IS_SPEC(targ) || IS_OBSERVER(targ)) return FALSE; // enemy is a spectator - if not(targ.vehicle_flags & VHF_ISVEHICLE) // vehicles dont count as alive? if(targ.deadflag != DEAD_NO || ent.deadflag != DEAD_NO || targ.health <= 0 || ent.health <= 0) return FALSE; // enemy/self is dead @@ -94,7 +92,6 @@ float monster_isvalidtarget (entity targ, entity ent) if(targ.monster_owner == ent) return FALSE; // don't attack our pet - if not(targ.vehicle_flags & VHF_ISVEHICLE) if(targ.flags & FL_NOTARGET) return FALSE; // enemy can't be targeted -- 2.39.2