plyr.weaponentity.switchweapon = plyr.weapon;
plyr.weapons = WEPSET_NEXBALL;
setself(plyr);
- WEP_ACTION(WEP_NEXBALL, WR_RESETPLAYER);
+ Weapon w = WEP_NEXBALL;
+ w.wr_resetplayer(w);
plyr.switchweapon = WEP_NEXBALL.m_id;
W_SwitchWeapon(WEP_NEXBALL.m_id);
setself(this);
return true;
}
- METHOD(BallStealer, wr_think, bool(BallStealer thiswep, bool fire1, bool fire2))
+ METHOD(BallStealer, wr_think, void(BallStealer thiswep, bool fire1, bool fire2))
{
if(fire1)
- if(weapon_prepareattack(0, autocvar_g_balance_nexball_primary_refire))
+ if(weapon_prepareattack(false, autocvar_g_balance_nexball_primary_refire))
if(autocvar_g_nexball_basketball_meter)
{
if(self.ballcarried && !self.metertime)
weapon_thinkf(WFRAME_FIRE1, autocvar_g_balance_nexball_primary_animtime, w_ready);
}
if(fire2)
- if(weapon_prepareattack(1, autocvar_g_balance_nexball_secondary_refire))
+ if(weapon_prepareattack(true, autocvar_g_balance_nexball_secondary_refire))
{
W_Nexball_Attack2();
weapon_thinkf(WFRAME_FIRE2, autocvar_g_balance_nexball_secondary_animtime, w_ready);
// DropBall or stealing will set metertime back to 0
weapon_thinkf(WFRAME_FIRE1, autocvar_g_balance_nexball_primary_animtime, w_ready);
}
- return true;
- }
- METHOD(BallStealer, wr_init, bool(BallStealer thiswep))
- {
- return true;
}
- METHOD(BallStealer, wr_setup, bool(BallStealer thiswep))
+ METHOD(BallStealer, wr_setup, void(BallStealer thiswep))
{
//weapon_setup(WEP_PORTO.m_id);
- return true;
- }
- METHOD(BallStealer, wr_aim, bool(BallStealer thiswep))
- {
- return true;
}
METHOD(BallStealer, wr_checkammo1, bool(BallStealer thiswep))
{
if(self.weaponentity.weapons)
{
self.weapons = self.weaponentity.weapons;
- WEP_ACTION(WEP_NEXBALL, WR_RESETPLAYER);
+ Weapon w = WEP_NEXBALL;
+ w.wr_resetplayer(w);
self.switchweapon = self.weaponentity.switchweapon;
W_SwitchWeapon(self.switchweapon);