X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;ds=sidebyside;f=qcsrc%2Fcommon%2Fmonsters%2Fspawn.qc;fp=qcsrc%2Fcommon%2Fmonsters%2Fspawn.qc;h=8aee54b98084fe36279553eb5ab761f7de4046af;hb=bb80a6aba067167c6ef8d5f3465f03bd34142fa2;hp=be5accf5ede2d095a2d40cc398970aa406a49a74;hpb=a035d049951445f892a37bfdef3e738f8a18e8b9;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/monsters/spawn.qc b/qcsrc/common/monsters/spawn.qc index be5accf5e..8aee54b98 100644 --- a/qcsrc/common/monsters/spawn.qc +++ b/qcsrc/common/monsters/spawn.qc @@ -1,3 +1,14 @@ +#if defined(CSQC) +#elif defined(MENUQC) +#elif defined(SVQC) + #include "../../dpdefs/progsdefs.qh" + #include "../util.qh" + #include "monsters.qh" + #include "sv_monsters.qh" + #include "spawn.qh" + #include "../../server/autocvars.qh" + #include "../../server/defs.qh" +#endif entity spawnmonster (string monster, float monster_id, entity spawnedby, entity own, vector orig, float respwn, float invincible, float moveflag) { // ensure spawnfunc database is initialized @@ -34,7 +45,7 @@ entity spawnmonster (string monster, float monster_id, entity spawnedby, entity mon = get_monsterinfo(i); if(mon.netname == monster) { - found = TRUE; + found = true; monster_id = mon.monsterid; // we have the monster, old monster id is no longer required break; } @@ -64,7 +75,7 @@ entity spawnmonster (string monster, float monster_id, entity spawnedby, entity } //monster = strcat("$ spawnfunc_monster_", monster); - + entity oldself = self; self = e; monster_initialize(monster_id);