Xonotic
|
#include "spawnpoints.qh"
#include <common/constants.qh>
#include <common/gamemodes/_mod.qh>
#include <common/mapobjects/subs.qh>
#include <common/mapobjects/target/spawnpoint.qh>
#include <common/mapobjects/triggers.qh>
#include <common/net_linked.qh>
#include <common/stats.qh>
#include <common/teams.qh>
#include <common/util.qh>
#include <common/weapons/_all.qh>
#include <lib/warpzone/common.qh>
#include <lib/warpzone/util_server.qh>
#include <server/command/vote.qh>
#include <server/intermission.qh>
#include <server/mutators/_mod.qh>
#include <server/race.qh>
#include <server/utils.qh>
#include <server/world.qh>
Go to the source code of this file.
Functions | |
void | link_spawnpoint (entity this) |
void | relocate_spawnpoint (entity this) |
entity | SelectSpawnPoint (entity this, bool anypoint) |
entity | Spawn_FilterOutBadSpots (entity this, entity firstspot, float mindist, float teamcheck, bool targetcheck) |
vector | Spawn_Score (entity this, entity spot, float mindist, float teamcheck, bool targetcheck) |
void | Spawn_ScoreAll (entity this, entity firstspot, float mindist, float teamcheck, bool targetcheck) |
entity | Spawn_WeightedPoint (entity firstspot, float lower, float upper, float exponent) |
bool | SpawnEvent_Send (entity this, entity to, int sf) |
spawnfunc (info_player_survivor) | |
spawnfunc (info_player_start) | |
spawnfunc (info_player_deathmatch) | |
spawnfunc (info_player_team1) | |
spawnfunc (info_player_team2) | |
spawnfunc (info_player_team3) | |
spawnfunc (info_player_team4) | |
void | spawnpoint_reset (entity this) |
bool | SpawnPoint_Send (entity this, entity to, int sf) |
void | spawnpoint_think (entity this) |
void | spawnpoint_use (entity this, entity actor, entity trigger) |
Variables | |
vector | spawnpoint_prevorigin |
bool | testspawn_checked |
entity | testspawn_point |
Definition at line 82 of file spawnpoints.qc.
References autocvar_g_spawn_useallspawns, have_team_spawns, SpawnPoint_Send(), team, Team_IsValidTeam(), and teamplay.
Referenced by relocate_spawnpoint().
Definition at line 93 of file spawnpoints.qc.
References angles, autocvar_g_spawnpoints_auto_move_out_of_solid, autocvar_r_showbboxes, BIT, cnt, entity(), g_saved_team, have_team_spawns, have_team_spawns_forteams, IL_PUSH(), InitializeEntity(), link_spawnpoint(), LOG_INFO, LOG_INFOF, maxs, mins, move_out_of_solid, nextthink, objerror(), origin, random(), setorigin(), setthink, SOLID_TRIGGER, spawnpoint_nag, spawnpoint_reset(), spawnpoint_think(), spawnpoint_use(), team, team_saved, time, trace_startsolid, use, vector(), and vtos().
Referenced by spawnfunc().
Definition at line 329 of file spawnpoints.qc.
References autocvar_g_spawn_furthest, autocvar_g_spawn_useallspawns, autocvar_spawn_debug, BIT, classname, entity(), error(), find(), g_spawnpoints, GotoNextMap(), have_team_spawns, have_team_spawns_forteams, IL_EACH, IL_FIRST, NULL, prev, random(), some_spawn_has_been_used, Spawn_FilterOutBadSpots(), Spawn_WeightedPoint(), team, testspawn_checked, and testspawn_point.
Referenced by buff_Respawn(), Damage(), ka_RespawnBall(), PutObserverInServer(), and PutPlayerInServer().
entity Spawn_FilterOutBadSpots | ( | entity | this, |
entity | firstspot, | ||
float | mindist, | ||
float | teamcheck, | ||
bool | targetcheck | ||
) |
Definition at line 281 of file spawnpoints.qc.
References entity(), NULL, and Spawn_ScoreAll().
Referenced by SelectSpawnPoint(), and trigger_race_checkpoint_verify().
Definition at line 213 of file spawnpoints.qc.
References entity(), FOREACH_CLIENT, g_cts, IS_DEAD, IS_PLAYER, IS_REAL_CLIENT, LOG_TRACE, M_ARGV, MUTATOR_CALLHOOK, race_spawns, SPAWN_PRIO_GOOD_DISTANCE, targetname, vector(), vlen(), vtos(), and world.
Referenced by Spawn_ScoreAll().
void Spawn_ScoreAll | ( | entity | this, |
entity | firstspot, | ||
float | mindist, | ||
float | teamcheck, | ||
bool | targetcheck | ||
) |
Definition at line 274 of file spawnpoints.qc.
References entity(), and Spawn_Score().
Referenced by Spawn_FilterOutBadSpots().
Definition at line 307 of file spawnpoints.qc.
References bound(), entity(), RandomSelection_AddEnt, RandomSelection_chosen_ent, and RandomSelection_Init().
Referenced by SelectSpawnPoint().
Definition at line 32 of file spawnpoints.qc.
References autocvar_g_spawn_alloweffects, etof(), IS_SPEC, owner, and WriteByte().
Referenced by PutPlayerInServer().
spawnfunc | ( | info_player_survivor | ) |
Definition at line 156 of file spawnpoints.qc.
spawnfunc | ( | info_player_start | ) |
Definition at line 161 of file spawnpoints.qc.
spawnfunc | ( | info_player_deathmatch | ) |
Definition at line 166 of file spawnpoints.qc.
References g_spawnpoints, IL_PUSH(), and relocate_spawnpoint().
spawnfunc | ( | info_player_team1 | ) |
spawnfunc | ( | info_player_team2 | ) |
spawnfunc | ( | info_player_team3 | ) |
spawnfunc | ( | info_player_team4 | ) |
Definition at line 77 of file spawnpoints.qc.
Referenced by relocate_spawnpoint().
Definition at line 22 of file spawnpoints.qc.
References origin, team, and WriteByte().
Referenced by link_spawnpoint().
Definition at line 55 of file spawnpoints.qc.
References nextthink, origin, spawnpoint_prevorigin, and time.
Referenced by relocate_spawnpoint().
Definition at line 65 of file spawnpoints.qc.
References have_team_spawns, some_spawn_has_been_used, team, and teamplay.
Referenced by relocate_spawnpoint().
vector spawnpoint_prevorigin |
Definition at line 54 of file spawnpoints.qc.
Referenced by spawnpoint_think().
bool testspawn_checked |
Definition at line 327 of file spawnpoints.qc.
Referenced by SelectSpawnPoint().
entity testspawn_point |
Definition at line 328 of file spawnpoints.qc.
Referenced by SelectSpawnPoint().