-#ifdef SVQC
-#include "lib/defs.qh"
-#include "lib/monsters.qc"
-#include "lib/spawn.qc"
-#endif
-
#include "all.qh"
// MONSTER PLUGIN SYSTEM
entity monster_info[MON_MAXCOUNT];
entity dummy_monster_info;
-void register_monster(float id, float(float) func, vector min_s, vector max_s, string modelname, string shortname, string mname)
+void register_monster(float id, float(float) func, float monsterflags, vector min_s, vector max_s, string modelname, string shortname, string mname)
{
entity e;
monster_info[id - 1] = e = spawn();
e.monster_name = mname;
e.monster_func = func;
e.mdl = modelname;
+ e.spawnflags = monsterflags;
e.mins = min_s;
e.maxs = max_s;
e.model = strzone(strcat("models/monsters/", modelname));
-
- func(MR_INIT);
+
+ #ifndef MENUQC
+ func(MR_PRECACHE);
+ #endif
}
float m_null(float dummy) { return 0; }
void register_monsters_done()
if(m)
return m;
return dummy_monster_info;
-}
+}
\ No newline at end of file