]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Use correct titles for a few scoreboard fields (now scoreboard can better handle...
authorterencehill <piuntn@gmail.com>
Wed, 3 Apr 2024 18:20:14 +0000 (20:20 +0200)
committerterencehill <piuntn@gmail.com>
Sun, 7 Apr 2024 11:52:10 +0000 (13:52 +0200)
qcsrc/client/hud/panel/scoreboard.qc
qcsrc/common/gamemodes/gamemode/keyhunt/sv_keyhunt.qc
qcsrc/common/gamemodes/gamemode/onslaught/sv_onslaught.qc
qcsrc/common/gamemodes/gamemode/onslaught/sv_onslaught.qh
qcsrc/common/scores.qh

index aff3094308605e5697ffefbdaeaa0399387e3a49..ad86b270c8ef633ce9e46a9223b7fc6dfed5a6db 100644 (file)
@@ -140,9 +140,9 @@ string Label_getInfo(string label, int mode)
                SCO_LABEL(_("SCO^caps"),          "caps", "               ", _("How often a flag (CTF) or a key (KeyHunt) was captured"));
                SCO_LABEL(_("SCO^captime"),       "captime", "            ", _("Time of fastest capture (CTF)"));
                SCO_LABEL(_("SCO^deaths"),        "deaths", "             ", _("Number of deaths"));
-               SCO_LABEL(_("SCO^destroyed"),     "destroyed", "          ", _("Number of keys destroyed by pushing them into void"));
-               SCO_LABEL(_("SCO^damage"),        "dmg", "                ", _("The total damage done"));
-               SCO_LABEL(_("SCO^dmgtaken"),      "dmgtaken", "           ", _("The total damage taken"));
+               SCO_LABEL(_("SCO^destructions"),  "destructions", "       ", _("Number of keys destroyed by pushing them into void"));
+               SCO_LABEL(_("SCO^damage dealt"),  "dmg", "                ", _("The total damage dealt"));
+               SCO_LABEL(_("SCO^damage taken"),  "dmgtaken", "           ", _("The total damage taken"));
                SCO_LABEL(_("SCO^drops"),         "drops", "              ", _("Number of flag drops"));
                SCO_LABEL(_("SCO^elo"),           "elo", "                ", _("Player ELO"));
                SCO_LABEL(_("SCO^fastest"),       "fastest", "            ", _("Time of fastest lap (Race/CTS)"));
@@ -150,6 +150,7 @@ string Label_getInfo(string label, int mode)
                SCO_LABEL(_("SCO^fckills"),       "fckills", "            ", _("Number of flag carrier kills"));
                SCO_LABEL(_("SCO^fps"),           "fps", "                ", _("FPS"));
                SCO_LABEL(_("SCO^frags"),         "frags", "              ", _("Number of kills minus suicides"));
+               SCO_LABEL(_("SCO^generators"),    "generators", "         ", _("Number of generators destroyed"));
                SCO_LABEL(_("SCO^goals"),         "goals", "              ", _("Number of goals scored"));
                SCO_LABEL(_("SCO^hunts"),         "hunts", "              ", _("Number of hunts (Survival)"));
                SCO_LABEL(_("SCO^kckills"),       "kckills", "            ", _("Number of keys carrier kills"));
index 0e79b58ebf6b40b96f2b28b2f4bf793f47f89b18..beb5cd7f40f6d75a459466a132ae27eb571e0a95 100644 (file)
@@ -90,7 +90,7 @@ void kh_ScoreRules(int teams)
         field_team(ST_KH_CAPS, "caps", SFL_SORT_PRIO_SECONDARY);
         field(SP_KH_CAPS, "caps", SFL_SORT_PRIO_SECONDARY);
         field(SP_KH_PUSHES, "pushes", 0);
-        field(SP_KH_DESTROYS, "destroyed", SFL_LOWER_IS_BETTER);
+        field(SP_KH_DESTRUCTIONS, "destructions", SFL_LOWER_IS_BETTER);
         field(SP_KH_PICKUPS, "pickups", 0);
         field(SP_KH_KCKILLS, "kckills", 0);
         field(SP_KH_LOSSES, "losses", SFL_LOWER_IS_BETTER);
@@ -607,7 +607,7 @@ void kh_LoserTeam(int loser_team, entity lostkey)  // runs when a player pushes
                        // don't actually GIVE them the -nn points, just log
 
                if(lostkey.kh_previous_owner.playerid == lostkey.kh_previous_owner_playerid)
-                       GameRules_scoring_add(lostkey.kh_previous_owner, KH_DESTROYS, 1);
+                       GameRules_scoring_add(lostkey.kh_previous_owner, KH_DESTRUCTIONS, 1);
 
                DistributeEvenly_Init(autocvar_g_balance_keyhunt_score_destroyed, keys * of + players);
 
index ea07659e340a078927c60ee163bb5f043fe57468..370fda29d0f599a9cf40d6905568df2e06b3576d 100644 (file)
@@ -1197,7 +1197,7 @@ bool Onslaught_CheckWinner()
        {
                Send_Notification(NOTIF_ALL, NULL, MSG_CENTER, APP_TEAM_NUM(winner_team, CENTER_ROUND_TEAM_WIN));
                Send_Notification(NOTIF_ALL, NULL, MSG_INFO, APP_TEAM_NUM(winner_team, INFO_ROUND_TEAM_WIN));
-               TeamScore_AddToTeam(winner_team, ST_ONS_CAPS, +1);
+               TeamScore_AddToTeam(winner_team, ST_ONS_GENS, +1);
        }
        else if(winner_team == -1)
        {
@@ -2135,7 +2135,7 @@ void ons_ScoreRules()
        int teams = TeamBalance_GetAllowedTeams(balance);
        TeamBalance_Destroy(balance);
        GameRules_scoring(teams, SFL_SORT_PRIO_PRIMARY, 0, {
-           field_team(ST_ONS_CAPS, "destroyed", SFL_SORT_PRIO_PRIMARY);
+           field_team(ST_ONS_GENS, "generators", SFL_SORT_PRIO_PRIMARY);
            field(SP_ONS_CAPS, "caps", SFL_SORT_PRIO_SECONDARY);
            field(SP_ONS_TAKES, "takes", 0);
        });
index 1f98522ba7db9f17054d12275bb91c260b7d1cc6..e2d5044a25782276d790fe6605652892c17f8553 100644 (file)
@@ -94,4 +94,4 @@ void havocbot_goalrating_items(entity this, float ratingscale, vector org, float
 void havocbot_goalrating_enemyplayers(entity this, float ratingscale, vector org, float sradius);
 
 // score rule declarations
-const int ST_ONS_CAPS = 1;
+const int ST_ONS_GENS = 1;
index 8f22b5c7525bcea5c80f01d594c9fc38a11660a7..f6df5d28ce52094f9e23cab6ca613d056576cfa8 100644 (file)
@@ -47,7 +47,7 @@ REGISTER_SP(KEEPAWAY_PICKUPS);
 REGISTER_SP(KH_CAPS);
 REGISTER_SP(KH_KCKILLS);
 REGISTER_SP(KH_LOSSES);
-REGISTER_SP(KH_DESTROYS);
+REGISTER_SP(KH_DESTRUCTIONS);
 REGISTER_SP(KH_PUSHES);
 REGISTER_SP(KH_PICKUPS);