mirror of
https://github.com/1dot13/source.git
synced 2026-09-02 14:36:06 +02:00
- Tactical militia command: stopped merc from moving to militia in combat if he doesn't have a headset (radio)
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@736 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
+2
-2
@@ -23,12 +23,12 @@ INT16 zVersionLabel[256] = { L"Beta v. 0.98" };
|
|||||||
#else
|
#else
|
||||||
|
|
||||||
//RELEASE BUILD VERSION
|
//RELEASE BUILD VERSION
|
||||||
INT16 zVersionLabel[256] = { L"Release v1.13.728" };
|
INT16 zVersionLabel[256] = { L"Release v1.13.736" };
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
INT8 czVersionNumber[16] = { "Build 07.02.22" }; //YY.MM.DD
|
INT8 czVersionNumber[16] = { "Build 07.02.24" }; //YY.MM.DD
|
||||||
INT16 zTrackingNumber[16] = { L"Z" };
|
INT16 zTrackingNumber[16] = { L"Z" };
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -546,7 +546,7 @@
|
|||||||
<Tool
|
<Tool
|
||||||
Name="VCLinkerTool"
|
Name="VCLinkerTool"
|
||||||
AdditionalDependencies="libexpatMT.lib winmm.lib smackw32.lib mss32.lib fmodvc.lib"
|
AdditionalDependencies="libexpatMT.lib winmm.lib smackw32.lib mss32.lib fmodvc.lib"
|
||||||
OutputFile="D:\games\Jagged Alliance 2 v1.13\ja2 v1.13.725_EN.exe"
|
OutputFile="D:\games\Jagged Alliance 2 v1.13\ja2 v1.13.736_EN.exe"
|
||||||
LinkIncremental="1"
|
LinkIncremental="1"
|
||||||
SuppressStartupBanner="TRUE"
|
SuppressStartupBanner="TRUE"
|
||||||
AdditionalLibraryDirectories=".\..\..\Standard Gaming Platform\"
|
AdditionalLibraryDirectories=".\..\..\Standard Gaming Platform\"
|
||||||
|
|||||||
+40
-33
@@ -5713,45 +5713,52 @@ BOOLEAN HandleTalkInit( )
|
|||||||
|
|
||||||
if ( ( uiRange > commandRange ) && ( !CheckIfRadioIsEquipped() ) ) //lal
|
if ( ( uiRange > commandRange ) && ( !CheckIfRadioIsEquipped() ) ) //lal
|
||||||
{
|
{
|
||||||
// First get an adjacent gridno....
|
if( (gTacticalStatus.uiFlags & TURNBASED) && (gTacticalStatus.uiFlags & INCOMBAT) )
|
||||||
sActionGridNo = FindAdjacentGridEx( pSoldier, pTSoldier->sGridNo, &ubDirection, NULL, FALSE, TRUE );
|
|
||||||
|
|
||||||
if ( sActionGridNo == -1 )
|
|
||||||
{
|
|
||||||
ScreenMsg( FONT_MCOLOR_LTYELLOW, MSG_UI_FEEDBACK, TacticalStr[ NO_PATH ] );
|
|
||||||
return( FALSE );
|
|
||||||
}
|
|
||||||
|
|
||||||
if ( UIPlotPath( pSoldier, sActionGridNo, NO_COPYROUTE, FALSE, TEMPORARY, (UINT16)pSoldier->usUIMovementMode, NOT_STEALTH, FORWARD, pSoldier->bActionPoints ) == 0 )
|
|
||||||
{
|
|
||||||
ScreenMsg( FONT_MCOLOR_LTYELLOW, MSG_UI_FEEDBACK, TacticalStr[ NO_PATH ] );
|
|
||||||
return( FALSE );
|
|
||||||
}
|
|
||||||
|
|
||||||
// Walk up and talk to buddy....
|
|
||||||
gfNPCCircularDistLimit = TRUE;
|
|
||||||
sGoodGridNo = FindGridNoFromSweetSpotWithStructData( pSoldier, pSoldier->usUIMovementMode, pTSoldier->sGridNo, (NPC_TALK_RADIUS-1), &ubNewDirection, TRUE );
|
|
||||||
gfNPCCircularDistLimit = FALSE;
|
|
||||||
|
|
||||||
// First calculate APs and validate...
|
|
||||||
sAPCost = AP_TALK;
|
|
||||||
//sAPCost += UIPlotPath( pSoldier, sGoodGridNo, NO_COPYROUTE, FALSE, TEMPORARY, (UINT16)pSoldier->usUIMovementMode, NOT_STEALTH, FORWARD, pSoldier->bActionPoints );
|
|
||||||
|
|
||||||
// Check AP cost...
|
|
||||||
if ( !EnoughPoints( pSoldier, sAPCost, 0, TRUE ) )
|
|
||||||
{
|
{
|
||||||
return( FALSE );
|
return( FALSE );
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// First get an adjacent gridno....
|
||||||
|
sActionGridNo = FindAdjacentGridEx( pSoldier, pTSoldier->sGridNo, &ubDirection, NULL, FALSE, TRUE );
|
||||||
|
|
||||||
// Now walkup to talk....
|
if ( sActionGridNo == -1 )
|
||||||
pSoldier->ubPendingAction = MERC_TALK;
|
{
|
||||||
pSoldier->uiPendingActionData1 = pTSoldier->ubID;
|
ScreenMsg( FONT_MCOLOR_LTYELLOW, MSG_UI_FEEDBACK, TacticalStr[ NO_PATH ] );
|
||||||
pSoldier->ubPendingActionAnimCount = 0;
|
return( FALSE );
|
||||||
|
}
|
||||||
|
|
||||||
// WALK UP TO DEST FIRST
|
if ( UIPlotPath( pSoldier, sActionGridNo, NO_COPYROUTE, FALSE, TEMPORARY, (UINT16)pSoldier->usUIMovementMode, NOT_STEALTH, FORWARD, pSoldier->bActionPoints ) == 0 )
|
||||||
EVENT_InternalGetNewSoldierPath( pSoldier, sGoodGridNo, pSoldier->usUIMovementMode , TRUE , pSoldier->fNoAPToFinishMove );
|
{
|
||||||
|
ScreenMsg( FONT_MCOLOR_LTYELLOW, MSG_UI_FEEDBACK, TacticalStr[ NO_PATH ] );
|
||||||
|
return( FALSE );
|
||||||
|
}
|
||||||
|
|
||||||
return( FALSE );
|
// Walk up and talk to buddy....
|
||||||
|
gfNPCCircularDistLimit = TRUE;
|
||||||
|
sGoodGridNo = FindGridNoFromSweetSpotWithStructData( pSoldier, pSoldier->usUIMovementMode, pTSoldier->sGridNo, (NPC_TALK_RADIUS-1), &ubNewDirection, TRUE );
|
||||||
|
gfNPCCircularDistLimit = FALSE;
|
||||||
|
|
||||||
|
// First calculate APs and validate...
|
||||||
|
sAPCost = AP_TALK;
|
||||||
|
//sAPCost += UIPlotPath( pSoldier, sGoodGridNo, NO_COPYROUTE, FALSE, TEMPORARY, (UINT16)pSoldier->usUIMovementMode, NOT_STEALTH, FORWARD, pSoldier->bActionPoints );
|
||||||
|
|
||||||
|
// Check AP cost...
|
||||||
|
if ( !EnoughPoints( pSoldier, sAPCost, 0, TRUE ) )
|
||||||
|
{
|
||||||
|
return( FALSE );
|
||||||
|
}
|
||||||
|
|
||||||
|
// Now walkup to talk....
|
||||||
|
pSoldier->ubPendingAction = MERC_TALK;
|
||||||
|
pSoldier->uiPendingActionData1 = pTSoldier->ubID;
|
||||||
|
pSoldier->ubPendingActionAnimCount = 0;
|
||||||
|
|
||||||
|
// WALK UP TO DEST FIRST
|
||||||
|
EVENT_InternalGetNewSoldierPath( pSoldier, sGoodGridNo, pSoldier->usUIMovementMode , TRUE , pSoldier->fNoAPToFinishMove );
|
||||||
|
|
||||||
|
return( FALSE );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user