r5233 - trunk/data/qcsrc/server
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Tue Dec 16 04:31:35 EST 2008
Author: div0
Date: 2008-12-16 04:31:26 -0500 (Tue, 16 Dec 2008)
New Revision: 5233
Modified:
trunk/data/qcsrc/server/w_hook.qc
Log:
refire for hook now working
Modified: trunk/data/qcsrc/server/w_hook.qc
===================================================================
--- trunk/data/qcsrc/server/w_hook.qc 2008-12-16 09:28:08 UTC (rev 5232)
+++ trunk/data/qcsrc/server/w_hook.qc 2008-12-16 09:31:26 UTC (rev 5233)
@@ -125,8 +125,13 @@
}
}
- if (self.BUTTON_ATCK2)
+ if(self.hook)
{
+ // if hooked, no bombs, and increase the timer
+ ATTACK_FINISHED(self) = max(ATTACK_FINISHED(self), time + cvar("g_balance_hook_primary_refire"));
+ }
+ else if (self.BUTTON_ATCK2)
+ {
if (weapon_prepareattack(1, cvar("g_balance_hook_secondary_refire")))
{
W_Hook_Attack2();
More information about the nexuiz-commits
mailing list