Module dpmod: Change committed
havoc at icculus.org
havoc at icculus.org
Sun Jan 11 08:33:31 EST 2004
Commiter : havoc
CVSROOT : /cvs/cvsroot/twilight
Module : dpmod
Commit time: 2004-01-11 13:33:31 UTC
Log message:
added impulse 23 for testing EF_FULLBRIGHT in engine
Modified files:
qc/impulse_main.qc
------=MIME.f4cdc79c06d76b33bbe8e881e2b0162b
Content-Type: text/plain; name="dpmod.20040111.133331.havoc.diff"
Content-Disposition: attachment; filename="dpmod.20040111.133331.havoc.diff"
Content-Transfer-Encoding: 8bit
Index: dpmod/qc/impulse_main.qc
diff -u dpmod/qc/impulse_main.qc:1.10 dpmod/qc/impulse_main.qc:1.11
--- dpmod/qc/impulse_main.qc:1.10 Mon Nov 17 22:32:47 2003
+++ dpmod/qc/impulse_main.qc Sun Jan 11 08:33:21 2004
@@ -500,6 +500,18 @@
setorigin(newmis, '0 0 0');
newmis.angles = '0 0 0';
}
+ if (self.impulse == 23)
+ {
+ makevectors(self.v_angle);
+ weapontraceline(self.origin + self.view_ofs, self.origin + self.view_ofs + v_forward * 1024, FALSE, self);
+ if (trace_ent)
+ {
+ if (trace_ent.effects & EF_FULLBRIGHT)
+ trace_ent.effects = trace_ent.effects - EF_FULLBRIGHT;
+ else
+ trace_ent.effects = trace_ent.effects + EF_FULLBRIGHT;
+ }
+ }
/*
if (self.impulse == 22)
{
More information about the twilight-commits
mailing list