X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fturrets%2Fturret%2Fplasma_dual.qc;h=3041410eccafc114cfad91da544695e404dbb358;hb=6bd8012ca8b6f81cb0c1cb558d130bc9e1c44682;hp=bde6ebf74b683aecd14b86661baf8fb767dbfa60;hpb=236313671cf7476f795dd7b55d876c8128a6843b;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/turrets/turret/plasma_dual.qc b/qcsrc/common/turrets/turret/plasma_dual.qc index bde6ebf74b..3041410ecc 100644 --- a/qcsrc/common/turrets/turret/plasma_dual.qc +++ b/qcsrc/common/turrets/turret/plasma_dual.qc @@ -30,9 +30,9 @@ REGISTER_WEAPON(PLASMA_DUAL, NEW(PlasmaDualAttack)); #ifdef SVQC -METHOD(PlasmaDualAttack, wr_think, bool(entity thiswep)) { +METHOD(PlasmaDualAttack, wr_think, bool(entity thiswep, bool fire1, bool fire2)) { SELFPARAM(); - if (self.BUTTON_ATCK) + if (fire1) if (weapon_prepareattack(0, WEP_CVAR_PRI(electro, refire))) { W_SetupShot_Dir(self, v_forward, false, 0, W_Sound("electro_fire"), CH_WEAPON_B, 0); self.tur_shotdir_updated = w_shotdir;