1. Fixed victory music playing prematurely when zombies were present

2. Zombies should now moan randomly (same as enemy taunts)

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@5337 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
MaddMugsy
2012-06-08 20:14:43 +00:00
parent 253631f061
commit 2c342000c4
2 changed files with 5 additions and 1 deletions
+3 -1
View File
@@ -6677,7 +6677,9 @@ BOOLEAN CheckForEndOfBattle( BOOLEAN fAnEnemyRetreated )
return( FALSE );
}
if ( HostileZombiesPresent() ) //Madd: got tired of the victory music playing right after the zombies arose
return FALSE;
// OK, this is to releave infinate looping...becasue we can kill guys in this function
if ( gfKillingGuysForLosingBattle )
{
+2
View File
@@ -2281,6 +2281,8 @@ INT8 ExecuteAction(SOLDIERTYPE *pSoldier)
StartEnemyTaunt( pSoldier, TAUNT_SEEK_NOISE );
else if (pSoldier->aiData.bAction == AI_ACTION_RUN_AWAY )
StartEnemyTaunt( pSoldier, TAUNT_RUN_AWAY );
else if ( pSoldier->IsZombie() ) // Madd: Zombies randomly moan...
pSoldier->DoMercBattleSound( (INT8)( BATTLE_SOUND_LAUGH1 ) );
}
}
case AI_ACTION_APPROACH_MERC: // walk up to someone to talk