X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fbot%2Fnavigation.qc;h=ad0a8d761d4bdfff7a8aca640ebc8c6ddf8b8d51;hb=8643336b62c2c2881987dabddc842a0214839012;hp=3c3f135cc4d35be6c9b2af1db02d5aada325983d;hpb=fbb96108e5828a7557694db4469c2d0d7c582846;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/bot/navigation.qc b/qcsrc/server/bot/navigation.qc index 3c3f135cc..ad0a8d761 100644 --- a/qcsrc/server/bot/navigation.qc +++ b/qcsrc/server/bot/navigation.qc @@ -7,6 +7,7 @@ #include "../t_items.qh" #include "../../common/constants.qh" +#include "../../common/triggers/trigger/jumppads.qh" void bot_debug(string input) { @@ -397,7 +398,7 @@ entity navigation_findnearestwaypoint_withdist_except(entity ent, float walkfrom } org = ent.origin + 0.5 * (ent.mins + ent.maxs); - org.z = ent.origin.z + ent.mins.z - PL_MIN_z; // player height + org.z = ent.origin.z + ent.mins.z - PL_MIN.z; // player height // TODO possibly make other code have the same support for bboxes if(ent.tag_entity) org = org + ent.tag_entity.origin; @@ -720,7 +721,7 @@ void navigation_routerating(entity e, float f, float rangebias) float zdistance, xydistance, cost, t, fuel; vector down, npa, npb; - down = '0 0 -1' * (PL_MAX_z - PL_MIN_z) * 10; + down = '0 0 -1' * (PL_MAX.z - PL_MIN.z) * 10; do{ npa = pointa + down;