From: Mario Date: Sat, 28 Dec 2019 18:59:09 +0000 (+1000) Subject: Announce remaining frags in keepaway when timepoints is off X-Git-Tag: xonotic-v0.8.5~1170 X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=commitdiff_plain;h=995e0c99bfc4ae465568beed408ab29b224fbbdd Announce remaining frags in keepaway when timepoints is off --- diff --git a/qcsrc/common/gamemodes/gamemode/keepaway/sv_keepaway.qc b/qcsrc/common/gamemodes/gamemode/keepaway/sv_keepaway.qc index 0b8144deb7..f3c140fd11 100644 --- a/qcsrc/common/gamemodes/gamemode/keepaway/sv_keepaway.qc +++ b/qcsrc/common/gamemodes/gamemode/keepaway/sv_keepaway.qc @@ -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);