X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fbot%2Fdefault%2Fwaypoints.qh;h=e9aa1ee12a64213aa9fb8af5feb11347495ba02e;hb=ff2e9a518b256c1cbaad9bc3eb7450f85ca8b80e;hp=3676ca5f4e5b0d578ee9b85b09dfd2b9e37d43b6;hpb=9a86b33a632e9f8a957267ada102a0e2e6047c09;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/bot/default/waypoints.qh b/qcsrc/server/bot/default/waypoints.qh index 3676ca5f4..e9aa1ee12 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 -const float WAYPOINT_VERSION = 1.03; +const float WAYPOINT_VERSION = 1.04; float waypoint_version_loaded; string waypoint_time; @@ -43,6 +43,10 @@ float botframe_cachedwaypointlinks; .vector wpnearestpoint; +// holds reference to the support waypoint, if any +.entity goalentity; +#define SUPPORT_WP goalentity + /* * Functions */ @@ -63,6 +67,8 @@ void waypoint_think(entity this); void waypoint_clearlinks(entity wp); void waypoint_schedulerelink(entity wp); +float waypoint_get_assigned_link_cost(entity w, float i); + float waypoint_getlinkcost(entity from, entity to); float waypoint_gettravelcost(vector from, vector to, entity from_ent, entity to_ent); float waypoint_getlinearcost(float dist); @@ -84,7 +90,7 @@ float waypoint_loadall(); bool waypoint_load_links(); void waypoint_load_hardwiredlinks(); -void waypoint_spawn_fromeditor(entity pl, bool at_crosshair, bool is_jump_wp, bool is_crouch_wp); +void waypoint_spawn_fromeditor(entity pl, bool at_crosshair, bool is_jump_wp, bool is_crouch_wp, bool is_support_wp); entity waypoint_spawn(vector m1, vector m2, float f); entity waypoint_spawnpersonal(entity this, vector position);