r3467 - trunk/data/qcsrc/server
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Sat Mar 1 08:33:36 EST 2008
Author: lordhavoc
Date: 2008-03-01 08:33:34 -0500 (Sat, 01 Mar 2008)
New Revision: 3467
Modified:
trunk/data/qcsrc/server/havocbot_roles.qc
Log:
implemented line of sight checks for keyhunt so bots don't ignore keys
in sight before keys become globally visible
Modified: trunk/data/qcsrc/server/havocbot_roles.qc
===================================================================
--- trunk/data/qcsrc/server/havocbot_roles.qc 2008-03-01 13:29:06 UTC (rev 3466)
+++ trunk/data/qcsrc/server/havocbot_roles.qc 2008-03-01 13:33:34 UTC (rev 3467)
@@ -557,8 +557,16 @@
if(head.owner == self)
continue;
if(!kh_tracking_enabled)
- if(!head.owner || head.team == self.team)
- continue; // skip what I can't see
+ {
+ // if it's carried by our team we know about it
+ // otherwise we have to see it to know about it
+ if(!head.owner || head.team != self.team)
+ {
+ traceline(self.origin + self.view_ofs, head.origin, MOVE_NOMONSTERS, self);
+ if (trace_fraction < 1 && trace_ent != head)
+ continue; // skip what I can't see
+ }
+ }
if(!head.owner)
navigation_routerating(head, ratingscale_dropped, 100000);
else if(head.team == self.team)
More information about the nexuiz-commits
mailing list