From 1d2677b81ce6148fc1c55483032339ad5063a4f9 Mon Sep 17 00:00:00 2001 From: Mario Date: Wed, 7 Oct 2020 22:37:16 +1000 Subject: [PATCH] Fix Arc continuing to fire after the match ends --- qcsrc/common/weapons/weapon/arc.qc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qcsrc/common/weapons/weapon/arc.qc b/qcsrc/common/weapons/weapon/arc.qc index 3af9a18da..f5888c50a 100644 --- a/qcsrc/common/weapons/weapon/arc.qc +++ b/qcsrc/common/weapons/weapon/arc.qc @@ -186,11 +186,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 -- 2.39.2