o Improved playback of HUD alert messages ( base under attack, enemy approaches, hive under attack etc. )

o Added "The enemy apporaches" to the forced hud sound list.


git-svn-id: https://unknownworlds.svn.cloudforge.com/ns1@580 67975925-1194-0748-b3d5-c16f83f1a3a1
This commit is contained in:
puzl 2006-08-26 12:28:52 +00:00
parent 970cc83a2b
commit 91c9e92981
2 changed files with 7 additions and 1 deletions

View file

@ -3503,6 +3503,11 @@ void AvHHud::PlayHUDSound(AvHHUDSound inSound)
if(theSoundPtr)
{
//gEngfuncs.pfnPlaySoundByNameAtLocation( sound, volume, (float *)&g_finalstate->playerstate.origin );
cl_entity_s* thePlayer = this->GetVisiblePlayer();
if ( thePlayer )
gEngfuncs.pfnPlaySoundByNameAtLocation(theSoundPtr, theVolume, thePlayer->origin);
else
gEngfuncs.pfnPlaySoundByName(theSoundPtr, theVolume);
if(theSoundLength >= 0.0f)
{

View file

@ -3896,6 +3896,7 @@ bool AvHSHUGetForceHUDSound(AvHHUDSound inHUDSound)
case HUD_SOUND_ALIEN_HIVE_COMPLETE:
case HUD_SOUND_ALIEN_HIVE_DYING:
case HUD_SOUND_ALIEN_HIVE_ATTACK:
case HUD_SOUND_ALIEN_ENEMY_APPROACHES:
case HUD_SOUND_MARINE_CCUNDERATTACK:
case HUD_SOUND_SQUAD1:
case HUD_SOUND_SQUAD2: