}\r
\r
.float grabber_length;\r
-.float grabber_switchweapon;\r
\r
void RemoveGrabber(entity pl)\r
{\r
missile.damageforcescale = 0;\r
}\r
\r
-// voidGrabberFrame()\r
-// {\r
-// // this function has been modified for Voretournament\r
-// - if (self.BUTTON_JETPACK && g_grabber)\r
-// {\r
-// - if (!self.grabber && self.grabber_time <= time && !self.button6_pressed_before)\r
-// - if (timeoutStatus != 2) //only allow the player to fire the grabber if the game is not paused (timeout)\r
-// - FireGrabber();\r
-// }\r
-// - else\r
-// {\r
-// if (self.grabber)\r
-// RemoveGrabber(self);\r
-// }\r
-// - self.button6_pressed_before = self.BUTTON_JETPACK;\r
-// /*\r
-// // if I have no grabber or it's not pulling yet, make sure I'm not flying!\r
-// if((self.grabber == world || !self.grabber.state) && self.movetype == MOVETYPE_FLY)\r
-\r
void GrabberFrame()\r
{\r
if(timeoutStatus != 2 && self.weapon != WEP_GRABBER)\r
{\r
- // offhand grabber controls\r
- if(self.BUTTON_JETPACK)\r
- {\r
- if not(self.grabber || (self.grabber_state & GRABBER_WAITING_FOR_RELEASE))\r
- {\r
- self.grabber_state |= GRABBER_FIRING;\r
- self.grabber_state |= GRABBER_WAITING_FOR_RELEASE;\r
- }\r
- }\r
- else\r
- {\r
- self.grabber_state |= GRABBER_REMOVING;\r
- self.grabber_state &~= GRABBER_WAITING_FOR_RELEASE;\r
- }\r
+ self.grabber_state |= GRABBER_REMOVING;\r
+ self.grabber_state &~= GRABBER_WAITING_FOR_RELEASE;\r
\r
self.grabber_state &~= GRABBER_RELEASING;\r
if(self.BUTTON_CROUCH)\r
//self.grabber_state &~= GRABBER_RELEASING;\r
}\r
}\r
- else if(!(self.items & IT_JETPACK) && self.switchweapon != WEP_GRABBER)\r
- {\r
- if(self.BUTTON_JETPACK && !self.grabber_switchweapon)\r
- W_SwitchWeapon(WEP_GRABBER);\r
- }\r
- self.grabber_switchweapon = self.BUTTON_JETPACK;\r
\r
if(self.weapon != WEP_GRABBER)\r
{\r
}\r
else if not(self.clip_load < 0) // we're currently reloading\r
{\r
- if (self.BUTTON_ATCK || (!(self.items & IT_JETPACK) && self.BUTTON_JETPACK))\r
+ if (self.BUTTON_ATCK)\r
{\r
if(time < self.weapon_delay)\r
return FALSE;\r
if (self.BUTTON_CROUCH)\r
{\r
self.grabber_state &~= GRABBER_PULLING;\r
- if (self.BUTTON_ATCK || (!(self.items & IT_JETPACK) && self.BUTTON_JETPACK))\r
+ if (self.BUTTON_ATCK)\r
self.grabber_state &~= GRABBER_RELEASING;\r
else\r
self.grabber_state |= GRABBER_RELEASING;\r
self.grabber_state |= GRABBER_PULLING;\r
self.grabber_state &~= GRABBER_RELEASING;\r
\r
- if (self.BUTTON_ATCK || (!(self.items & IT_JETPACK) && self.BUTTON_JETPACK))\r
+ if (self.BUTTON_ATCK)\r
{\r
// already fired\r
if(self.grabber)\r