X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fscores_rules.qc;h=ebf1336888ac595f682b6acc0d4beed28156bc78;hb=78fd790dbb8690b148bd9270934b8e918a2fbc00;hp=8266d4e3c4b55cf158def74ded2a15f4c2c42d79;hpb=174b4f831768c0d516b25aee11904337f3e27b90;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/scores_rules.qc b/qcsrc/server/scores_rules.qc index 8266d4e3c..ebf133688 100644 --- a/qcsrc/server/scores_rules.qc +++ b/qcsrc/server/scores_rules.qc @@ -44,48 +44,6 @@ void ScoreRules_generic() ScoreRules_basics_end(); } -// g_ctf -#define ST_CTF_CAPS 1 -#define SP_CTF_CAPS 4 -#define SP_CTF_CAPTIME 5 -#define SP_CTF_PICKUPS 6 -#define SP_CTF_DROPS 7 -#define SP_CTF_FCKILLS 8 -#define SP_CTF_RETURNS 9 -void ScoreRules_ctf() -{ - CheckAllowedTeams(world); - ScoreRules_basics(2, SFL_SORT_PRIO_PRIMARY, 0, TRUE); - ScoreInfo_SetLabel_TeamScore (ST_CTF_CAPS, "caps", SFL_SORT_PRIO_PRIMARY); - ScoreInfo_SetLabel_PlayerScore(SP_CTF_CAPS, "caps", SFL_SORT_PRIO_SECONDARY); - ScoreInfo_SetLabel_PlayerScore(SP_CTF_CAPTIME, "captime", SFL_LOWER_IS_BETTER | SFL_TIME); - ScoreInfo_SetLabel_PlayerScore(SP_CTF_PICKUPS, "pickups", 0); - ScoreInfo_SetLabel_PlayerScore(SP_CTF_FCKILLS, "fckills", 0); - ScoreInfo_SetLabel_PlayerScore(SP_CTF_RETURNS, "returns", 0); - ScoreInfo_SetLabel_PlayerScore(SP_CTF_DROPS, "drops", SFL_LOWER_IS_BETTER); - ScoreRules_basics_end(); -} - -// g_domination -#define ST_DOM_TICKS 1 -#define SP_DOM_TICKS 4 -#define SP_DOM_TAKES 5 -void ScoreRules_dom() -{ - float sp_domticks, sp_score; - sp_score = sp_domticks = 0; - if(autocvar_g_domination_disable_frags) - sp_domticks = SFL_SORT_PRIO_PRIMARY; - else - sp_score = SFL_SORT_PRIO_PRIMARY; - CheckAllowedTeams(world); - ScoreRules_basics(((c4>=0) ? 4 : (c3>=0) ? 3 : 2), sp_score, sp_score, TRUE); - ScoreInfo_SetLabel_TeamScore (ST_DOM_TICKS, "ticks", sp_domticks); - ScoreInfo_SetLabel_PlayerScore(SP_DOM_TICKS, "ticks", sp_domticks); - ScoreInfo_SetLabel_PlayerScore(SP_DOM_TAKES, "takes", 0); - ScoreRules_basics_end(); -} - // LMS stuff #define SP_LMS_LIVES 4 #define SP_LMS_RANK 5 @@ -171,19 +129,6 @@ void ScoreRules_nexball(float teams) ScoreRules_basics_end(); } -// Keep Away stuff -#define SP_KEEPAWAY_PICKUPS 4 -#define SP_KEEPAWAY_CARRIERKILLS 5 -#define SP_KEEPAWAY_BCTIME 6 -void ScoreRules_keepaway() -{ - ScoreRules_basics(0, SFL_SORT_PRIO_PRIMARY, 0, TRUE); // SFL_SORT_PRIO_PRIMARY - ScoreInfo_SetLabel_PlayerScore(SP_KEEPAWAY_PICKUPS, "pickups", 0); - ScoreInfo_SetLabel_PlayerScore(SP_KEEPAWAY_CARRIERKILLS, "bckills", 0); - ScoreInfo_SetLabel_PlayerScore(SP_KEEPAWAY_BCTIME, "bctime", SFL_SORT_PRIO_SECONDARY); - ScoreRules_basics_end(); -} - // FreezeTag stuff #define SP_FREEZETAG_REVIVALS 4 void ScoreRules_freezetag()