X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fweapons%2Fweapon%2Farc.qc;h=cdd89e93d2157d5d1fb6c9e008b9dedcb1e16295;hb=f3bc9bf3c871a6303784a11b2bcf06be9f124479;hp=44fd539bebc5feca780e89e059f5a5f7de1c8461;hpb=86ffc5c159e147eed742ec9169c37cbf137df852;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/weapons/weapon/arc.qc b/qcsrc/common/weapons/weapon/arc.qc index 44fd539be..cdd89e93d 100644 --- a/qcsrc/common/weapons/weapon/arc.qc +++ b/qcsrc/common/weapons/weapon/arc.qc @@ -207,11 +207,14 @@ void W_Arc_Beam_Think(entity this) Weapon thiswep = WEP_ARC; + // TODO: use standard weapon use checks here! if( !IS_PLAYER(own) || IS_DEAD(own) || + game_stopped + || !weapon_prepareattack_check(thiswep, own, weaponentity, this.beam_bursting, -1) || own.(weaponentity).m_switchweapon != WEP_ARC