X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;ds=sidebyside;f=qcsrc%2Fserver%2Fspawnpoints.qh;h=92af8df66fe017167bf2b64a6127235a2e6e2d50;hb=d8e73f411f306e6d475bf385bfe5777692aee4a0;hp=beab71c7ad104db99c7a87a593ce4bcd13191c28;hpb=4dd3c23aa51dd6fe855d8c5d97126a12a372eb3b;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/spawnpoints.qh b/qcsrc/server/spawnpoints.qh index beab71c7a..92af8df66 100644 --- a/qcsrc/server/spawnpoints.qh +++ b/qcsrc/server/spawnpoints.qh @@ -1,9 +1,15 @@ -#ifndef SPAWNPOINTS_H -#define SPAWNPOINTS_H +#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; -float SpawnEvent_Send(entity to, float sf); -entity Spawn_FilterOutBadSpots(entity firstspot, float mindist, float teamcheck); -entity SelectSpawnPoint (float anypoint); -#endif +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);