Xonotic
|
Go to the source code of this file.
Macros | |
#define | GameRules_scoring(teams, spprio, stprio, fields) |
#define | GameRules_scoring_add(client, fld, value) _GameRules_scoring_add(client, SP_##fld, value) |
#define | GameRules_scoring_add_float2int(client, fld, value, float_field, score_factor) _GameRules_scoring_add_float2int(client, SP_##fld, value, float_field, score_factor) |
#define | GameRules_scoring_add_team(client, fld, value) _GameRules_scoring_add_team(client, SP_##fld, ST_##fld, value) |
#define | INGAME(it) ((it).ingame) |
#define | INGAME_JOINED(it) ((it).ingame == INGAME_STATUS_JOINED) |
#define | INGAME_JOINING(it) ((it).ingame == INGAME_STATUS_JOINING) |
#define | INGAME_STATUS_CLEAR(it) INGAME_STATUS_SET(it, INGAME_STATUS_NONE) |
#define | INGAME_STATUS_JOINED 1 |
#define | INGAME_STATUS_JOINING 0.5 |
#define | INGAME_STATUS_NONE 0 |
#define | INGAME_STATUS_SET(it, s) (it).ingame = s |
Variables | |
int | autocvar_leadlimit_and_fraglimit |
int | autocvar_leadlimit_override |
int | ingame |
int | total_players |
#define GameRules_scoring | ( | teams, | |
spprio, | |||
stprio, | |||
fields | |||
) |
teams | a bitmask of active teams |
spprio | player score priority (if frags aren't enabled) |
stprio | team score priority (if frags aren't enabled) |
Definition at line 53 of file sv_rules.qh.
Referenced by ctf_ScoreRules(), cts_ScoreRules(), freezetag_Initialize(), invasion_ScoreRules(), kh_ScoreRules(), nb_ScoreRules(), ons_ScoreRules(), race_ScoreRules(), REGISTER_MUTATOR(), ScoreRules_dom(), and ScoreRules_generic().
#define GameRules_scoring_add | ( | client, | |
fld, | |||
value | |||
) | _GameRules_scoring_add(client, SP_##fld, value) |
Definition at line 78 of file sv_rules.qh.
Referenced by CheckRules_World(), ctf_CaptureShield_CheckStatus(), ctf_Handle_Capture(), ctf_Handle_Drop(), ctf_Handle_Pickup(), ctf_Handle_Return(), dompoint_captured(), dompointthink(), freezetag_Add_Score(), GiveFrags(), GoalTouch(), Invasion_CheckWinner(), ka_TimeScoring(), ka_TouchEvent(), kh_HandleFrags(), kh_Key_Collect(), kh_Key_DropAll(), kh_Key_DropOne(), kh_LoserTeam(), lms_AddPlayer(), lms_RemovePlayer(), Monster_Dead(), MUTATOR_HOOKFUNCTION(), Obituary(), ons_ControlPoint_Icon_BuildThink(), ons_ControlPoint_Icon_Damage(), ons_GeneratorDamage(), PlayerDamage(), race_GetFractionalLapCount(), race_SendTime(), and WinningCondition_LMS().
#define GameRules_scoring_add_float2int | ( | client, | |
fld, | |||
value, | |||
float_field, | |||
score_factor | |||
) | _GameRules_scoring_add_float2int(client, SP_##fld, value, float_field, score_factor) |
Definition at line 75 of file sv_rules.qh.
Referenced by ka_TimeScoring(), and MUTATOR_HOOKFUNCTION().
#define GameRules_scoring_add_team | ( | client, | |
fld, | |||
value | |||
) | _GameRules_scoring_add_team(client, SP_##fld, ST_##fld, value) |
Definition at line 80 of file sv_rules.qh.
Referenced by assault_objective_decrease_use(), ctf_Handle_Capture(), ctf_Handle_Drop(), ctf_Handle_Pickup(), ctf_Handle_Return(), kh_WinnerTeam(), MUTATOR_HOOKFUNCTION(), ons_ControlPoint_Icon_BuildThink(), race_SendTime(), and UpdateFrags().
#define INGAME | ( | it | ) | ((it).ingame) |
Definition at line 20 of file sv_rules.qh.
Referenced by AddWinners(), ClearWinners(), GameCommand_nospectators(), lms_AddPlayer(), lms_RemovePlayer(), MUTATOR_HOOKFUNCTION(), NextLevel(), nJoinAllowed(), PlayerPreThink(), Say(), SetWinners(), shuffleteams(), and TeamBalance_GetTeamCounts().
#define INGAME_JOINED | ( | it | ) | ((it).ingame == INGAME_STATUS_JOINED) |
Definition at line 21 of file sv_rules.qh.
Referenced by ca_isEliminated(), ClientCommand_ready(), DumpStats(), MUTATOR_HOOKFUNCTION(), ReadyCount(), and WinningConditionHelper().
#define INGAME_JOINING | ( | it | ) | ((it).ingame == INGAME_STATUS_JOINING) |
Definition at line 22 of file sv_rules.qh.
Referenced by ca_isEliminated(), and MUTATOR_HOOKFUNCTION().
#define INGAME_STATUS_CLEAR | ( | it | ) | INGAME_STATUS_SET(it, INGAME_STATUS_NONE) |
Definition at line 18 of file sv_rules.qh.
Referenced by MUTATOR_HOOKFUNCTION().
#define INGAME_STATUS_JOINED 1 |
Definition at line 13 of file sv_rules.qh.
Referenced by lms_AddPlayer(), and MUTATOR_HOOKFUNCTION().
#define INGAME_STATUS_JOINING 0.5 |
Definition at line 12 of file sv_rules.qh.
Referenced by lms_AddPlayer(), and MUTATOR_HOOKFUNCTION().
#define INGAME_STATUS_NONE 0 |
Definition at line 11 of file sv_rules.qh.
#define INGAME_STATUS_SET | ( | it, | |
s | |||
) | (it).ingame = s |
Definition at line 17 of file sv_rules.qh.
Referenced by lms_AddPlayer(), and MUTATOR_HOOKFUNCTION().
Definition at line 126 of file sv_rules.qc.
References PlayerScore_Add().
float _GameRules_scoring_add_float2int | ( | entity | client, |
entity | sp, | ||
float | value, | ||
.float | field, | ||
float | score_factor | ||
) |
Definition at line 111 of file sv_rules.qc.
References floor(), and PlayerScore_Add().
Definition at line 130 of file sv_rules.qc.
References PlayerTeamScore_Add().
Definition at line 80 of file sv_rules.qc.
References _GameRules_score_enabled, and ScoreRules_basics().
void _GameRules_scoring_end | ( | ) |
Definition at line 92 of file sv_rules.qc.
References ScoreRules_basics_end().
Definition at line 84 of file sv_rules.qc.
References ScoreInfo_SetLabel_PlayerScore().
Definition at line 88 of file sv_rules.qc.
References ScoreInfo_SetLabel_TeamScore().
void GameRules_limit_fallbacks | ( | ) |
Set any unspecified rules to their defaults.
Definition at line 73 of file sv_rules.qc.
References autocvar_leadlimit_override, GameRules_limit_lead(), GameRules_limit_score(), and GameRules_limit_time().
Referenced by spawnfunc().
Definition at line 44 of file sv_rules.qc.
References autocvar_g_campaign, cvar_set(), ftos(), and GameRules_limit_lead_initialized.
Referenced by GameRules_limit_fallbacks(), nb_Initialize(), rc_SetLimits(), REGISTER_MUTATOR(), and tdm_Initialize().
Definition at line 34 of file sv_rules.qc.
References autocvar_g_campaign, cvar_set(), ftos(), and GameRules_limit_score_initialized.
Referenced by GameRules_limit_fallbacks(), nb_Initialize(), rc_SetLimits(), REGISTER_MUTATOR(), and tdm_Initialize().
Definition at line 54 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 64 of file sv_rules.qc.
References autocvar_g_campaign, cvar_set(), ftos(), and GameRules_limit_time_qualifying_initialized.
Referenced by rc_SetLimits().
Disabling score disables the "score" column on the scoreboard.
Definition at line 28 of file sv_rules.qc.
References _GameRules_score_enabled.
Referenced by cts_ScoreRules(), invasion_ScoreRules(), race_ScoreRules(), and REGISTER_MUTATOR().
Definition at line 102 of file sv_rules.qc.
Mark a player as being 'important' (flag carrier, ball carrier, etc)
player | the entity to mark |
value | VIP status |
Definition at line 98 of file sv_rules.qc.
Referenced by ctf_Handle_Pickup(), ctf_Handle_Retrieve(), ctf_Handle_Throw(), ctf_RespawnFlag(), DropBall(), GiveBall(), ka_PlayerReset(), and ka_TouchEvent().
Used to disable team spawns in team modes.
Definition at line 22 of file sv_rules.qc.
References have_team_spawns.
Referenced by GameRules_teams(), REGISTER_MUTATOR(), and tdm_Initialize().
Definition at line 6 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(), and tdm_Initialize().
int autocvar_leadlimit_and_fraglimit |
Definition at line 4 of file sv_rules.qh.
Referenced by WinningCondition_Scores().
int autocvar_leadlimit_override |
Definition at line 5 of file sv_rules.qh.
Referenced by GameRules_limit_fallbacks().
int ingame |
Definition at line 10 of file sv_rules.qh.
int total_players |
Definition at line 8 of file sv_rules.qh.
Referenced by CA_CheckTeams(), CA_count_alive_players(), freezetag_CheckTeams(), and freezetag_count_alive_players().