[nexuiz-commits] r7270 - trunk/data/qcsrc/server
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Sun Jul 26 11:35:36 EDT 2009
Author: mand1nga
Date: 2009-07-26 11:35:35 -0400 (Sun, 26 Jul 2009)
New Revision: 7270
Modified:
trunk/data/qcsrc/server/havocbot.qc
Log:
Disable bunnyhop when attacking with the rifle, makes it harder to aim and looks silly
Modified: trunk/data/qcsrc/server/havocbot.qc
===================================================================
--- trunk/data/qcsrc/server/havocbot.qc 2009-07-26 08:32:26 UTC (rev 7269)
+++ trunk/data/qcsrc/server/havocbot.qc 2009-07-26 15:35:35 UTC (rev 7270)
@@ -150,6 +150,11 @@
if(cvar("g_midair"))
return;
+ // Don't jump when using some weapons
+ if(self.aistatus & AI_STATUS_ATTACKING)
+ if(self.weapon & WEP_CAMPINGRIFLE)
+ return;
+
if(self.goalcurrent.classname == "player")
return;
@@ -734,6 +739,7 @@
}
head = head.chain;
}
+
self.enemy = best;
self.havocbot_stickenemy = TRUE;
};
More information about the nexuiz-commits
mailing list