X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fmonsters%2Fspawn.qc;h=5bfef1b8f574ab407250f1ba0433df9346488658;hb=e8e214d23e2cab174facf54bf032bdde8d1e5304;hp=be5accf5ede2d095a2d40cc398970aa406a49a74;hpb=a59c12d71fa599891fc1d658aeea2f546d89d9e4;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/monsters/spawn.qc b/qcsrc/common/monsters/spawn.qc index be5accf5e..5bfef1b8f 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 "all.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);