From 3e10a8008e2757e671301b38bdc6f81a26ceb637 Mon Sep 17 00:00:00 2001 From: terencehill Date: Tue, 9 Aug 2022 15:02:22 +0200 Subject: [PATCH] Reloadable shotgun: fix broken automatic switch to best weapon when out of ammo --- qcsrc/common/weapons/weapon/shotgun.qc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qcsrc/common/weapons/weapon/shotgun.qc b/qcsrc/common/weapons/weapon/shotgun.qc index e43aa89aa..403299caa 100644 --- a/qcsrc/common/weapons/weapon/shotgun.qc +++ b/qcsrc/common/weapons/weapon/shotgun.qc @@ -212,7 +212,8 @@ METHOD(Shotgun, wr_think, void(entity thiswep, entity actor, .entity weaponentit return; } } - else + + if(actor.(weaponentity).clip_load >= 0) // we are not currently reloading { if(fire & 1) { -- 2.39.2