Fixed hint text sound not precached error in CS: GO.
This commit is contained in:
parent
75518ba11a
commit
c2da0b54ec
|
@ -173,7 +173,6 @@ SpawnProtectStart(client)
|
|||
|
||||
// Send time left in a hud message.
|
||||
TranslationPrintHintText(client, "Spawn Protect", pSpawnProtectTime[client]);
|
||||
StopSound(client, SNDCHAN_STATIC, "UI/hint.wav");
|
||||
|
||||
// Start repeating timer.
|
||||
tSpawnProtect[client] = CreateTimer(1.0, SpawnProtectTimer, client, TIMER_FLAG_NO_MAPCHANGE|TIMER_REPEAT);
|
||||
|
|
|
@ -331,6 +331,12 @@ stock TranslationPrintHintText(client, any:...)
|
|||
|
||||
// Print translated phrase to client.
|
||||
PrintHintText(client, translation);
|
||||
|
||||
// Stop hint text sound in CS:S.
|
||||
if (g_Game == Game_CSS)
|
||||
{
|
||||
StopSound(client, SNDCHAN_STATIC, "UI/hint.wav");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -250,7 +250,6 @@ ZHPUpdateHUD(client)
|
|||
|
||||
// Display HP
|
||||
TranslationPrintHintText(client, "Display HP", health);
|
||||
StopSound(client, SNDCHAN_STATIC, "UI/hint.wav");
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue
Block a user