]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/spawnpoints.qh
Merge branch 'master' into cloudwalk9/mgburstfix
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / spawnpoints.qh
index b256f4c3685e261a715e3f03a7a3d5a1c3129031..92af8df66fe017167bf2b64a6127235a2e6e2d50 100644 (file)
@@ -1,12 +1,15 @@
+#pragma once
+
+// spawnpoint prios
+const int SPAWN_PRIO_NEAR_TEAMMATE_FOUND = 200;
+const int SPAWN_PRIO_NEAR_TEAMMATE_SAMETEAM = 100;
+const int SPAWN_PRIO_RACE_PREVIOUS_SPAWN = 50;
+const int SPAWN_PRIO_GOOD_DISTANCE = 10;
+
 .vector spawnpoint_score;
 float spawnpoint_nag;
-//void spawnpoint_use();
-//void relocate_spawnpoint();
-//void spawnfunc_info_player_survivor (void);
-//void spawnfunc_info_player_start (void);
-//void spawnfunc_info_player_deathmatch (void);
-//vector Spawn_Score(entity spot, float mindist, float teamcheck);
-//void Spawn_ScoreAll(entity firstspot, float mindist, float teamcheck);
-entity Spawn_FilterOutBadSpots(entity firstspot, float mindist, float teamcheck);
-//entity Spawn_WeightedPoint(entity firstspot, float lower, float upper, float exponent);
-//entity SelectSpawnPoint (float anypoint);
+bool SpawnEvent_Send(entity this, entity to, int sf);
+entity Spawn_FilterOutBadSpots(entity this, entity firstspot, float mindist, float teamcheck);
+entity SelectSpawnPoint(entity this, bool anypoint);
+spawnfunc(info_player_deathmatch);
+void spawnpoint_use(entity this, entity actor, entity trigger);