11 #define INGAME_STATUS_NONE 0 12 #define INGAME_STATUS_JOINING 0.5 13 #define INGAME_STATUS_JOINED 1 17 #define INGAME_STATUS_SET(it, s) (it).ingame = s 18 #define INGAME_STATUS_CLEAR(it) INGAME_STATUS_SET(it, INGAME_STATUS_NONE) 20 #define INGAME(it) ((it).ingame) 21 #define INGAME_JOINED(it) ((it).ingame == INGAME_STATUS_JOINED) 22 #define INGAME_JOINING(it) ((it).ingame == INGAME_STATUS_JOINING) 53 #define GameRules_scoring(teams, spprio, stprio, fields) MACRO_BEGIN \ 54 _GameRules_scoring_begin((teams), (spprio), (stprio)); \ 55 noref void(entity, string, float) field = _GameRules_scoring_field; \ 57 noref void(int, string, float) field_team = _GameRules_scoring_field_team; \ 59 _GameRules_scoring_end(); \ 75 #define GameRules_scoring_add_float2int(client, fld, value, float_field, score_factor) \ 76 _GameRules_scoring_add_float2int(client, SP_##fld, value, float_field, score_factor) 78 #define GameRules_scoring_add(client, fld, value) _GameRules_scoring_add(client, SP_##fld, value) 80 #define GameRules_scoring_add_team(client, fld, value) _GameRules_scoring_add_team(client, SP_##fld, ST_##fld, value) void GameRules_limit_fallbacks()
Set any unspecified rules to their defaults.
float _GameRules_scoring_add(entity client, entity sp, float value)
bool GameRules_scoring_is_vip(entity player)
void GameRules_limit_time(int limit)
void GameRules_scoring_vip(entity player, bool value)
Mark a player as being 'important' (flag carrier, ball carrier, etc)
void GameRules_teams(bool value)
void GameRules_limit_score(int limit)
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)
int autocvar_leadlimit_override
int autocvar_leadlimit_and_fraglimit
void _GameRules_scoring_field(entity i, string label, int scoreflags)
void _GameRules_scoring_begin(int teams, float spprio, float stprio)
void GameRules_limit_lead(int limit)
void GameRules_spawning_teams(bool value)
Used to disable team spawns in team modes.
float _GameRules_scoring_add_float2int(entity client, entity sp, float value,.float field, float score_factor)
float _GameRules_scoring_add_team(entity client, entity sp, int st, float value)
void _GameRules_scoring_field_team(float i, string label, int scoreflags)