Xonotic
sv_freezetag.qh File Reference
+ Include dependency graph for sv_freezetag.qh:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void freezetag_Initialize ()
 
 REGISTER_MUTATOR (ft, false)
 

Variables

int autocvar_g_freezetag_point_leadlimit
 
int autocvar_g_freezetag_point_limit
 
bool autocvar_g_freezetag_revive_auto = 1
 
int autocvar_g_freezetag_revive_auto_progress = 1
 
int autocvar_g_freezetag_revive_auto_reducible
 
float autocvar_g_freezetag_revive_auto_reducible_forcefactor = 0.01
 
float autocvar_g_freezetag_revive_auto_reducible_maxforce
 
float autocvar_g_freezetag_revive_extra_size
 
bool autocvar_g_freezetag_revive_nade
 
float autocvar_g_freezetag_revive_nade_health
 
float autocvar_g_freezetag_revive_spawnshield = 1
 
float autocvar_g_freezetag_revive_speed
 
float autocvar_g_freezetag_revive_speed_t2s = 0.25
 
float autocvar_g_freezetag_revive_time_to_score = 1.5
 
bool autocvar_g_freezetag_team_spawns
 
string autocvar_g_freezetag_weaponarena = "most_available"
 
float freezetag_frozen_force
 
float freezetag_frozen_time
 
float freezetag_frozen_timeout
 
float freezetag_revive_time
 
float freezetag_teams
 
const float ICE_MAX_ALPHA = 1
 
const float ICE_MIN_ALPHA = 0.1
 
const int ST_FT_ROUNDS = 1
 

Function Documentation

◆ freezetag_Initialize()

void freezetag_Initialize ( )

Definition at line 752 of file sv_freezetag.qc.

References autocvar_g_freezetag_round_timelimit, autocvar_g_freezetag_teams_override, autocvar_g_freezetag_warmup, BITS, bound(), cvar(), EliminatedPlayers_Init(), freezetag_CheckTeams(), freezetag_CheckWinner(), freezetag_isEliminated(), freezetag_teams, func_null(), GameRules_scoring, round_handler_Init(), round_handler_Spawn(), SFL_SORT_PRIO_PRIMARY, and ST_FT_ROUNDS.

Referenced by REGISTER_MUTATOR().

753 {
755  if(freezetag_teams < 2)
756  freezetag_teams = cvar("g_freezetag_teams"); // read the cvar directly as it gets written earlier in the same frame
757 
760  field_team(ST_FT_ROUNDS, "rounds", SFL_SORT_PRIO_PRIMARY);
761  field(SP_FREEZETAG_REVIVALS, "revivals", 0);
762  });
763 
766 
768 }
#define GameRules_scoring(teams, spprio, stprio, fields)
Definition: sv_rules.qh:53
bool freezetag_CheckTeams()
Definition: sv_freezetag.qc:52
void round_handler_Spawn(bool() canRoundStart_func, bool() canRoundEnd_func, void() roundStart_func)
bool freezetag_isEliminated(entity e)
void EliminatedPlayers_Init(float(entity) isEliminated_func)
Definition: elimination.qc:27
const int SFL_SORT_PRIO_PRIMARY
Definition: scores.qh:127
float autocvar_g_freezetag_warmup
Definition: sv_freezetag.qc:11
int autocvar_g_freezetag_teams_override
Definition: sv_freezetag.qc:10
float autocvar_g_freezetag_round_timelimit
Definition: sv_freezetag.qc:8
const int ST_FT_ROUNDS
Definition: sv_freezetag.qh:11
void round_handler_Init(float the_delay, float the_count, float the_round_timelimit)
bool freezetag_CheckWinner()
Definition: sv_freezetag.qc:89
#define BITS(n)
Definition: bits.qh:9
var void func_null()
float freezetag_teams
Definition: sv_freezetag.qh:36
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ REGISTER_MUTATOR()

REGISTER_MUTATOR ( ft  ,
false   
)

Definition at line 15 of file sv_freezetag.qh.

References autocvar_g_freezetag_point_leadlimit, autocvar_g_freezetag_point_limit, autocvar_g_freezetag_team_spawns, freezetag_Initialize(), GameRules_limit_lead(), GameRules_limit_score(), GameRules_spawning_teams(), GameRules_teams(), MUTATOR_ONADD, and MUTATOR_STATIC.

16 {
19  {
20  GameRules_teams(true);
24 
26  }
27  return 0;
28 }
#define MUTATOR_STATIC()
Definition: base.qh:288
void GameRules_spawning_teams(bool value)
Used to disable team spawns in team modes.
Definition: sv_rules.qc:22
void GameRules_limit_score(int limit)
Definition: sv_rules.qc:34
void GameRules_teams(bool value)
Definition: sv_rules.qc:6
int autocvar_g_freezetag_point_limit
Definition: sv_freezetag.qh:6
void freezetag_Initialize()
void GameRules_limit_lead(int limit)
Definition: sv_rules.qc:44
bool autocvar_g_freezetag_team_spawns
Definition: sv_freezetag.qh:8
#define MUTATOR_ONADD
Definition: base.qh:284
int autocvar_g_freezetag_point_leadlimit
Definition: sv_freezetag.qh:7
+ Here is the call graph for this function:

