]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Announce remaining frags in keepaway when timepoints is off
authorMario <mario.mario@y7mail.com>
Sat, 28 Dec 2019 18:59:09 +0000 (04:59 +1000)
committerMario <mario.mario@y7mail.com>
Sat, 28 Dec 2019 18:59:09 +0000 (04:59 +1000)
qcsrc/common/gamemodes/gamemode/keepaway/sv_keepaway.qc

index 0b8144deb7d5ae5cf147f2a326bbc727a55510c5..f3c140fd11472c37437644e22aa3c5fe56db721f 100644 (file)
@@ -350,6 +350,12 @@ MUTATOR_HOOKFUNCTION(ka, GiveFragsForKill)
        return true; // you deceptive little bugger ;3 This needs to be true in order for this function to even count.
 }
 
+MUTATOR_HOOKFUNCTION(ka, Scores_CountFragsRemaining)
+{
+       // announce remaining frags, but only when timed scoring is off
+       return !autocvar_g_keepaway_score_timepoints;
+}
+
 MUTATOR_HOOKFUNCTION(ka, PlayerPreThink)
 {
        entity player = M_ARGV(0, entity);