From f416363b217a1fad311ada93d059a136d9c76409 Mon Sep 17 00:00:00 2001 From: cypress Date: Sat, 26 Aug 2023 15:01:12 -0400 Subject: [PATCH] SERVER: Fix denybuy.wav spam with perk_pap --- source/server/entities/machines.qc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/server/entities/machines.qc b/source/server/entities/machines.qc index b8b00c1..f5606d3 100644 --- a/source/server/entities/machines.qc +++ b/source/server/entities/machines.qc @@ -1879,7 +1879,8 @@ void touch_pap() { PapUpgrade(self, other); } - else if (other.button7 && other.weapon) { + else if (other.button7 && other.weapon && !other.semiuse) { + other.semiuse = true; centerprint (other, STR_NOTENOUGHPOINTS); sound(other, 0, "sounds/misc/denybuy.wav", 1, 1); }