Hitmarker: big brainlag

This commit is contained in:
neon 2019-09-30 22:44:36 +02:00
parent 3c973f59fd
commit 2d1ad91541

View File

@ -72,8 +72,8 @@ public void OnMapStart()
AddFileToDownloadsTable("materials/overlays/nano/hitmarker.vtf");
AddFileToDownloadsTable("materials/overlays/nano/hitmarker.vmt");
PrecacheSound("unloze/hm_v2.mp3");
AddFileToDownloadsTable("sound/unloze/hm_v2.mp3");
PrecacheSound("unloze/hm_v3.mp3");
AddFileToDownloadsTable("sound/unloze/hm_v3.mp3");
}
//----------------------------------------------------------------------------------------------------
@ -106,9 +106,9 @@ public void OnClientCookiesCached(int client)
GetClientCookie(client, g_hCookie_HitmarkerSoundVolume, sBuffer, sizeof(sBuffer));
if (sBuffer[0])
g_iHitmarkerSoundVolume[client] = 100;
else
g_iHitmarkerSoundVolume[client] = StringToInt(sBuffer);
else
g_iHitmarkerSoundVolume[client] = 100;
}
//----------------------------------------------------------------------------------------------------
@ -364,7 +364,7 @@ public void ShowOverlay(int client)
if (g_bHitmarkerSound[client])
{
float fVolume = g_iHitmarkerSoundVolume[client] / 100.0;
EmitSoundToClient(client, "unloze/hm_v2.mp3", .volume=fVolume);
EmitSoundToClient(client, "unloze/hm_v3.mp3", .volume=fVolume);
}
if (g_hTimer[client] != null)