]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/server/spawnpoints.qh
Some more defs.qh cleanup, update gameplay hash
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / spawnpoints.qh
1 #pragma once
2
3 // spawnpoint prios
4 const int SPAWN_PRIO_NEAR_TEAMMATE_FOUND = 200;
5 const int SPAWN_PRIO_NEAR_TEAMMATE_SAMETEAM = 100;
6 const int SPAWN_PRIO_RACE_PREVIOUS_SPAWN = 50;
7 const int SPAWN_PRIO_GOOD_DISTANCE = 10;
8
9 .vector spawnpoint_score;
10 float spawnpoint_nag;
11 bool SpawnEvent_Send(entity this, entity to, int sf);
12 entity Spawn_FilterOutBadSpots(entity this, entity firstspot, float mindist, float teamcheck, bool targetcheck);
13 entity SelectSpawnPoint(entity this, bool anypoint);
14 spawnfunc(info_player_deathmatch);
15 void spawnpoint_use(entity this, entity actor, entity trigger);
16
17 USING(spawn_evalfunc_t, vector(entity this, entity player, entity spot, vector current));
18 .spawn_evalfunc_t spawn_evalfunc;
19
20 .int restriction;