Variable Documentation

◆ autocvar_g_freezetag_point_leadlimit

int autocvar_g_freezetag_point_leadlimit

Definition at line 7 of file sv_freezetag.qh.

Referenced by REGISTER_MUTATOR().

◆ autocvar_g_freezetag_point_limit

int autocvar_g_freezetag_point_limit

Definition at line 6 of file sv_freezetag.qh.

Referenced by REGISTER_MUTATOR().

◆ autocvar_g_freezetag_revive_auto

bool autocvar_g_freezetag_revive_auto = 1

Definition at line 38 of file sv_freezetag.qh.

Referenced by freezetag_Freeze(), and MUTATOR_HOOKFUNCTION().

◆ autocvar_g_freezetag_revive_auto_progress

int autocvar_g_freezetag_revive_auto_progress = 1

Definition at line 39 of file sv_freezetag.qh.

Referenced by MUTATOR_HOOKFUNCTION().

◆ autocvar_g_freezetag_revive_auto_reducible

int autocvar_g_freezetag_revive_auto_reducible

Definition at line 40 of file sv_freezetag.qh.

Referenced by MUTATOR_HOOKFUNCTION().

◆ autocvar_g_freezetag_revive_auto_reducible_forcefactor

float autocvar_g_freezetag_revive_auto_reducible_forcefactor = 0.01

Definition at line 41 of file sv_freezetag.qh.

Referenced by MUTATOR_HOOKFUNCTION().

◆ autocvar_g_freezetag_revive_auto_reducible_maxforce

float autocvar_g_freezetag_revive_auto_reducible_maxforce

Definition at line 42 of file sv_freezetag.qh.

Referenced by MUTATOR_HOOKFUNCTION().

◆ autocvar_g_freezetag_revive_extra_size

float autocvar_g_freezetag_revive_extra_size

Definition at line 43 of file sv_freezetag.qh.

Referenced by MUTATOR_HOOKFUNCTION().

◆ autocvar_g_freezetag_revive_nade

bool autocvar_g_freezetag_revive_nade

Definition at line 47 of file sv_freezetag.qh.

◆ autocvar_g_freezetag_revive_nade_health

float autocvar_g_freezetag_revive_nade_health

Definition at line 48 of file sv_freezetag.qh.

◆ autocvar_g_freezetag_revive_spawnshield

float autocvar_g_freezetag_revive_spawnshield = 1

Definition at line 49 of file sv_freezetag.qh.

Referenced by MUTATOR_HOOKFUNCTION().

◆ autocvar_g_freezetag_revive_speed

float autocvar_g_freezetag_revive_speed

Definition at line 44 of file sv_freezetag.qh.

Referenced by MUTATOR_HOOKFUNCTION().

◆ autocvar_g_freezetag_revive_speed_t2s

float autocvar_g_freezetag_revive_speed_t2s = 0.25

Definition at line 45 of file sv_freezetag.qh.

Referenced by MUTATOR_HOOKFUNCTION().

◆ autocvar_g_freezetag_revive_time_to_score

float autocvar_g_freezetag_revive_time_to_score = 1.5

Definition at line 46 of file sv_freezetag.qh.

Referenced by MUTATOR_HOOKFUNCTION().

◆ autocvar_g_freezetag_team_spawns

bool autocvar_g_freezetag_team_spawns

Definition at line 8 of file sv_freezetag.qh.

Referenced by REGISTER_MUTATOR().

◆ autocvar_g_freezetag_weaponarena

string autocvar_g_freezetag_weaponarena = "most_available"

Definition at line 9 of file sv_freezetag.qh.

Referenced by MUTATOR_HOOKFUNCTION().

◆ freezetag_frozen_force

float freezetag_frozen_force

Definition at line 33 of file sv_freezetag.qh.

◆ freezetag_frozen_time

float freezetag_frozen_time

Definition at line 31 of file sv_freezetag.qh.

◆ freezetag_frozen_timeout

float freezetag_frozen_timeout

Definition at line 32 of file sv_freezetag.qh.

◆ freezetag_revive_time

float freezetag_revive_time

Definition at line 30 of file sv_freezetag.qh.

◆ freezetag_teams

float freezetag_teams

◆ ICE_MAX_ALPHA

const float ICE_MAX_ALPHA = 1

Definition at line 34 of file sv_freezetag.qh.

◆ ICE_MIN_ALPHA

const float ICE_MIN_ALPHA = 0.1

Definition at line 35 of file sv_freezetag.qh.

◆ ST_FT_ROUNDS

const int ST_FT_ROUNDS = 1

Definition at line 11 of file sv_freezetag.qh.

Referenced by freezetag_CheckWinner(), and freezetag_Initialize().