Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
sv_tdm.qc
Go to the documentation of this file.
1#include "sv_tdm.qh"
2
5
6/*QUAKED spawnfunc_tdm_team (0 .5 .8) (-16 -16 -24) (16 16 32)
7Team declaration for TDM gameplay, this allows you to decide what team names and control point models are used in your map.
8Note: If you use spawnfunc_tdm_team entities you must define at least 2! However, unlike domination, you don't need to make a blank one too.
9Keys:
10"netname" Name of the team (for example Red, Blue, Green, Yellow, Life, Death, Offense, Defense, etc)...
11"cnt" Scoreboard color of the team (for example 4 is red and 13 is blue)... */
12spawnfunc(tdm_team)
13{
14 if(!g_tdm || !this.cnt) { delete(this); return; }
15
16 this.team = this.cnt + 1;
17}
18
24
34
35MUTATOR_HOOKFUNCTION(tdm, Scores_CountFragsRemaining)
36{
37 // announce remaining frags
38 return true;
39}
#define MUTATOR_HOOKFUNCTION(...)
Definition base.qh:335
#define BITS(n)
Definition bits.qh:9
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
float cnt
Definition powerups.qc:24
int team
Definition main.qh:188
const int INITPRIO_GAMETYPE
Definition constants.qh:94
float bound(float min, float value, float max)
#define NULL
Definition post.qh:14
#define spawnfunc(id)
Definition spawnfunc.qh:107
void GameRules_limit_score(int limit)
Definition sv_rules.qc:22
void GameRules_teams(bool value)
Definition sv_rules.qc:3
void GameRules_limit_lead(int limit)
Definition sv_rules.qc:32
#define GameRules_spawning_teams(value)
Used to disable team spawns in team modes.
Definition sv_rules.qh:35
int autocvar_g_tdm_teams
Definition sv_tdm.qc:3
void tdm_DelayedInit(entity this)
Definition sv_tdm.qc:19
void tdm_Initialize()
Definition sv_tdm.qc:25
int autocvar_g_tdm_teams_override
Definition sv_tdm.qc:4
int autocvar_g_tdm_point_limit
Definition sv_tdm.qh:4
int autocvar_g_tdm_point_leadlimit
Definition sv_tdm.qh:5
bool autocvar_g_tdm_team_spawns
Definition sv_tdm.qh:6
#define g_tdm
Definition tdm.qh:54
int Team_MapEnts_FindOrSpawn(string ent_classname, int defaultmask)
Finds any team map entities and returns their bitmask, else spawns them.
Definition teamplay.qc:56
int teamplay_bitmask
The set of currently available teams (AVAILABLE_TEAMS is the number of them).
Definition teamplay.qh:18
void InitializeEntity(entity e, void(entity this) func, int order)
Definition world.qc:2229