func_ladder_link(this);
vector top = (this.absmin + this.absmax) / 2;
top.z = this.absmax.z + 1 - PL_MIN_CONST.z;
- float height = this.absmax.z - this.absmin.z;
- waypoint_spawnforteleporter_boxes(this, WAYPOINTFLAG_LADDER, this.absmin, this.absmax, top, top, height);
+ float cost = waypoint_getdistancecost_simple(this.absmax.z - this.absmin.z);
+ waypoint_spawnforteleporter_boxes(this, WAYPOINTFLAG_LADDER, this.absmin, this.absmax, top, top, cost);
}
spawnfunc(func_ladder)