From: terencehill Date: Sat, 10 Jul 2010 12:23:11 +0000 (+0200) Subject: Do not precache strength_respawn.wav and shield_respawn.wav in minstagib, in this... X-Git-Tag: xonotic-v0.1.0preview~454^2~3 X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=commitdiff_plain;h=00297c72a7aff6cc197d72ed848f83cf53b86d1b;hp=11b0ebbe4afffc215f95db05201b9728b4fcc7a1 Do not precache strength_respawn.wav and shield_respawn.wav in minstagib, in this game mode it's used the only itemrespawn.wav. --- diff --git a/qcsrc/server/t_items.qc b/qcsrc/server/t_items.qc index caa7c21192..537b5ef493 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()