mirror of
https://github.com/1dot13/source.git
synced 2026-09-02 14:36:06 +02:00
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:
@@ -6677,7 +6677,9 @@ BOOLEAN CheckForEndOfBattle( BOOLEAN fAnEnemyRetreated )
|
|||||||
return( FALSE );
|
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
|
// OK, this is to releave infinate looping...becasue we can kill guys in this function
|
||||||
if ( gfKillingGuysForLosingBattle )
|
if ( gfKillingGuysForLosingBattle )
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2281,6 +2281,8 @@ INT8 ExecuteAction(SOLDIERTYPE *pSoldier)
|
|||||||
StartEnemyTaunt( pSoldier, TAUNT_SEEK_NOISE );
|
StartEnemyTaunt( pSoldier, TAUNT_SEEK_NOISE );
|
||||||
else if (pSoldier->aiData.bAction == AI_ACTION_RUN_AWAY )
|
else if (pSoldier->aiData.bAction == AI_ACTION_RUN_AWAY )
|
||||||
StartEnemyTaunt( pSoldier, TAUNT_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
|
case AI_ACTION_APPROACH_MERC: // walk up to someone to talk
|
||||||
|
|||||||
Reference in New Issue
Block a user