replacing csgo fakecache feature with plain cachesound that works in css

This commit is contained in:
jenz 2024-02-05 23:50:29 +01:00
parent 950d7d8c68
commit cfcd2c5a9b

View File

@ -882,7 +882,7 @@ public void LoadExtraSettings()
ReplaceStrings(l_cLine, "zmsoundsFile"); ReplaceStrings(l_cLine, "zmsoundsFile");
ReplaceString(l_cLine, sizeof(l_cLine), "sound/", "*/"); ReplaceString(l_cLine, sizeof(l_cLine), "sound/", "*/");
Format(g_cZMSounds[g_iSoundIndexes][g_iLength], sizeof(g_cZMSounds), l_cLine); 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++; g_iSoundIndexes++;
} }
} }
@ -2104,10 +2104,3 @@ stock void ReplaceStrings(char[] str, char[] strReplace)
TrimString(l_cstrFix); TrimString(l_cstrFix);
Format(str, sizeof(l_cstrFix), l_cstrFix); Format(str, sizeof(l_cstrFix), l_cstrFix);
} }
//----------------------------------------------------------------------------------------------------
// Purpose:
//----------------------------------------------------------------------------------------------------
stock void FakePrecacheSound(const char[] szPath)
{
AddToStringTable(FindStringTable("soundprecache"), szPath);
}