X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fbot%2Fwaypoints.qh;h=fde524bb94821ae89bd4ced22ecebed7e3d47e66;hb=3ae1efa7401791e42e3171f4db2cc2d38adde088;hp=5a75551d2452652383a62728383141633b412c97;hpb=f111e54b35268d60a0c32ba8ff85fe63834c6c7c;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/bot/waypoints.qh b/qcsrc/server/bot/waypoints.qh index 5a75551d2..fde524bb9 100644 --- a/qcsrc/server/bot/waypoints.qh +++ b/qcsrc/server/bot/waypoints.qh @@ -1,12 +1,17 @@ +#ifndef WAYPOINTS_H +#define WAYPOINTS_H /* * Globals and Fields */ -const float WAYPOINTFLAG_GENERATED = 8388608; -const float WAYPOINTFLAG_ITEM = 4194304; -const float WAYPOINTFLAG_TELEPORT = 2097152; -const float WAYPOINTFLAG_NORELINK = 1048576; -const float WAYPOINTFLAG_PERSONAL = 524288; +const int WAYPOINTFLAG_GENERATED = 8388608; +const int WAYPOINTFLAG_ITEM = 4194304; +const int WAYPOINTFLAG_TELEPORT = 2097152; +const int WAYPOINTFLAG_NORELINK = 1048576; +const int WAYPOINTFLAG_PERSONAL = 524288; +const int WAYPOINTFLAG_PROTECTED = 262144; // Useless WP detection never kills these. +const int WAYPOINTFLAG_USEFUL = 131072; // Useless WP detection temporary flag. +const int WAYPOINTFLAG_DEAD_END = 65536; // Useless WP detection temporary flag. // fields you can query using prvm_global server to get some statistics about waypoint linking culling float relink_total, relink_walkculled, relink_pvsculled, relink_lengthculled; @@ -24,7 +29,8 @@ float botframe_cachedwaypointlinks; .float wp16mincost, wp17mincost, wp18mincost, wp19mincost, wp20mincost, wp21mincost, wp22mincost, wp23mincost; .float wp24mincost, wp25mincost, wp26mincost, wp27mincost, wp28mincost, wp29mincost, wp30mincost, wp31mincost; -.float wpfire, wpcost, wpconsidered, wpisbox, wpflags, wplinked, wphardwired; +.float wpfire, wpcost, wpconsidered, wpisbox, wplinked, wphardwired; +.int wpflags; .vector wpnearestpoint; @@ -32,7 +38,7 @@ float botframe_cachedwaypointlinks; * Functions */ -void spawnfunc_waypoint(); +spawnfunc(waypoint); void waypoint_addlink(entity from, entity to); void waypoint_think(); void waypoint_clearlinks(entity wp); @@ -48,6 +54,7 @@ void waypoint_saveall(); void waypoint_spawnforitem_force(entity e, vector org); void waypoint_spawnforitem(entity e); void waypoint_spawnforteleporter(entity e, vector destination, float timetaken); +void waypoint_spawnforteleporter_v(entity e, vector org, vector destination, float timetaken); void botframe_showwaypointlinks(); float waypoint_loadall(); @@ -59,3 +66,4 @@ entity waypoint_spawnpersonal(vector position); vector waypoint_fixorigin(vector position); void botframe_autowaypoints(); +#endif