#ifndef MONSTERS_ALL_C
#define MONSTERS_ALL_C
-#include "all.qh"
-REGISTER_MONSTER(Null, Monster) {
- this.netname = "";
- this.monster_name = "Monster";
- this.monster_func = m_null;
- this.mdl = "";
- this.mins = '-0 -0 -0';
- this.maxs = '0 0 0';
- this.model = "";
+string M_Model(string m_mdl)
+{
+ string output = strcat("models/monsters/", m_mdl);
+#ifdef SVQC
+ MUTATOR_CALLHOOK(MonsterModel, m_mdl, output);
+ return M_ARGV(1, string);
+#else
+ return output;
+#endif
}
-#include "all.inc"
+#include "all.qh"
+
+#define IMPLEMENTATION
+#include "monster/_mod.inc"
+#undef IMPLEMENTATION
-entity get_monsterinfo(int id)
-{
- if (id >= MON_FIRST && id <= MON_LAST)
- {
- entity m = monster_info[id];
- if (m) return m;
- }
- return MON_Null;
-}
+#ifdef SVQC
+#include "spawn.qc"
+#include "sv_monsters.qc"
+#endif
#endif