38 if (limit < 0)
return;
48 if (limit < 0)
return;
58 if (limit < 0)
return;
68 if (limit < 0)
return;
100 player.m_GameRules_scoring_vip = value;
104 return player.m_GameRules_scoring_vip;
113 client.(float_field) += value;
114 float score_counter = client.(float_field) / score_factor;
115 if (score_counter >= -0.5 && score_counter < 0.5)
119 int points =
floor(score_counter + 0.5);
120 client.(float_field) -= points * score_factor;
bool m_GameRules_scoring_vip
float _GameRules_scoring_add_float2int(entity client, entity sp, float value,.float float_field, float score_factor)
void GameRules_spawning_teams(bool value)
Used to disable team spawns in team modes.
bool GameRules_limit_lead_initialized
void _GameRules_scoring_field_team(float i, string label, int scoreflags)
void GameRules_limit_fallbacks()
Set any unspecified rules to their defaults.
void GameRules_scoring_vip(entity player, bool value)
Mark a player as being 'important' (flag carrier, ball carrier, etc)
void ScoreRules_basics(int teams, float sprio, float stprio, float score_enabled)
void GameRules_limit_score(int limit)
void ScoreRules_basics_end()
bool GameRules_limit_time_qualifying_initialized
void ScoreInfo_SetLabel_PlayerScore(PlayerScoreField i, string label, float scoreflags)
Set the label of a player score item, as well as the scoring flags.
bool GameRules_scoring_is_vip(entity player)
void _GameRules_scoring_end()
void GameRules_score_enabled(bool value)
Disabling score disables the "score" column on the scoreboard.
void GameRules_limit_time_qualifying(int limit)
void _GameRules_scoring_begin(int teams, float spprio, float stprio)
const int SERVERFLAG_TEAMPLAY
int autocvar_leadlimit_override
void _GameRules_scoring_field(entity i, string label, int scoreflags)
void GameRules_limit_time(int limit)
void GameRules_teams(bool value)
bool _GameRules_score_enabled
float _GameRules_scoring_add_team(entity client, entity sp, int st, float value)
float PlayerTeamScore_Add(entity player, PlayerScoreField pscorefield, float tscorefield, float score)
Adds a score to both the player and the team.
void ScoreInfo_SetLabel_TeamScore(float i, string label, float scoreflags)
Set the label of a team score item, as well as the scoring flags.
float _GameRules_scoring_add(entity client, entity sp, float value)
void GameRules_limit_lead(int limit)
float PlayerScore_Add(entity player, PlayerScoreField scorefield, float score)
Adds a score to the player's scores.
bool GameRules_limit_score_initialized
bool GameRules_limit_time_initialized