|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
Go to the source code of this file.
Functions | |
| float | _GameRules_scoring_add_float2int (entity client, entity sp, int st, float value,.float float_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_score_enabled = true |
| Disabling score disables the "score" column on the scoreboard. | |
| int | autocvar_leadlimit_and_fraglimit |
| int | autocvar_leadlimit_override |
| int | ingame |
| bool | m_GameRules_scoring_vip |
| Mark a player as being 'important' (flag carrier, ball carrier, etc) | |
| int | total_players |
| #define _GameRules_scoring_begin | ( | teams, | |
| spprio, | |||
| stprio ) |
Definition at line 67 of file sv_rules.qh.
| #define _GameRules_scoring_end ScoreRules_basics_end |
Definition at line 70 of file sv_rules.qh.
| #define _GameRules_scoring_field ScoreInfo_SetLabel_PlayerScore |
Definition at line 68 of file sv_rules.qh.
| #define _GameRules_scoring_field_team ScoreInfo_SetLabel_TeamScore |
Definition at line 69 of file sv_rules.qh.
| #define GameRules_score_enabled | ( | value | ) |
Definition at line 41 of file sv_rules.qh.
Referenced by cts_ScoreRules(), invasion_ScoreRules(), race_ScoreRules(), and REGISTER_MUTATOR().
| #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 58 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(), REGISTER_MUTATOR(), REGISTER_MUTATOR(), REGISTER_MUTATOR(), ScoreRules_dom(), ScoreRules_generic(), and surv_Initialize().
| #define GameRules_scoring_add | ( | client, | |
| fld, | |||
| value ) |
Definition at line 85 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_BallThink_Carried(), ka_TouchEvent(), kh_HandleFrags(), kh_Key_Collect(), kh_Key_DropAll(), kh_Key_DropOne(), kh_LoserTeam(), lms_AddPlayer(), lms_RemovePlayer(), Monster_Dead(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), Obituary(), ons_ControlPoint_Icon_BuildThink(), ons_ControlPoint_Icon_Damage(), ons_GeneratorDamage(), PlayerFrame(), PlayerStats_GameReport(), PlayerStats_PlayerBasic(), PlayerStats_PlayerBasic_Handler(), race_GetFractionalLapCount(), race_SendTime(), round_handler_Think(), Surv_UpdateScores(), tka_BallThink_Carried(), tka_TouchEvent(), and WinningCondition_LMS().
| #define GameRules_scoring_add_float2int | ( | client, | |
| fld, | |||
| value, | |||
| float_field, | |||
| score_factor ) |
Definition at line 83 of file sv_rules.qh.
Referenced by ka_BallThink_Carried(), and MUTATOR_HOOKFUNCTION().
| #define GameRules_scoring_add_team | ( | client, | |
| fld, | |||
| value ) |
Definition at line 89 of file sv_rules.qh.
Referenced by assault_objective_decrease_use(), ctf_Handle_Capture(), ctf_Handle_Drop(), ctf_Handle_Pickup(), ctf_Handle_Return(), GiveFrags(), kh_WinnerTeam(), MayhemCalculatePlayerScore(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), ons_ControlPoint_Icon_BuildThink(), and race_SendTime().
| #define GameRules_scoring_add_team_float2int | ( | client, | |
| fld, | |||
| value, | |||
| float_field, | |||
| score_factor ) |
Definition at line 87 of file sv_rules.qh.
Referenced by kh_Scores_Event(), and tka_BallThink_Carried().
| #define GameRules_scoring_is_vip | ( | player | ) |
Definition at line 79 of file sv_rules.qh.
Referenced by MUTATOR_HOOKFUNCTION(), and MUTATOR_HOOKFUNCTION().
| #define GameRules_scoring_vip | ( | player, | |
| value ) |
Definition at line 78 of file sv_rules.qh.
Referenced by ctf_Handle_Pickup(), ctf_Handle_Retrieve(), ctf_Handle_Throw(), ctf_RespawnFlag(), DropBall(), GiveBall(), ka_PlayerReset(), ka_TouchEvent(), tka_PlayerReset(), and tka_TouchEvent().
| #define GameRules_spawning_teams | ( | value | ) |
Used to disable team spawns in team modes.
Definition at line 35 of file sv_rules.qh.
Referenced by GameRules_teams(), REGISTER_MUTATOR(), REGISTER_MUTATOR(), REGISTER_MUTATOR(), REGISTER_MUTATOR(), tdm_Initialize(), and tmayhem_Initialize().
| #define INGAME | ( | it | ) |
Definition at line 24 of file sv_rules.qh.
Referenced by _entcs_send(), AddWinners(), ClearWinners(), ClientData_Send(), GameCommand_moveplayer(), joinAllowed(), lms_AddPlayer(), lms_RemovePlayer(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), NextLevel(), nJoinAllowed(), ObserverOrSpectatorThink(), PlayerFrame(), round_handler_Think(), Say(), SetWinners(), shuffleteams(), SurvivalStatuses_SendEntity(), TeamBalance_GetTeamCounts(), TeamBalance_RemoveExcessPlayers(), and VoteCount().
| #define INGAME_JOINED | ( | it | ) |
Definition at line 25 of file sv_rules.qh.
Referenced by ca_isEliminated(), ClientCommand_ready(), DumpStats(), MatchEnd_RestoreSpectatorAndTeamStatus(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), ReadyCount(), surv_isEliminated(), and WinningConditionHelper().
| #define INGAME_JOINING | ( | it | ) |
Definition at line 26 of file sv_rules.qh.
Referenced by ca_isEliminated(), MatchEnd_RestoreSpectatorAndTeamStatus(), MUTATOR_HOOKFUNCTION(), and surv_isEliminated().
| #define INGAME_STATUS_CLEAR | ( | it | ) |
Definition at line 22 of file sv_rules.qh.
Referenced by lms_RemovePlayer(), MatchEnd_RestoreSpectatorAndTeamStatus(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), and MUTATOR_HOOKFUNCTION().
| #define INGAME_STATUS_JOINED 1 |
Definition at line 17 of file sv_rules.qh.
Referenced by lms_AddPlayer(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), and MUTATOR_HOOKFUNCTION().
| #define INGAME_STATUS_JOINING 0.5 |
Definition at line 16 of file sv_rules.qh.
Referenced by lms_AddPlayer(), MUTATOR_HOOKFUNCTION(), and MUTATOR_HOOKFUNCTION().
| #define INGAME_STATUS_NONE 0 |
Definition at line 15 of file sv_rules.qh.
| #define INGAME_STATUS_SET | ( | it, | |
| s ) |
Definition at line 21 of file sv_rules.qh.
Referenced by lms_AddPlayer(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), and MUTATOR_HOOKFUNCTION().
| 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().
Disabling score disables the "score" column on the scoreboard.
Definition at line 40 of file sv_rules.qh.
| int autocvar_leadlimit_and_fraglimit |
Definition at line 8 of file sv_rules.qh.
Referenced by WinningCondition_Scores().
| int autocvar_leadlimit_override |
Definition at line 9 of file sv_rules.qh.
Referenced by GameRules_limit_fallbacks().
| int ingame |
Definition at line 14 of file sv_rules.qh.
| bool m_GameRules_scoring_vip |
Mark a player as being 'important' (flag carrier, ball carrier, etc)
| player | the entity to mark |
| value | VIP status |
Definition at line 77 of file sv_rules.qh.
| int total_players |
Definition at line 12 of file sv_rules.qh.
Referenced by CA_CheckTeams(), CA_count_alive_players(), freezetag_CheckTeams(), freezetag_count_alive_players(), and ReadyCount().