From 1566782705862e0f8b0ea4bbc701eb9480e69f23 Mon Sep 17 00:00:00 2001 From: cypress Date: Sun, 1 Sep 2024 19:12:04 -0700 Subject: [PATCH] SERVER: Prevent Firing Weapon mid-Perk Purchase --- source/server/weapons/weapon_core.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/server/weapons/weapon_core.qc b/source/server/weapons/weapon_core.qc index 1ee504e..f92774f 100644 --- a/source/server/weapons/weapon_core.qc +++ b/source/server/weapons/weapon_core.qc @@ -953,7 +953,7 @@ void(float side) W_Fire = if (GetFiretype(self.weapon) == FIRETYPE_FLAME && self.cooldown) return; - if (self.switch_delay > time || self.dive) + if (self.switch_delay > time || self.dive || self.isBuying) return; //First check that we can actualy fire