From 6b4450a0828924a44cb311564fc3b9b55ed0a0bb Mon Sep 17 00:00:00 2001 From: div0 Date: Mon, 28 May 2007 22:16:27 +0000 Subject: [PATCH] reduce sound minimum time for jumppads from 0.5 to 0.2s; make light effect consistent with sound (only for actual players, and at least 0.2s between them) git-svn-id: svn://svn.icculus.org/nexuiz/trunk@2719 f962a42d-fe04-0410-a3ab-8c8b0445ebaa --- data/qcsrc/server/t_jumppads.qc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/data/qcsrc/server/t_jumppads.qc b/data/qcsrc/server/t_jumppads.qc index a78625e0e..beddd5b8e 100644 --- a/data/qcsrc/server/t_jumppads.qc +++ b/data/qcsrc/server/t_jumppads.qc @@ -129,8 +129,10 @@ void() trigger_push_touch = { if(self.pushltime < time) // prevent "snorring" sound when a player hits the jumppad more than once { + // flash when activated + te_smallflash(other.origin); sound (other, CHAN_ITEM, "misc/jumppad.wav", 1, ATTN_NORM); - self.pushltime = time + 0.5; + self.pushltime = time + 0.2; } if(clienttype(other) == CLIENTTYPE_REAL) { @@ -167,8 +169,6 @@ void() trigger_push_touch = self.think = SUB_Remove; self.nextthink = time; } - // flash when activated - te_smallflash(other.origin); }; .vector dest; -- 2.39.2