Fixed hint text sound not precached error in CS: GO.

This commit is contained in:
Richard Helgeby 2012-09-20 11:41:21 +02:00
parent 75518ba11a
commit c2da0b54ec
3 changed files with 6 additions and 2 deletions

View File

@ -173,7 +173,6 @@ SpawnProtectStart(client)
// Send time left in a hud message. // Send time left in a hud message.
TranslationPrintHintText(client, "Spawn Protect", pSpawnProtectTime[client]); TranslationPrintHintText(client, "Spawn Protect", pSpawnProtectTime[client]);
StopSound(client, SNDCHAN_STATIC, "UI/hint.wav");
// Start repeating timer. // Start repeating timer.
tSpawnProtect[client] = CreateTimer(1.0, SpawnProtectTimer, client, TIMER_FLAG_NO_MAPCHANGE|TIMER_REPEAT); tSpawnProtect[client] = CreateTimer(1.0, SpawnProtectTimer, client, TIMER_FLAG_NO_MAPCHANGE|TIMER_REPEAT);

View File

@ -331,6 +331,12 @@ stock TranslationPrintHintText(client, any:...)
// Print translated phrase to client. // Print translated phrase to client.
PrintHintText(client, translation); PrintHintText(client, translation);
// Stop hint text sound in CS:S.
if (g_Game == Game_CSS)
{
StopSound(client, SNDCHAN_STATIC, "UI/hint.wav");
}
} }
/** /**

View File

@ -250,7 +250,6 @@ ZHPUpdateHUD(client)
// Display HP // Display HP
TranslationPrintHintText(client, "Display HP", health); TranslationPrintHintText(client, "Display HP", health);
StopSound(client, SNDCHAN_STATIC, "UI/hint.wav");
} }
/** /**