1 #include "targettrigger.qh"
5 spawnfunc(turret_targettrigger);
6 void turret_targettrigger_touch(entity this, entity toucher);
8 void turret_targettrigger_touch(entity this, entity toucher)
10 if (this.cnt > time) return;
11 IL_EACH(g_turrets, it.targetname == this.target,
13 if (!(it.turret_flags & TUR_FLAG_RECIEVETARGETS)) continue;
14 if (!it.turret_addtarget) continue;
15 it.turret_addtarget(it, toucher, this);
17 this.cnt = time + 0.5;
20 /*QUAKED turret_targettrigger (.5 .5 .5) ?
22 spawnfunc(turret_targettrigger)
24 if(!autocvar_g_turrets) { delete(this); return; }
28 settouch(this, turret_targettrigger_touch);