1 #include "sv_spawner.qh"
3 #include <common/monsters/sv_monsters.qh>
4 #include <common/monsters/sv_spawn.qh>
6 void spawner_use(entity this, entity actor, entity trigger)
9 IL_EACH(g_monsters, it.realowner == this,
14 if(moncount >= this.count)
18 e.noalign = this.noalign;
19 e.angles = this.angles;
20 e.monster_skill = this.monster_skill;
22 e = spawnmonster(e, this.spawnmob, MON_Null, this, this, this.origin, false, true, this.monster_moveflags);
25 spawnfunc(monster_spawner)
27 if(!autocvar_g_monsters || !this.spawnmob || this.spawnmob == "") { delete(this); return; }
29 this.use = spawner_use;