Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
spawnpoints.qh
Go to the documentation of this file.
1#pragma once
2
7float autocvar_r_showbboxes; // engine cvar
8
9// spawnpoint prios
14
16int have_team_spawns; // 0 = no team spawns requested, -1 = team spawns requested but none found, 1 = team spawns requested and found
17int have_team_spawns_forteams; // if Xth bit is 1 then team X has spawns else it has no spawns; team 0 is the "no-team"
18
21bool SpawnEvent_Send(entity this, entity to, int sf);
22entity Spawn_FilterOutBadSpots(entity this, entity firstspot, float mindist, float teamcheck, bool targetcheck);
23entity SelectSpawnPoint(entity this, bool anypoint);
24spawnfunc(info_player_deathmatch);
25void spawnpoint_use(entity this, entity actor, entity trigger);
26
27USING(spawn_evalfunc_t, vector(entity this, entity player, entity spot, vector current));
28.spawn_evalfunc_t spawn_evalfunc;
29
31
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
limitations: NULL cannot be present elements can only be present once a maximum of IL_MAX lists can e...
#define IL_NEW()
#define USING(name, T)
Definition _all.inc:72
vector
Definition self.qh:92
const int SPAWN_PRIO_NEAR_TEAMMATE_FOUND
const int SPAWN_PRIO_GOOD_DISTANCE
int restriction
void spawnpoint_use(entity this, entity actor, entity trigger)
bool autocvar_g_spawn_useallspawns
Definition spawnpoints.qh:5
bool autocvar_g_spawnpoints_auto_move_out_of_solid
Definition spawnpoints.qh:6
int have_team_spawns
const int SPAWN_PRIO_RACE_PREVIOUS_SPAWN
int have_team_spawns_forteams
bool SpawnEvent_Send(entity this, entity to, int sf)
vector spawnpoint_score
entity SelectSpawnPoint(entity this, bool anypoint)
bool some_spawn_has_been_used
spawn_evalfunc_t spawn_evalfunc
IntrusiveList g_spawnpoints
float spawnpoint_nag
float autocvar_g_spawn_furthest
Definition spawnpoints.qh:4
vector(entity this, entity player, entity spot, vector current) spawn_evalfunc_t
float autocvar_r_showbboxes
Definition spawnpoints.qh:7
entity Spawn_FilterOutBadSpots(entity this, entity firstspot, float mindist, float teamcheck, bool targetcheck)
int autocvar_g_spawn_alloweffects
Definition spawnpoints.qh:3
const int SPAWN_PRIO_NEAR_TEAMMATE_SAMETEAM
#define spawnfunc(id)
Definition spawnfunc.qh:96
#define STATIC_INIT(func)
during worldspawn
Definition static.qh:32