mirror of
https://github.com/ENSL/NS.git
synced 2024-11-10 07:11:38 +00:00
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:
parent
970cc83a2b
commit
91c9e92981
2 changed files with 7 additions and 1 deletions
|
@ -3503,7 +3503,12 @@ void AvHHud::PlayHUDSound(AvHHUDSound inSound)
|
|||
|
||||
if(theSoundPtr)
|
||||
{
|
||||
gEngfuncs.pfnPlaySoundByName(theSoundPtr, theVolume);
|
||||
//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)
|
||||
{
|
||||
this->mTimeOfNextHudSound = this->mTimeOfCurrentUpdate + theSoundLength;
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue