mirror of
https://github.com/1dot13/source.git
synced 2026-08-26 14:30:26 +02:00
Added Battlesounds for melee attacks.
For more info, see http://thepit.ja-galaxy-forum.com/index.php?t=msg&goto=358569&#msg_358569 git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8708 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -2931,6 +2931,16 @@ BOOLEAN AdjustToNextAnimationFrame( SOLDIERTYPE *pSoldier )
|
||||
{
|
||||
PlaySoldierJA2Sample( pSoldier->ubID, (UINT8)( SWOOSH_1 + Random( 6 ) ), RATE_11025, SoundVolume( HIGHVOLUME, pSoldier->sGridNo ), 1, SoundDir( pSoldier->sGridNo ), TRUE );
|
||||
}
|
||||
|
||||
// Flugente: play a little sound for melee attacks
|
||||
if ( !usedWeapon || Item[usedWeapon].usItemClass & IC_PUNCH )
|
||||
{
|
||||
pSoldier->DoMercBattleSound( BATTLE_SOUND_PUNCH );
|
||||
}
|
||||
else if ( Item[usedWeapon].usItemClass & (IC_BLADE | IC_THROWING_KNIFE) )
|
||||
{
|
||||
pSoldier->DoMercBattleSound( BATTLE_SOUND_KNIFE );
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user