]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/bot/default/waypoints.qh
Fix bots appearing on the scoreboard as spectators when switching map with the gotoma...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / bot / default / waypoints.qh
index 42082c6ab894a36871e9a36f331f0db2cfeadf34..38d57a04a1395a1f472e2e41690703dc466789a5 100644 (file)
@@ -1,16 +1,7 @@
-#ifndef WAYPOINTS_H
-#define WAYPOINTS_H
+#pragma once
 /*
  * Globals and Fields
  */
-// const int WAYPOINTFLAG_GENERATED = 0x800000;
-const int WAYPOINTFLAG_ITEM = 0x400000;
-const int WAYPOINTFLAG_TELEPORT = 0x200000;
-const int WAYPOINTFLAG_NORELINK = 0x100000;
-const int WAYPOINTFLAG_PERSONAL = 0x80000;
-const int WAYPOINTFLAG_PROTECTED = 0x40000;  // Useless WP detection never kills these.
-const int WAYPOINTFLAG_USEFUL = 0x20000;  // Useless WP detection temporary flag.
-const int WAYPOINTFLAG_DEAD_END = 0x10000;  // 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;
@@ -28,7 +19,7 @@ float botframe_cachedwaypointlinks;
 .float wp16mincost, wp17mincost, wp18mincost, wp19mincost, wp20mincost, wp21mincost, wp22mincost, wp23mincost;
 .float wp24mincost, wp25mincost, wp26mincost, wp27mincost, wp28mincost, wp29mincost, wp30mincost, wp31mincost;
 
-.float wpfire, wpconsidered, wpisbox, wplinked, wphardwired;
+.float wpfire, wpcost, wpconsidered, wpisbox, wplinked, wphardwired;
 .int wpflags;
 
 .vector wpnearestpoint;
@@ -39,7 +30,7 @@ float botframe_cachedwaypointlinks;
 
 spawnfunc(waypoint);
 void waypoint_addlink(entity from, entity to);
-void waypoint_think();
+void waypoint_think(entity this);
 void waypoint_clearlinks(entity wp);
 void waypoint_schedulerelink(entity wp);
 
@@ -60,9 +51,8 @@ float waypoint_loadall();
 float waypoint_load_links();
 
 entity waypoint_spawn(vector m1, vector m2, float f);
-entity waypoint_spawnpersonal(vector position);
+entity waypoint_spawnpersonal(entity this, vector position);
 
 vector waypoint_fixorigin(vector position);
 
 void botframe_autowaypoints();
-#endif