X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fbot%2Fdefault%2Fnavigation.qh;h=f3103cc4fcd39d875708a0612e83c59addd03095;hb=cd31c0a69e9e4e4a03fcdaf6e86f93c0f7c49d47;hp=c6d172cce9800bb87b040bd573a10ccbd40d31af;hpb=4299b97f93fc4753665e198066970bd51bb3b06a;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/bot/default/navigation.qh b/qcsrc/server/bot/default/navigation.qh index c6d172cce..f3103cc4f 100644 --- a/qcsrc/server/bot/default/navigation.qh +++ b/qcsrc/server/bot/default/navigation.qh @@ -50,6 +50,10 @@ entity navigation_bestgoal; #define navigation_item_addlink(from_wp, to_item) \ waypoint_addlink_customcost(to_item, from_wp, waypoint_getlinkcost(from_wp, to_item)) +#define TELEPORT_USED(pl, tele_wp) \ + (time - pl.lastteleporttime < ((tele_wp.wpflags & WAYPOINTFLAG_PERSONAL) ? 2 : 0.15) \ + && boxesoverlap(tele_wp.absmin, tele_wp.absmax, pl.lastteleport_origin + STAT(PL_MIN, pl), pl.lastteleport_origin + STAT(PL_MAX, pl))) + vector tracewalk_dest; float tracewalk_dest_height; @@ -57,6 +61,7 @@ float tracewalk_dest_height; .entity wp_goal_prev1; .float lastteleporttime; +.vector lastteleport_origin; .float blacklisted;