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:
Sevenfm
2021-02-26 12:14:11 +00:00
parent fe10587437
commit 1abb292f8e
15 changed files with 234 additions and 40 deletions
+16
View File
@@ -578,6 +578,11 @@ void QueryRTLeftButton( UINT32 *puiNewEvent )
HandleHandCursorClick( usMapPos, puiNewEvent );
break;
case RADIOCURSOR_MODE:
HandleRadioCursorClick(usMapPos, puiNewEvent);
break;
case ACTION_MODE:
//*puiNewEvent = A_CHANGE_TO_CONFIM_ACTION;
@@ -1108,6 +1113,7 @@ void QueryRTRightButton( UINT32 *puiNewEvent )
case IDLE_MODE:
case ACTION_MODE:
case HANDCURSOR_MODE:
case RADIOCURSOR_MODE:
case LOOKCURSOR_MODE:
case TALKCURSOR_MODE:
case MOVE_MODE:
@@ -1322,6 +1328,11 @@ void QueryRTRightButton( UINT32 *puiNewEvent )
*puiNewEvent = A_CHANGE_TO_MOVE;
break;
case RADIOCURSOR_MODE:
// If we cannot actually do anything, return to movement mode
*puiNewEvent = A_CHANGE_TO_MOVE;
break;
case LOOKCURSOR_MODE:
// If we cannot actually do anything, return to movement mode
@@ -1491,6 +1502,10 @@ void GetRTMousePositionInput( UINT32 *puiNewEvent )
*puiNewEvent = HC_ON_TERRAIN;
break;
case RADIOCURSOR_MODE:
//*puiNewEvent = A_CHANGE_TO_MOVE;
break;
case MOVE_MODE:
if ( usMapPos != usOldMapPos )
@@ -1826,6 +1841,7 @@ void QueryRTWheels( UINT32 *puiNewEvent )
case IDLE_MODE:
case MOVE_MODE:
case HANDCURSOR_MODE:
case RADIOCURSOR_MODE:
if(gGameExternalOptions.bAlternateMouseCommands)
HandleAltMouseRTWheel();
else