]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
CTF: Add Assist medal
authorz411 <z411@omaera.org>
Thu, 19 Nov 2020 08:02:21 +0000 (05:02 -0300)
committerz411 <z411@omaera.org>
Thu, 19 Nov 2020 08:02:21 +0000 (05:02 -0300)
qcsrc/common/gamemodes/gamemode/ctf/sv_ctf.qc

index 9602a16d58440751ede914680c6957e88ac34c70..79bb653c174a650a03c36956aa8a0f6eecb5db6c 100644 (file)
@@ -633,7 +633,10 @@ void ctf_Handle_Capture(entity flag, entity toucher, int capturetype)
                if(flag.speedrunning) { ctf_FakeTimeLimit(player, -1); }
 
                if((enemy_flag.ctf_dropper) && (player != enemy_flag.ctf_dropper))
-                       { GameRules_scoring_add_team(enemy_flag.ctf_dropper, SCORE, ((enemy_flag.score_assist) ? enemy_flag.score_assist : autocvar_g_ctf_score_capture_assist)); }
+               {
+                       GameRules_scoring_add_team(enemy_flag.ctf_dropper, SCORE, ((enemy_flag.score_assist) ? enemy_flag.score_assist : autocvar_g_ctf_score_capture_assist));
+                       Give_Medal(enemy_flag.ctf_dropper, ASSIST);
+               }
        }
 
        flag.enemy = toucher;