-#ifndef MONSTERS_ALL_C
-#define MONSTERS_ALL_C
-
#include "all.qh"
-entity get_monsterinfo(int id)
+string M_Model(string m_mdl)
{
- if (id >= MON_FIRST && id <= MON_LAST) {
- entity m = monster_info[id];
- if (m) return m;
- }
- return MON_Null;
-}
-
-#define IMPLEMENTATION
-#include "all.inc"
-#undef IMPLEMENTATION
-
+ string output = strcat("models/monsters/", m_mdl);
+#ifdef SVQC
+ MUTATOR_CALLHOOK(MonsterModel, m_mdl, output);
+ return M_ARGV(1, string);
+#else
+ return output;
#endif
+}