mirror of
https://github.com/1dot13/source.git
synced 2026-08-05 14:00:23 +02:00
AI:
- before deciding anything, stop cowering animation - before deciding anything, stop giving aid animation - before deciding to raise weapon, check if weapon can be raised - simplified scope check - removed duplicate code in Red AI Added missing actions to gzActionStr[]. Fixed OKLIFE checks. git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8740 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -3370,7 +3370,7 @@ BOOLEAN GetBestAoEGridNo(SOLDIERTYPE *pSoldier, INT32* pGridNo, INT16 aRadius, U
|
||||
continue;
|
||||
|
||||
// dying or captured friends are 'helpless' anyway, we are willing to sacrifice them :-)
|
||||
if ( uCheckFriends && pSoldier->bSide == pFriend->bSide && pFriend->stats.bLife > OKLIFE && !(pFriend->usSoldierFlagMask & SOLDIER_POW) )
|
||||
if ( uCheckFriends && pSoldier->bSide == pFriend->bSide && pFriend->stats.bLife >= OKLIFE && !(pFriend->usSoldierFlagMask & SOLDIER_POW) )
|
||||
{
|
||||
// active friend, remember where he is so that we DON'T blow him up!
|
||||
// this includes US, since we don't want to blow OURSELVES up either
|
||||
|
||||
Reference in New Issue
Block a user