From 0fe73a4161785341f28c4b7b89ab937364ff0799 Mon Sep 17 00:00:00 2001 From: Mario Date: Sun, 16 Sep 2018 13:49:18 +1000 Subject: [PATCH] Map target_fragsFilter to trigger_counter --- qcsrc/common/mapobjects/trigger/counter.qh | 3 +++ qcsrc/server/compat/quake3.qc | 8 ++++++++ 2 files changed, 11 insertions(+) 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 */ -- 2.39.2