-#ifdef SVQC
-#include "lib/defs.qh"
-#include "lib/monsters.qc"
-#include "lib/spawn.qc"
-#endif
+#include "monsters.qh"
#include "all.qh"
entity monster_info[MON_MAXCOUNT];
entity dummy_monster_info;
-void register_monster(float id, float(float) func, float monsterflags, vector min_s, vector max_s, string modelname, string shortname, string mname)
+void register_monster(int id, float(float) func, int monsterflags, vector min_s, vector max_s, string modelname, string shortname, string mname)
{
entity e;
monster_info[id - 1] = e = spawn();
e.mins = min_s;
e.maxs = max_s;
e.model = strzone(strcat("models/monsters/", modelname));
-
- func(MR_INIT);
}
float m_null(float dummy) { return 0; }
void register_monsters_done()
dummy_monster_info.maxs = '0 0 0';
dummy_monster_info.model = "";
}
-entity get_monsterinfo(float id)
+entity get_monsterinfo(int id)
{
entity m;
if(id < MON_FIRST || id > MON_LAST)