1 #include "sv_spawner.qh"
4 void spawner_use(entity this, entity actor, entity trigger)
7 IL_EACH(g_monsters, it.realowner == this,
12 if(moncount >= this.count)
16 e.noalign = this.noalign;
17 e.angles = this.angles;
18 e.monster_skill = this.monster_skill;
19 e = spawnmonster(e, this.spawnmob, 0, this, this, this.origin, false, true, this.monster_moveflags);
22 spawnfunc(monster_spawner)
24 if(!autocvar_g_monsters || !this.spawnmob || this.spawnmob == "") { delete(this); return; }
26 this.use = spawner_use;