mirror of
https://github.com/1dot13/source.git
synced 2026-08-05 14:00:23 +02:00
New militia order: Move to (works in realtime only, switches militia soldier to DTATIONARY/DEFENSIVE).
Cancel current AI order when giving militia order. Check if desired stance is possible here when ordering militia to crouch/prone. Green AI: reworked climb code (only climb up, only at the start of the turn, disable for STATIONARY). git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8947 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -1130,7 +1130,12 @@ INT8 DecideActionGreen(SOLDIERTYPE *pSoldier)
|
||||
// CLIMB A BUILDING
|
||||
////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
if (!fCivilian && pSoldier->aiData.bLastAction != AI_ACTION_CLIMB_ROOF && !is_networked)
|
||||
if (!fCivilian &&
|
||||
pSoldier->CheckInitialAP() &&
|
||||
pSoldier->aiData.bLastAction != AI_ACTION_CLIMB_ROOF &&
|
||||
pSoldier->aiData.bOrders != STATIONARY &&
|
||||
pSoldier->pathing.bLevel == 0 &&
|
||||
!is_networked)
|
||||
{
|
||||
iChance = 10 + pSoldier->aiData.bBypassToGreen;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user