From: Mario Date: Mon, 13 Mar 2017 05:15:31 +0000 (+1000) Subject: Delay triggering with the created trigger, to reduce the spam a little X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=be37d1708f417701017f5551ad3ad06a2a0cd2a9;p=xonotic%2Fxonotic-data.pk3dir.git Delay triggering with the created trigger, to reduce the spam a little --- diff --git a/qcsrc/common/monsters/sv_spawner.qc b/qcsrc/common/monsters/sv_spawner.qc index 7e7f13561..91d221c5b 100644 --- a/qcsrc/common/monsters/sv_spawner.qc +++ b/qcsrc/common/monsters/sv_spawner.qc @@ -45,6 +45,9 @@ void spawner_trigger_touch(entity this, entity toucher) { if(!toucher.iscreature || IS_DEAD(toucher) || toucher.health < 1) return; // only players + if(time < this.door_finished) + return; + this.door_finished = time + 1; spawner_use(this.owner, toucher, this); }