From: terencehill Date: Thu, 8 Jun 2017 15:45:14 +0000 (+0200) Subject: Greatly improve linking to teleports and jumppads by expanding their waypoints to... X-Git-Tag: xonotic-v0.8.5~2378^2~137 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=374f84769769bbaed10ef90c2e46a1b27e3a2406;p=xonotic%2Fxonotic-data.pk3dir.git Greatly improve linking to teleports and jumppads by expanding their waypoints to include half player's body since bot only needs to touch them, not to enter them. E.g. 2 jumppads in the central room in the map Cucumber can now be linked from both sides, previously possible only frontally --- diff --git a/qcsrc/server/bot/default/waypoints.qc b/qcsrc/server/bot/default/waypoints.qc index 11d4c75de..f5391dbea 100644 --- a/qcsrc/server/bot/default/waypoints.qc +++ b/qcsrc/server/bot/default/waypoints.qc @@ -1109,7 +1109,7 @@ void waypoint_spawnforteleporter_v(entity e, vector org, vector destination, flo void waypoint_spawnforteleporter(entity e, vector destination, float timetaken) { destination = waypoint_fixorigin(destination); - waypoint_spawnforteleporter_boxes(e, WAYPOINTFLAG_TELEPORT, e.absmin, e.absmax, destination, destination, timetaken); + waypoint_spawnforteleporter_boxes(e, WAYPOINTFLAG_TELEPORT, e.absmin - PL_MAX_CONST + '1 1 1', e.absmax - PL_MIN_CONST + '-1 -1 -1', destination, destination, timetaken); } entity waypoint_spawnpersonal(entity this, vector position)