trigger_init(this);
func_ladder_link(this);
+
+ if(min(this.absmax.x - this.absmin.x, this.absmax.y - this.absmin.y) > 100)
+ return;
+ this.bot_pickup = true; // allow bots to make use of this ladder
vector top = (this.absmin + this.absmax) / 2;
top.z = this.absmax.z + 1 - PL_MIN_CONST.z;
float cost = waypoint_getdistancecost_simple(this.absmax.z - this.absmin.z);
bool ladder_found = false;
IL_EACH(g_ladders, it.classname == "func_ladder",
{
+ if(it.bot_pickup)
if(boxesoverlap(org + jumpheight_vec + m1 + '-1 -1 -1', org + jumpheight_vec + m2 + '1 1 1', it.absmin, it.absmax))
if(boxesoverlap(end, end2, it.absmin + (m1 - eZ * m1.z - '1 1 0'), it.absmax + (m2 - eZ * m2.z + '1 1 0')))
ladder_found = true; // can't return here ("Loop mutex held by tracewalk" error)