From cf269202fa45ca625b57331dd1a349ff6e53067f Mon Sep 17 00:00:00 2001 From: z411 Date: Tue, 20 Jul 2021 18:26:02 -0400 Subject: [PATCH] Make excellent medal configurable --- qcsrc/server/client.qh | 3 +++ qcsrc/server/damage.qc | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/qcsrc/server/client.qh b/qcsrc/server/client.qh index bad7f57aa..4a358287a 100644 --- a/qcsrc/server/client.qh +++ b/qcsrc/server/client.qh @@ -62,6 +62,9 @@ string autocvar_g_teamnames_blue; string autocvar_g_teamnames_yellow; string autocvar_g_teamnames_pink; +// Medals +float autocvar_g_medals_excellent_time = 2; + // WEAPONTODO .string weaponorder_byimpulse; diff --git a/qcsrc/server/damage.qc b/qcsrc/server/damage.qc index f40dfc5a2..9fab1e792 100644 --- a/qcsrc/server/damage.qc +++ b/qcsrc/server/damage.qc @@ -391,7 +391,7 @@ void Obituary(entity attacker, entity inflictor, entity targ, int deathtype, .en } // Excellent check - if(attacker.lastkill && attacker.lastkill > time - 2) { + if(attacker.lastkill && attacker.lastkill > time - autocvar_g_medals_excellent_time) { Give_Medal(attacker, EXCELLENT); } attacker.lastkill = time; -- 2.39.2