autocvar_g_vehicle_bumblebee_cannon_pitchlimit_down * -1, autocvar_g_vehicle_bumblebee_cannon_pitchlimit_up,
_out * -1, _in, autocvar_g_vehicle_bumblebee_cannon_turnspeed, dt);
- if(!weaponLocked(this))
+ if(!weaponLocked(this) && !weaponUseForbidden(this))
if(PHYS_INPUT_BUTTON_ATCK(this))
if(time > gun.attack_finished_single[0])
if(gun.vehicle_energy >= autocvar_g_vehicle_bumblebee_cannon_cost)
autocvar_g_vehicle_bumblebee_raygun_pitchlimit_down * -1, autocvar_g_vehicle_bumblebee_raygun_pitchlimit_up,
autocvar_g_vehicle_bumblebee_raygun_turnlimit_sides * -1, autocvar_g_vehicle_bumblebee_raygun_turnlimit_sides, autocvar_g_vehicle_bumblebee_raygun_turnspeed, dt);
- if(!weaponLocked(this))
+ if(!weaponLocked(this) && !weaponUseForbidden(this))
if((PHYS_INPUT_BUTTON_ATCK(this) || PHYS_INPUT_BUTTON_ATCK2(this)) && (vehic.vehicle_energy > autocvar_g_vehicle_bumblebee_raygun_dps * PHYS_INPUT_FRAMETIME || autocvar_g_vehicle_bumblebee_raygun == 0))
{
vehic.gun3.enemy.realowner = this;
Weapon wep1 = WEP_RACER;
.entity weaponentity = weaponentities[0]; // TODO: unhardcode
- if (!weaponLocked(player))
+ if (!weaponLocked(player) && !weaponUseForbidden(player))
if (PHYS_INPUT_BUTTON_ATCK(player))
if (wep1.wr_checkammo1(wep1, vehic, weaponentity))
{
Weapon wep1 = WEP_RAPTOR;
.entity weaponentity = weaponentities[0];
- if(!weaponLocked(this))
+ if(!weaponLocked(this) && !weaponUseForbidden(this))
if(PHYS_INPUT_BUTTON_ATCK(this))
if (wep1.wr_checkammo1(wep1, vehic, weaponentity))
{
vehicles_regen(vehic, vehic.cnt, vehicle_energy, autocvar_g_vehicle_raptor_energy, autocvar_g_vehicle_raptor_energy_regen_pause, autocvar_g_vehicle_raptor_energy_regen, dt, false);
Weapon wep2a = WEP_RAPTOR_BOMB;
- if(!weaponLocked(this))
+ if(!weaponLocked(this) && !weaponUseForbidden(this))
if(STAT(VEHICLESTAT_W2MODE, vehic) == RSM_BOMB)
{
if(time > vehic.lip + autocvar_g_vehicle_raptor_bombs_refire)
vehic.angles_x = bound(-autocvar_g_vehicle_spiderbot_tiltlimit, vehic.angles_x, autocvar_g_vehicle_spiderbot_tiltlimit);
vehic.angles_z = bound(-autocvar_g_vehicle_spiderbot_tiltlimit, vehic.angles_z, autocvar_g_vehicle_spiderbot_tiltlimit);
- if(!weaponLocked(this))
+ if(!weaponLocked(this) && !weaponUseForbidden(this))
if(PHYS_INPUT_BUTTON_ATCK(this))
{
vehic.cnt = time;
if(!PHYS_INPUT_BUTTON_ATCK2(this.owner))
return;
- if(weaponLocked(this.owner))
+ if(!weaponLocked(this.owner) && !weaponUseForbidden(this.owner))
return;
v = gettaginfo(this.tur_head,gettagindex(this.tur_head,"tag_fire"));