From: Mario Date: Sun, 16 Sep 2018 03:49:18 +0000 (+1000) Subject: Map target_fragsFilter to trigger_counter X-Git-Tag: xonotic-v0.8.5~1860 X-Git-Url: https://de.git.xonotic.org/?a=commitdiff_plain;h=0fe73a4161785341f28c4b7b89ab937364ff0799;p=xonotic%2Fxonotic-data.pk3dir.git Map target_fragsFilter to trigger_counter --- diff --git a/qcsrc/common/mapobjects/trigger/counter.qh b/qcsrc/common/mapobjects/trigger/counter.qh index 394d15472..9edf776b3 100644 --- a/qcsrc/common/mapobjects/trigger/counter.qh +++ b/qcsrc/common/mapobjects/trigger/counter.qh @@ -1,4 +1,7 @@ #pragma once +#ifdef SVQC +spawnfunc(trigger_counter); +#endif const int COUNTER_FIRE_AT_COUNT = BIT(2); diff --git a/qcsrc/server/compat/quake3.qc b/qcsrc/server/compat/quake3.qc index 451110058..a217f05b5 100644 --- a/qcsrc/server/compat/quake3.qc +++ b/qcsrc/server/compat/quake3.qc @@ -6,6 +6,7 @@ #include #include #include +#include #include //*********************** @@ -183,6 +184,13 @@ spawnfunc(target_give) InitializeEntity(this, target_give_init, INITPRIO_FINDTARGET); } + +spawnfunc(target_fragsFilter) +{ + this.count = this.frags; + spawnfunc_trigger_counter(this); +} + //spawnfunc(item_flight) /* handled by buffs mutator */ //spawnfunc(item_haste) /* handled by buffs mutator */ //spawnfunc(item_health) /* handled in t_quake.qc */