if(autocvar_bot_debug_tracewalk)
debugnodestatus(trace_endpos, DEBUG_NODE_WARNING);
- FOREACH_ENTITY_CLASS("func_ladder", true,
+ IL_EACH(g_ladders, it.classname == "func_ladder",
{ it.solid = SOLID_BSP; });
traceline( org, move, movemode, e);
- FOREACH_ENTITY_CLASS("func_ladder", true,
+ IL_EACH(g_ladders, it.classname == "func_ladder",
{ it.solid = SOLID_TRIGGER; });
if ( trace_ent.classname == "door_rotating" || trace_ent.classname == "door")
IntrusiveList g_railgunhit;
STATIC_INIT(g_railgunhit) { g_railgunhit = IL_NEW(); }
+
+IntrusiveList g_ladders;
+STATIC_INIT(g_ladders) { g_ladders = IL_NEW(); }