alias menu_showhudoptions "menu_cmd directpanelhudmenu ${* ?}"
alias menu_showsandboxtools "menu_cmd directmenu SandboxTools"
alias menu_showquitdialog "menu_cmd directmenu Quit"
-alias menu_showtdtools "menu_cmd directmenu TowerDefense"
alias menu_showmonstertools "menu_cmd directmenu MonsterTools"
// command executed before loading a map by the menu
bind f7 menu_showsandboxtools
seta menu_monsters_edit_spawn ""
-seta menu_monsters_edit_name ""
seta menu_monsters_edit_skin 0
-seta menu_monsters_edit_color ""
seta menu_monsters_edit_movetarget 1
set g_playerclip_collisions 1 "0 = disable collision testing against playerclips, might be useful on some defrag maps"
var float autocvar_g_waypointsprite_turrets = TRUE;
var float autocvar_g_waypointsprite_turrets_maxdist = 5000;
var float autocvar_g_waypointsprite_monsters = TRUE;
-var float autocvar_g_waypointsprite_monsters_maxdist = 5000;
+var float autocvar_g_waypointsprite_monsters_maxdist = 2000;
var float autocvar_hud_cursormode = TRUE;
float autocvar_hud_colorflash_alpha;
float autocvar_hud_configure_checkcollisions;
e.maxs = max_s;
e.model = strzone(strcat("models/monsters/", modelname));
+ #ifndef MENUQC
func(MR_INIT);
+ #endif
}
float m_null(float dummy) { return 0; }
void register_monsters_done()
.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
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 \
../common/command/generic.qh
../common/command/shared_defs.qh
../common/urllib.qh
+../common/monsters/monsters.qh
command/menu_cmd.qh
menu.qh
../common/mapinfo.qc
../common/items.qc
../common/urllib.qc
+../common/monsters/monsters.qc
../warpzonelib/mathlib.qc