[nexuiz-commits] r6834 - trunk/data/qcsrc/server
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Sun May 31 16:29:20 EDT 2009
Author: mand1nga
Date: 2009-05-31 16:29:20 -0400 (Sun, 31 May 2009)
New Revision: 6834
Modified:
trunk/data/qcsrc/server/havocbot.qc
Log:
Better sighting of enemies
Modified: trunk/data/qcsrc/server/havocbot.qc
===================================================================
--- trunk/data/qcsrc/server/havocbot.qc 2009-05-31 19:06:22 UTC (rev 6833)
+++ trunk/data/qcsrc/server/havocbot.qc 2009-05-31 20:29:20 UTC (rev 6834)
@@ -713,13 +713,13 @@
if (time < self.havocbot_chooseenemy_finished)
return;
self.havocbot_chooseenemy_finished = time + cvar("bot_ai_enemydetectioninterval");
- eye = (self.origin + self.view_ofs);
+ eye = self.origin + self.view_ofs + '0 0 -25'; // lowered a bit to give room for projectiles
best = world;
bestrating = 100000000;
head = findchainfloat(bot_attack, TRUE);
while (head)
{
- v = (head.absmin + head.absmax) * 0.5;
+ v = (head.absmin + head.absmax) * 0.65;
rating = vlen(v - eye);
if (bestrating > rating)
if (bot_shouldattack(head))
More information about the nexuiz-commits
mailing list