From 002724a02fcfdfe7ce3fb914b25d90394c0bc65f Mon Sep 17 00:00:00 2001 From: terencehill Date: Fri, 30 Mar 2018 16:17:12 +0200 Subject: [PATCH] Bot waypoints: slightly increase height of the typical start point for the jump; it fixes missing jumppad waypoints in the map Aneurysm; increase WAYPOINT_VERSION to 1.01 so links will be automatically fixed on map start --- qcsrc/common/triggers/trigger/jumppads.qc | 2 +- qcsrc/server/bot/default/waypoints.qh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/qcsrc/common/triggers/trigger/jumppads.qc b/qcsrc/common/triggers/trigger/jumppads.qc index fde6e1fb9..01bcb355d 100644 --- a/qcsrc/common/triggers/trigger/jumppads.qc +++ b/qcsrc/common/triggers/trigger/jumppads.qc @@ -317,7 +317,7 @@ bool trigger_push_test(entity this, entity item) { // first calculate a typical start point for the jump vector org = (this.absmin + this.absmax) * 0.5; - org.z = this.absmax.z - PL_MIN_CONST.z - 10; + org.z = this.absmax.z - PL_MIN_CONST.z - 7; if (this.target) { diff --git a/qcsrc/server/bot/default/waypoints.qh b/qcsrc/server/bot/default/waypoints.qh index bea11e929..595c2d058 100644 --- a/qcsrc/server/bot/default/waypoints.qh +++ b/qcsrc/server/bot/default/waypoints.qh @@ -6,7 +6,7 @@ // increase by 0.01 when changes require only waypoint relinking // increase by 1 when changes require to manually edit waypoints // max 2 decimal places, always specified -#define WAYPOINT_VERSION 1.00 +#define WAYPOINT_VERSION 1.01 // fields you can query using prvm_global server to get some statistics about waypoint linking culling float relink_total, relink_walkculled, relink_pvsculled, relink_lengthculled; -- 2.39.2