X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fbot%2Fnavigation.qh;h=cf4a5ce5b261dcf6c4e154bef405c480d85a2afb;hb=853b6160a59c1e6f1b67af9abd43cf98d25b8625;hp=b3b40ce03e55443be1c82e8e362f354381e82483;hpb=6f4349956b11b36ba20e65e34d39b5029a5eb3ac;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/bot/navigation.qh b/qcsrc/server/bot/navigation.qh index b3b40ce03..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 */ @@ -33,9 +35,9 @@ entity navigation_bestgoal; .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 @@ -74,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