mirror of
https://github.com/1dot13/source.git
synced 2026-08-26 14:30:26 +02:00
-updated AI to use some features from Ja2CW
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@184 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -766,7 +766,7 @@ INT8 CreatureDecideActionRed(SOLDIERTYPE *pSoldier, UINT8 ubUnconsciousOK)
|
||||
#ifdef DEBUGDECISIONS
|
||||
STR16 tempstr;
|
||||
sprintf((CHAR *)tempstr,"%s - SEEKING FRIEND at %d, MOVING to %d",
|
||||
pSoldier->name,pSoldier->ubCaller,pSoldier->usActionData);
|
||||
pSoldier->name,sClosestFriend,pSoldier->usActionData);
|
||||
AIPopMessage(tempstr);
|
||||
#endif
|
||||
return(AI_ACTION_SEEK_FRIEND);
|
||||
@@ -1350,7 +1350,7 @@ INT8 CreatureDecideActionBlack( SOLDIERTYPE * pSoldier )
|
||||
sprintf((CHAR *) tempstr, "%d(%s) %s %d(%s) at gridno %d (%d APs aim)\n",
|
||||
pSoldier->ubID,pSoldier->name,
|
||||
(ubBestAttackAction == AI_ACTION_FIRE_GUN)?"SHOOTS":((ubBestAttackAction == AI_ACTION_TOSS_PROJECTILE)?"TOSSES AT":"STABS"),
|
||||
BestAttack.ubOpponent, "Some Guy",
|
||||
BestAttack.ubOpponent,ExtMen[BestAttack.ubOpponent].name,
|
||||
BestAttack.sTarget,BestAttack.ubAimTime) ;
|
||||
DebugAI( tempstr );
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user