]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/monsters/monsters.qh
Add monster support to the menu (may be used for a new monsters dialog)
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / monsters / monsters.qh
index 962a810bc2fc5882c9dec3fa4412da7ecefcb70f..d0f7a9ad31c9f315635eb847a5f706233405e861 100644 (file)
@@ -25,6 +25,7 @@ const float MON_FLAG_MELEE = 1024;
 .string mdl; // currently a copy of the model
 .string model; // full name of model
 .float spawnflags;
+.vector mins, maxs; // monster hitbox size
 
 // csqc linking
 #ifndef MENUQC
@@ -67,8 +68,13 @@ float MON_LAST;
                register_monster(id,func,monsterflags,min_s,max_s,modelname,shortname,mname); \
        } \
        ACCUMULATE_FUNCTION(RegisterMonsters, RegisterMonsters_##id)
+#ifdef MENUQC
+#define REGISTER_MONSTER(id,func,monsterflags,min_s,max_s,modelname,shortname,mname) \
+       REGISTER_MONSTER_2(MON_##id,m_null,monsterflags,min_s,max_s,modelname,shortname,mname)
+#else
 #define REGISTER_MONSTER(id,func,monsterflags,min_s,max_s,modelname,shortname,mname) \
        REGISTER_MONSTER_2(MON_##id,func,monsterflags,min_s,max_s,modelname,shortname,mname)
+#endif
 
 #define MON_DUPECHECK(dupecheck,cvar) \
        #ifndef dupecheck \