From cfcd2c5a9bbee71424881d10856734cb3fddb549 Mon Sep 17 00:00:00 2001 From: jenz Date: Mon, 5 Feb 2024 23:50:29 +0100 Subject: [PATCH] replacing csgo fakecache feature with plain cachesound that works in css --- ZombieRiot/scripting/unloze_zr.sp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/ZombieRiot/scripting/unloze_zr.sp b/ZombieRiot/scripting/unloze_zr.sp index 3d4a8275..709ed8d8 100644 --- a/ZombieRiot/scripting/unloze_zr.sp +++ b/ZombieRiot/scripting/unloze_zr.sp @@ -882,7 +882,7 @@ public void LoadExtraSettings() ReplaceStrings(l_cLine, "zmsoundsFile"); ReplaceString(l_cLine, sizeof(l_cLine), "sound/", "*/"); Format(g_cZMSounds[g_iSoundIndexes][g_iLength], sizeof(g_cZMSounds), l_cLine); - FakePrecacheSound(g_cZMSounds[g_iSoundIndexes][g_iLength]); + PrecacheSound(g_cZMSounds[g_iSoundIndexes][g_iLength]); g_iSoundIndexes++; } } @@ -2104,10 +2104,3 @@ stock void ReplaceStrings(char[] str, char[] strReplace) TrimString(l_cstrFix); Format(str, sizeof(l_cstrFix), l_cstrFix); } -//---------------------------------------------------------------------------------------------------- -// Purpose: -//---------------------------------------------------------------------------------------------------- -stock void FakePrecacheSound(const char[] szPath) -{ - AddToStringTable(FindStringTable("soundprecache"), szPath); -}