From ffa817d810a1cdb17e2cf53e81059633a7785752 Mon Sep 17 00:00:00 2001 From: terencehill Date: Wed, 28 Oct 2020 01:27:00 +0100 Subject: [PATCH] Attempt to prevent sound spam when a dead player gets stuck in the jumppad for some reason --- qcsrc/common/mapobjects/trigger/jumppads.qc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qcsrc/common/mapobjects/trigger/jumppads.qc b/qcsrc/common/mapobjects/trigger/jumppads.qc index a6128d207..06842395b 100644 --- a/qcsrc/common/mapobjects/trigger/jumppads.qc +++ b/qcsrc/common/mapobjects/trigger/jumppads.qc @@ -192,7 +192,9 @@ bool jumppad_push(entity this, entity targ) // reset tracking of oldvelocity for impact damage (sudden velocity changes) targ.oldvelocity = targ.velocity; - if(this.pushltime < time) // prevent "snorring" sound when a player hits the jumppad more than once + // prevent sound spam when a player hits the jumppad more than once + // or when a dead player gets stuck in the jumppad for some reason + if(this.pushltime < time && !(IS_DEAD(targ) && targ.velocity == '0 0 0')) { // flash when activated Send_Effect(EFFECT_JUMPPAD, targ.origin, targ.velocity, 1); -- 2.39.2