Hitmarker: big brainlag
This commit is contained in:
parent
3c973f59fd
commit
2d1ad91541
@ -72,8 +72,8 @@ public void OnMapStart()
|
|||||||
AddFileToDownloadsTable("materials/overlays/nano/hitmarker.vtf");
|
AddFileToDownloadsTable("materials/overlays/nano/hitmarker.vtf");
|
||||||
AddFileToDownloadsTable("materials/overlays/nano/hitmarker.vmt");
|
AddFileToDownloadsTable("materials/overlays/nano/hitmarker.vmt");
|
||||||
|
|
||||||
PrecacheSound("unloze/hm_v2.mp3");
|
PrecacheSound("unloze/hm_v3.mp3");
|
||||||
AddFileToDownloadsTable("sound/unloze/hm_v2.mp3");
|
AddFileToDownloadsTable("sound/unloze/hm_v3.mp3");
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------------------------
|
||||||
@ -106,9 +106,9 @@ public void OnClientCookiesCached(int client)
|
|||||||
GetClientCookie(client, g_hCookie_HitmarkerSoundVolume, sBuffer, sizeof(sBuffer));
|
GetClientCookie(client, g_hCookie_HitmarkerSoundVolume, sBuffer, sizeof(sBuffer));
|
||||||
|
|
||||||
if (sBuffer[0])
|
if (sBuffer[0])
|
||||||
g_iHitmarkerSoundVolume[client] = 100;
|
|
||||||
else
|
|
||||||
g_iHitmarkerSoundVolume[client] = StringToInt(sBuffer);
|
g_iHitmarkerSoundVolume[client] = StringToInt(sBuffer);
|
||||||
|
else
|
||||||
|
g_iHitmarkerSoundVolume[client] = 100;
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------------------------
|
||||||
@ -364,7 +364,7 @@ public void ShowOverlay(int client)
|
|||||||
if (g_bHitmarkerSound[client])
|
if (g_bHitmarkerSound[client])
|
||||||
{
|
{
|
||||||
float fVolume = g_iHitmarkerSoundVolume[client] / 100.0;
|
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)
|
if (g_hTimer[client] != null)
|
||||||
|
Loading…
Reference in New Issue
Block a user