-#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;
.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;
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);
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