|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
#include "sv_rules.qh"Go to the source code of this file.
Functions | |
| float | _GameRules_scoring_add_float2int (entity client, entity sp, int st, float value,.float decimal_field, float score_factor, bool team) |
| Accumulates the decimal part of the score to player. | |
| void | GameRules_limit_fallbacks () |
| Set any unspecified rules to their defaults. | |
| void | GameRules_limit_lead (int limit) |
| void | GameRules_limit_score (int limit) |
| void | GameRules_limit_time (int limit) |
| void | GameRules_limit_time_qualifying (int limit) |
| void | GameRules_teams (bool value) |
Variables | |
| bool | GameRules_limit_lead_initialized |
| bool | GameRules_limit_score_initialized |
| bool | GameRules_limit_time_initialized |
| bool | GameRules_limit_time_qualifying_initialized |
| float _GameRules_scoring_add_float2int | ( | entity | client, |
| entity | sp, | ||
| int | st, | ||
| float | value, | ||
| .float | decimal_field, | ||
| float | score_factor, | ||
| bool | team ) |
Accumulates the decimal part of the score to player.
(decimal_field) and adds the score to the player as int only when at least one unit of score has been accumulated. It works with negative score too Float scores can't be used as score because they aren't supported by the QC score networking system and online server browsers (e.g. qstat)
Definition at line 73 of file sv_rules.qc.
References entity(), floor(), PlayerScore_Add(), PlayerTeamScore_Add(), and team.
| void GameRules_limit_fallbacks | ( | ) |
Set any unspecified rules to their defaults.
Definition at line 62 of file sv_rules.qc.
References autocvar_fraglimit_override, autocvar_leadlimit_override, autocvar_timelimit_override, GameRules_limit_lead(), GameRules_limit_score(), and GameRules_limit_time().
Referenced by spawnfunc().
Definition at line 33 of file sv_rules.qc.
References autocvar_g_campaign, cvar_set(), ftos(), and GameRules_limit_lead_initialized.
Referenced by GameRules_limit_fallbacks(), mayhem_Initialize(), nb_Initialize(), rc_SetLimits(), REGISTER_MUTATOR(), REGISTER_MUTATOR(), REGISTER_MUTATOR(), REGISTER_MUTATOR(), REGISTER_MUTATOR(), REGISTER_MUTATOR(), REGISTER_MUTATOR(), REGISTER_MUTATOR(), tdm_Initialize(), and tmayhem_Initialize().
Definition at line 23 of file sv_rules.qc.
References autocvar_g_campaign, cvar_set(), ftos(), and GameRules_limit_score_initialized.
Referenced by GameRules_limit_fallbacks(), mayhem_Initialize(), nb_Initialize(), rc_SetLimits(), REGISTER_MUTATOR(), REGISTER_MUTATOR(), REGISTER_MUTATOR(), REGISTER_MUTATOR(), REGISTER_MUTATOR(), REGISTER_MUTATOR(), REGISTER_MUTATOR(), REGISTER_MUTATOR(), REGISTER_MUTATOR(), REGISTER_MUTATOR(), tdm_Initialize(), and tmayhem_Initialize().
Definition at line 43 of file sv_rules.qc.
References autocvar_g_campaign, cvar_set(), ftos(), and GameRules_limit_time_initialized.
Referenced by GameRules_limit_fallbacks(), and rc_SetLimits().
Definition at line 53 of file sv_rules.qc.
References autocvar_g_campaign, cvar_set(), ftos(), and GameRules_limit_time_qualifying_initialized.
Referenced by rc_SetLimits().
Definition at line 3 of file sv_rules.qc.
References cvar_set(), GameRules_spawning_teams, SERVERFLAG_TEAMPLAY, serverflags, Team_InitTeams(), and teamplay.
Referenced by InitGameplayMode(), nb_Initialize(), rc_SetLimits(), REGISTER_MUTATOR(), REGISTER_MUTATOR(), REGISTER_MUTATOR(), REGISTER_MUTATOR(), REGISTER_MUTATOR(), REGISTER_MUTATOR(), REGISTER_MUTATOR(), REGISTER_MUTATOR(), tdm_Initialize(), and tmayhem_Initialize().
| bool GameRules_limit_lead_initialized |
Definition at line 32 of file sv_rules.qc.
Referenced by GameRules_limit_lead().
| bool GameRules_limit_score_initialized |
Definition at line 22 of file sv_rules.qc.
Referenced by GameRules_limit_score().
| bool GameRules_limit_time_initialized |
Definition at line 42 of file sv_rules.qc.
Referenced by GameRules_limit_time().
| bool GameRules_limit_time_qualifying_initialized |
Definition at line 52 of file sv_rules.qc.
Referenced by GameRules_limit_time_qualifying().