Module dpmod: Change committed
havoc at icculus.org
havoc at icculus.org
Thu Feb 20 03:42:28 EST 2003
Commiter : havoc
CVSROOT : /cvs/cvsroot/twilight
Module : dpmod
Commit time: 2003-02-20 08:42:28 UTC
Log message:
removed an unnecessary use of enemy_vis, and fixed AttackFinished to not use enemy_range and enemy_vis because they're not initialized at that point
Modified files:
qc/m_wizard.qc
------=MIME.56d9df1bff3438789712e2dcebca3e0d
Content-Type: text/plain; name="dpmod.20030220.084228.havoc.diff"
Content-Disposition: attachment; filename="dpmod.20030220.084228.havoc.diff"
Content-Transfer-Encoding: 8bit
Index: dpmod/qc/m_wizard.qc
diff -u dpmod/qc/m_wizard.qc:1.1.1.1 dpmod/qc/m_wizard.qc:1.2
--- dpmod/qc/m_wizard.qc:1.1.1.1 Thu Sep 19 15:08:09 2002
+++ dpmod/qc/m_wizard.qc Thu Feb 20 03:42:18 2003
@@ -40,8 +40,6 @@
if (time < self.attack_finished)
return FALSE;
- if (!enemy_vis)
- return FALSE;
if (enemy_range == RANGE_FAR)
{
@@ -113,7 +111,8 @@
*/
void() WizardAttackFinished =
{
- if (enemy_range >= RANGE_MID || !enemy_vis)
+ //if (range(self.enemy) >= RANGE_MID || !visible(self.enemy))
+ if (vlen ((self.origin + self.view_ofs) - (self.enemy.origin + self.enemy.view_ofs)) >= 500 || !visible(self.enemy))
{
self.attack_state = AS_STRAIGHT;
self.think = wiz_run1;
More information about the twilight-commits
mailing list