From: z411 Date: Tue, 20 Jul 2021 22:26:02 +0000 (-0400) Subject: Make excellent medal configurable X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=cf269202fa45ca625b57331dd1a349ff6e53067f;p=xonotic%2Fxonotic-data.pk3dir.git Make excellent medal configurable --- 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;