Module dpmod: Change committed
havoc at icculus.org
havoc at icculus.org
Sat Feb 22 04:26:54 EST 2003
Commiter : havoc
CVSROOT : /cvs/cvsroot/twilight
Module : dpmod
Commit time: 2003-02-22 09:26:54 UTC
Log message:
fix a very stupid uninitialized variable bug in havocbot_movetogoal
also change the velocity multiplier for lava/slime checks from 0.2 to 0.3, thanks to Electro's playtesting (he found this works perfectly for the moving platforms in dm2 and other lava pits)
Modified files:
qc/havocbot.qc
------=MIME.18938d699913152e78b6d2e83241d6ec
Content-Type: text/plain; name="dpmod.20030222.092654.havoc.diff"
Content-Disposition: attachment; filename="dpmod.20030222.092654.havoc.diff"
Content-Transfer-Encoding: 8bit
Index: dpmod/qc/havocbot.qc
diff -u dpmod/qc/havocbot.qc:1.4 dpmod/qc/havocbot.qc:1.5
--- dpmod/qc/havocbot.qc:1.4 Thu Feb 20 04:02:21 2003
+++ dpmod/qc/havocbot.qc Sat Feb 22 04:26:44 2003
@@ -840,6 +840,7 @@
evadelava = '0 0 0';
if (self.waterlevel)
{
+ destorg = randompos(head.absmin, head.absmax);
diff = destorg - self.origin;
dist = vlen(diff);
dir = normalize(diff);
@@ -872,7 +873,8 @@
}
}
- traceline(self.origin + self.velocity * 0.2, self.origin + self.velocity * 0.2 + '0 0 -1000', TRUE, world);
+ // LordHavoc: thanks to Electro for noticing that 0.3 velocity multiplier works a lot better than 0.2
+ traceline(self.origin + self.velocity * 0.3, self.origin + self.velocity * 0.3 + '0 0 -1000', TRUE, world);
s = pointcontents(trace_endpos + '0 0 1');
if (s == CONTENT_LAVA || s == CONTENT_SLIME)
evadelava = normalize(self.velocity) * -1;
More information about the twilight-commits
mailing list