From 00297c72a7aff6cc197d72ed848f83cf53b86d1b Mon Sep 17 00:00:00 2001 From: terencehill Date: Sat, 10 Jul 2010 14:23:11 +0200 Subject: [PATCH] Do not precache strength_respawn.wav and shield_respawn.wav in minstagib, in this game mode it's used the only itemrespawn.wav. --- qcsrc/server/t_items.qc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/qcsrc/server/t_items.qc b/qcsrc/server/t_items.qc index caa7c2119..537b5ef49 100644 --- a/qcsrc/server/t_items.qc +++ b/qcsrc/server/t_items.qc @@ -828,13 +828,14 @@ void StartItem (string itemmodel, string pickupsound, float defaultrespawntime, precache_model (itemmodel); precache_sound (pickupsound); - precache_sound ("misc/itemrespawn.wav"); - precache_sound ("misc/itemrespawncountdown.wav"); - if(itemid == IT_STRENGTH) + precache_sound ("misc/itemrespawncountdown.wav"); + if(!g_minstagib && itemid == IT_STRENGTH) precache_sound ("misc/strength_respawn.wav"); - if(itemid == IT_INVINCIBLE) + else if(!g_minstagib && itemid == IT_INVINCIBLE) precache_sound ("misc/shield_respawn.wav"); + else + precache_sound ("misc/itemrespawn.wav"); if((itemid & (IT_STRENGTH | IT_INVINCIBLE | IT_HEALTH | IT_ARMOR | IT_KEY1 | IT_KEY2)) || (weaponid & WEPBIT_ALL)) self.target = "###item###"; // for finding the nearest item using find() -- 2.39.2