|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
#include "spawnpoints.qh"#include <common/constants.qh>#include <common/gametypes/_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.
Variables | |
| vector | spawnpoint_prevorigin |
| bool | testspawn_checked |
| entity | testspawn_point |
Definition at line 106 of file spawnpoints.qc.
References autocvar_g_spawn_useallspawns, entity(), have_team_spawns, Net_LinkEntity(), SpawnPoint_Send(), team, Team_IsValidTeam(), and teamplay.
Referenced by relocate_spawnpoint().
Definition at line 117 of file spawnpoints.qc.
References active, ACTIVE_ACTIVE, 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(), INITPRIO_FINDTARGET, link_spawnpoint(), LOG_INFO, LOG_INFOF, MAKE_VECTORS, maxs, mins, move_out_of_solid, nextthink, objerror, origin, PL_MAX_CONST, PL_MIN_CONST, random(), setcefc, setthink, SOLID_TRIGGER, spawnpoint_customize(), spawnpoint_nag, spawnpoint_reset(), spawnpoint_setactive(), spawnpoint_think(), spawnpoint_use(), team, team_saved, time, trace_startsolid, use, vector, and vtos().
Referenced by spawnfunc().
Definition at line 359 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(), spawnpoint_targ, team, testspawn_checked, and testspawn_point.
Referenced by buff_Respawn(), ka_RespawnBall(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), PutObserverInServer(), PutPlayerInServer(), and tka_RespawnBall().
| entity Spawn_FilterOutBadSpots | ( | entity | this, |
| entity | firstspot, | ||
| float | mindist, | ||
| float | teamcheck, | ||
| bool | targetcheck ) |
Definition at line 311 of file spawnpoints.qc.
References entity(), NULL, and Spawn_ScoreAll().
Referenced by SelectSpawnPoint(), and trigger_race_checkpoint_verify().
Definition at line 240 of file spawnpoints.qc.
References ACTIVE_ACTIVE, entity(), FOREACH_CLIENT, g_cts, IS_DEAD, IS_PLAYER, IS_REAL_CLIENT, LOG_TRACE, M_ARGV, MUTATOR_CALLHOOK, race_spawns, SPAWN_PRIO_GOOD_DISTANCE, Spawn_Score(), targetname, vector, vlen(), vtos(), and world.
Referenced by MUTATOR_HOOKABLE(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), Spawn_Score(), and Spawn_ScoreAll().
| void Spawn_ScoreAll | ( | entity | this, |
| entity | firstspot, | ||
| float | mindist, | ||
| float | teamcheck, | ||
| bool | targetcheck ) |
Definition at line 304 of file spawnpoints.qc.
References entity(), and Spawn_Score().
Referenced by Spawn_FilterOutBadSpots().
Definition at line 337 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, entity(), etof, IS_SPEC, MSG_ENTITY, owner, WriteByte(), and WriteHeader.
Referenced by PutPlayerInServer().
| spawnfunc | ( | info_player_deathmatch | ) |
Definition at line 193 of file spawnpoints.qc.
References g_spawnpoints, IL_PUSH(), and relocate_spawnpoint().
| spawnfunc | ( | info_player_start | ) |
Definition at line 188 of file spawnpoints.qc.
| spawnfunc | ( | info_player_survivor | ) |
Definition at line 183 of file spawnpoints.qc.
| spawnfunc | ( | info_player_team1 | ) |
Definition at line 202 of file spawnpoints.qc.
References NUM_TEAM_1, and team.
| spawnfunc | ( | info_player_team2 | ) |
Definition at line 212 of file spawnpoints.qc.
References NUM_TEAM_2, and team.
| spawnfunc | ( | info_player_team3 | ) |
Definition at line 221 of file spawnpoints.qc.
References NUM_TEAM_3, and team.
| spawnfunc | ( | info_player_team4 | ) |
Definition at line 231 of file spawnpoints.qc.
References NUM_TEAM_4, and team.
Definition at line 79 of file spawnpoints.qc.
References active, ACTIVE_ACTIVE, and entity().
Referenced by relocate_spawnpoint().
Definition at line 100 of file spawnpoints.qc.
References active, ACTIVE_ACTIVE, entity(), and SendFlags.
Referenced by relocate_spawnpoint().
Definition at line 22 of file spawnpoints.qc.
References entity(), MSG_ENTITY, origin, team, WriteByte(), and WriteHeader.
Referenced by link_spawnpoint().
Definition at line 84 of file spawnpoints.qc.
References active, ACTIVE_ACTIVE, ACTIVE_NOT, ACTIVE_TOGGLE, entity(), have_team_spawns, SendFlags, some_spawn_has_been_used, and teamplay.
Referenced by relocate_spawnpoint().
Definition at line 57 of file spawnpoints.qc.
References entity(), nextthink, origin, SendFlags, spawnpoint_prevorigin, and time.
Referenced by relocate_spawnpoint().
Definition at line 67 of file spawnpoints.qc.
References entity(), have_team_spawns, SendFlags, some_spawn_has_been_used, team, and teamplay.
Referenced by relocate_spawnpoint().
| vector spawnpoint_prevorigin |
Definition at line 56 of file spawnpoints.qc.
Referenced by spawnpoint_think().
| bool testspawn_checked |
Definition at line 357 of file spawnpoints.qc.
Referenced by SelectSpawnPoint().
| entity testspawn_point |
Definition at line 358 of file spawnpoints.qc.
Referenced by SelectSpawnPoint().