X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fserver%2Fbot%2Fnavigation.qh;h=cf4a5ce5b261dcf6c4e154bef405c480d85a2afb;hp=8971692de03193c546f0a33ac09eb65709038884;hb=6f37a8f8076a572097afb13de2c367a72717c927;hpb=c124ca87a28c2cbf69835e8ca2549baf9b872609 diff --git a/qcsrc/server/bot/navigation.qh b/qcsrc/server/bot/navigation.qh index 8971692de..cf4a5ce5b 100644 --- a/qcsrc/server/bot/navigation.qh +++ b/qcsrc/server/bot/navigation.qh @@ -1,3 +1,5 @@ +#ifndef NAVIGATION_H +#define NAVIGATION_H /* * Globals and Fields */ @@ -28,12 +30,14 @@ entity navigation_bestgoal; .float navigation_hasgoals; .float lastteleporttime; +.float blacklisted; + .entity navigation_jetpack_goal; .vector navigation_jetpack_point; -float DEBUG_NODE_SUCCESS = 1; -float DEBUG_NODE_WARNING = 2; -float DEBUG_NODE_FAIL = 3; +const float DEBUG_NODE_SUCCESS = 1; +const float DEBUG_NODE_WARNING = 2; +const float DEBUG_NODE_FAIL = 3; vector debuglastnode; entity bot_waypoint_queue_owner; // Owner of the temporary list of goals @@ -72,3 +76,5 @@ void navigation_unstuck(); void botframe_updatedangerousobjects(float maxupdate); entity navigation_findnearestwaypoint(entity ent, float walkfromwp); +float navigation_waypoint_will_link(vector v, vector org, entity ent, float walkfromwp, float bestdist); +#endif