Module dpmod: Change committed
havoc at icculus.org
havoc at icculus.org
Sat Sep 21 06:07:18 EDT 2002
Commiter : havoc
CVSROOT : /cvs/cvsroot/twilight
Module : dpmod
Commit time: 2002-09-21 10:07:18 UTC
Log message:
don't shoot friends in coop
Modified files:
qc/havocbot.qc
------=MIME.db2e4ac18de856f54205e2ca30894fbc
Content-Type: text/plain; name="dpmod.20020921.100718.havoc.diff"
Content-Disposition: attachment; filename="dpmod.20020921.100718.havoc.diff"
Content-Transfer-Encoding: 8bit
Index: dpmod/qc/havocbot.qc
diff -u dpmod/qc/havocbot.qc:1.2 dpmod/qc/havocbot.qc:1.3
--- dpmod/qc/havocbot.qc:1.2 Fri Sep 20 01:44:45 2002
+++ dpmod/qc/havocbot.qc Sat Sep 21 06:07:08 2002
@@ -1081,9 +1081,11 @@
head = findchainfloat(havocattack, TRUE);
while (head)
{
+ if (head.takedamage == DAMAGE_AIM)
if (head != self)
if (!head.deadflag)
if (head.health < besthealth)
+ if (head.classname != "player" || !coop)
if (head.team != self.team || self.team == 0 || teamplay == 0)
{
traceline(self.origin + self.view_ofs, (head.absmin + head.absmax) * 0.5, FALSE, self);
More information about the twilight-commits
mailing list