mirror of
https://github.com/1dot13/source.git
synced 2026-09-02 14:36:06 +02:00
- added new militia control command
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@1020 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
+1
-1
@@ -23,7 +23,7 @@ CHAR16 zVersionLabel[256] = { L"Beta v. 0.98" };
|
|||||||
#else
|
#else
|
||||||
|
|
||||||
//RELEASE BUILD VERSION
|
//RELEASE BUILD VERSION
|
||||||
CHAR16 zVersionLabel[256] = { L"Release v1.13.933" };
|
CHAR16 zVersionLabel[256] = { L"Release v1.13.1020" };
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
+3
-5
@@ -43,10 +43,9 @@
|
|||||||
<Tool
|
<Tool
|
||||||
Name="VCLinkerTool"
|
Name="VCLinkerTool"
|
||||||
AdditionalDependencies="libexpatMT.lib mss32.lib winmm.lib smackw32.lib fmodvc.lib lua51.lib"
|
AdditionalDependencies="libexpatMT.lib mss32.lib winmm.lib smackw32.lib fmodvc.lib lua51.lib"
|
||||||
OutputFile="C:\Games\Jagged Alliance 2\ja2_debug_933_en.exe"
|
OutputFile="C:\Games\Jagged Alliance 2\ja2_debug_1020_en.exe"
|
||||||
LinkIncremental="2"
|
LinkIncremental="2"
|
||||||
SuppressStartupBanner="TRUE"
|
SuppressStartupBanner="TRUE"
|
||||||
AdditionalLibraryDirectories="".\..\..\Standard Gaming Platform\""
|
|
||||||
IgnoreDefaultLibraryNames="libcmt"
|
IgnoreDefaultLibraryNames="libcmt"
|
||||||
GenerateDebugInformation="TRUE"
|
GenerateDebugInformation="TRUE"
|
||||||
ProgramDatabaseFile=".\Debug/ja2_cvs.pdb"
|
ProgramDatabaseFile=".\Debug/ja2_cvs.pdb"
|
||||||
@@ -545,11 +544,10 @@
|
|||||||
Name="VCCustomBuildTool"/>
|
Name="VCCustomBuildTool"/>
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCLinkerTool"
|
Name="VCLinkerTool"
|
||||||
AdditionalDependencies="libexpatMT.lib winmm.lib smackw32.lib mss32.lib fmodvc.lib lua51_vs2003.lib"
|
AdditionalDependencies="libexpatMT.lib winmm.lib smackw32.lib mss32.lib fmodvc.lib lua51.lib"
|
||||||
OutputFile="C:\games\Jagged Alliance 2\JA2 v1.13.933_EN.exe"
|
OutputFile="D:\games\Jagged Alliance 2 v1.13\JA2 v1.13.1020_EN.exe"
|
||||||
LinkIncremental="1"
|
LinkIncremental="1"
|
||||||
SuppressStartupBanner="TRUE"
|
SuppressStartupBanner="TRUE"
|
||||||
AdditionalLibraryDirectories=".\..\..\Standard Gaming Platform\"
|
|
||||||
IgnoreDefaultLibraryNames=""
|
IgnoreDefaultLibraryNames=""
|
||||||
GenerateMapFile="TRUE"
|
GenerateMapFile="TRUE"
|
||||||
MapFileName=".\Release/ja2_cvs.map"
|
MapFileName=".\Release/ja2_cvs.map"
|
||||||
|
|||||||
@@ -65,6 +65,7 @@ enum{
|
|||||||
MILCON_MENU_ALL_HOLD,
|
MILCON_MENU_ALL_HOLD,
|
||||||
MILCON_MENU_ALL_RETREAT,
|
MILCON_MENU_ALL_RETREAT,
|
||||||
MILCON_MENU_ALL_COMETOME,
|
MILCON_MENU_ALL_COMETOME,
|
||||||
|
MILCON_MENU_ALL_SPREAD,
|
||||||
MILCON_MENU_ALL_GETDOWN,
|
MILCON_MENU_ALL_GETDOWN,
|
||||||
MILCON_MENU_ALL_TAKE_COVER,
|
MILCON_MENU_ALL_TAKE_COVER,
|
||||||
//MILCON_MENU_ALL_TAKE_ITEMS,
|
//MILCON_MENU_ALL_TAKE_ITEMS,
|
||||||
|
|||||||
@@ -963,6 +963,7 @@ void HandleShadingOfLinesForMilitiaControlMenu( void )
|
|||||||
UnShadeStringInBox( ghMilitiaControlBox, MILCON_MENU_ALL_HOLD );
|
UnShadeStringInBox( ghMilitiaControlBox, MILCON_MENU_ALL_HOLD );
|
||||||
UnShadeStringInBox( ghMilitiaControlBox, MILCON_MENU_ALL_RETREAT );
|
UnShadeStringInBox( ghMilitiaControlBox, MILCON_MENU_ALL_RETREAT );
|
||||||
UnShadeStringInBox( ghMilitiaControlBox, MILCON_MENU_ALL_COMETOME );
|
UnShadeStringInBox( ghMilitiaControlBox, MILCON_MENU_ALL_COMETOME );
|
||||||
|
UnShadeStringInBox( ghMilitiaControlBox, MILCON_MENU_ALL_SPREAD );
|
||||||
UnShadeStringInBox( ghMilitiaControlBox, MILCON_MENU_ALL_GETDOWN );
|
UnShadeStringInBox( ghMilitiaControlBox, MILCON_MENU_ALL_GETDOWN );
|
||||||
UnShadeStringInBox( ghMilitiaControlBox, MILCON_MENU_ALL_TAKE_COVER );
|
UnShadeStringInBox( ghMilitiaControlBox, MILCON_MENU_ALL_TAKE_COVER );
|
||||||
//UnShadeStringInBox( ghMilitiaControlBox, MILCON_MENU_ALL_TAKE_ITEMS );
|
//UnShadeStringInBox( ghMilitiaControlBox, MILCON_MENU_ALL_TAKE_ITEMS );
|
||||||
@@ -973,6 +974,7 @@ void HandleShadingOfLinesForMilitiaControlMenu( void )
|
|||||||
ShadeStringInBox( ghMilitiaControlBox, MILCON_MENU_ALL_HOLD );
|
ShadeStringInBox( ghMilitiaControlBox, MILCON_MENU_ALL_HOLD );
|
||||||
ShadeStringInBox( ghMilitiaControlBox, MILCON_MENU_ALL_RETREAT );
|
ShadeStringInBox( ghMilitiaControlBox, MILCON_MENU_ALL_RETREAT );
|
||||||
ShadeStringInBox( ghMilitiaControlBox, MILCON_MENU_ALL_COMETOME );
|
ShadeStringInBox( ghMilitiaControlBox, MILCON_MENU_ALL_COMETOME );
|
||||||
|
ShadeStringInBox( ghMilitiaControlBox, MILCON_MENU_ALL_SPREAD );
|
||||||
ShadeStringInBox( ghMilitiaControlBox, MILCON_MENU_ALL_GETDOWN );
|
ShadeStringInBox( ghMilitiaControlBox, MILCON_MENU_ALL_GETDOWN );
|
||||||
ShadeStringInBox( ghMilitiaControlBox, MILCON_MENU_ALL_TAKE_COVER );
|
ShadeStringInBox( ghMilitiaControlBox, MILCON_MENU_ALL_TAKE_COVER );
|
||||||
//ShadeStringInBox( ghMilitiaControlBox, MILCON_MENU_ALL_TAKE_ITEMS );
|
//ShadeStringInBox( ghMilitiaControlBox, MILCON_MENU_ALL_TAKE_ITEMS );
|
||||||
@@ -1590,6 +1592,59 @@ void MilitiaControlMenuBtnCallBack( MOUSE_REGION * pRegion, INT32 iReason )
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
||||||
|
case( MILCON_MENU_ALL_SPREAD ):
|
||||||
|
{
|
||||||
|
UINT8 cnt;
|
||||||
|
INT16 sActionGridNo;
|
||||||
|
SOLDIERTYPE *pTeamSoldier;
|
||||||
|
|
||||||
|
cnt = gTacticalStatus.Team[ MILITIA_TEAM ].bFirstID;
|
||||||
|
|
||||||
|
for ( pTeamSoldier = MercPtrs[ cnt ]; cnt <= gTacticalStatus.Team[ MILITIA_TEAM ].bLastID; cnt++, pTeamSoldier++)
|
||||||
|
{
|
||||||
|
if ( (pTeamSoldier->bActive) && (pTeamSoldier->bInSector) && (pTeamSoldier->bLife >= OKLIFE) )
|
||||||
|
{
|
||||||
|
|
||||||
|
// See if we can get there
|
||||||
|
sActionGridNo = RandDestWithinRange( pTeamSoldier );
|
||||||
|
if ( sActionGridNo != -1 )
|
||||||
|
{
|
||||||
|
// SEND PENDING ACTION
|
||||||
|
pTeamSoldier->sPendingActionData2 = sActionGridNo;
|
||||||
|
//pTeamSoldier->bPendingActionData3 = ubDirection;
|
||||||
|
pTeamSoldier->ubPendingActionAnimCount = 0;
|
||||||
|
pTeamSoldier->usUIMovementMode = RUNNING;
|
||||||
|
|
||||||
|
// CHECK IF WE ARE AT THIS GRIDNO NOW
|
||||||
|
if ( pTeamSoldier->sGridNo != sActionGridNo )
|
||||||
|
{
|
||||||
|
// WALK UP TO DEST FIRST
|
||||||
|
SendGetNewSoldierPathEvent( pTeamSoldier, sActionGridNo, pTeamSoldier->usUIMovementMode );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( GetSoldier( &pSoldier, gusSelectedSoldier ) )
|
||||||
|
{
|
||||||
|
DeductPoints( pSoldier, AP_TALK, 0 );
|
||||||
|
StatChange( pSoldier, LDRAMT, 1, FALSE );
|
||||||
|
}
|
||||||
|
|
||||||
|
// stop showing menu
|
||||||
|
fShowMilitiaControlMenu = FALSE;
|
||||||
|
giAssignHighLine = -1;
|
||||||
|
|
||||||
|
// set dirty flag
|
||||||
|
fTeamPanelDirty = TRUE;
|
||||||
|
fMapScreenBottomDirty = TRUE;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
case( MILCON_MENU_ALL_GETDOWN ):
|
case( MILCON_MENU_ALL_GETDOWN ):
|
||||||
{
|
{
|
||||||
UINT8 cnt;
|
UINT8 cnt;
|
||||||
|
|||||||
@@ -627,6 +627,7 @@ STR16 pMilitiaControlMenuStrings[] =
|
|||||||
L"All: Hold Position",
|
L"All: Hold Position",
|
||||||
L"All: Retreat",
|
L"All: Retreat",
|
||||||
L"All: Come to me",
|
L"All: Come to me",
|
||||||
|
L"All: Spread out",
|
||||||
L"All: Get down",
|
L"All: Get down",
|
||||||
L"All: Take cover",
|
L"All: Take cover",
|
||||||
//L"All: Find items",
|
//L"All: Find items",
|
||||||
|
|||||||
@@ -642,6 +642,7 @@ STR16 pMilitiaControlMenuStrings[] =
|
|||||||
L"All: Hold Position",
|
L"All: Hold Position",
|
||||||
L"All: Retreat",
|
L"All: Retreat",
|
||||||
L"All: Come to me",
|
L"All: Come to me",
|
||||||
|
L"All: Spread out",
|
||||||
L"All: Get down",
|
L"All: Get down",
|
||||||
L"All: Take cover",
|
L"All: Take cover",
|
||||||
//L"All: Find items",
|
//L"All: Find items",
|
||||||
|
|||||||
@@ -633,6 +633,7 @@ STR16 pMilitiaControlMenuStrings[] =
|
|||||||
L"All: Hold Position",
|
L"All: Hold Position",
|
||||||
L"All: Retreat",
|
L"All: Retreat",
|
||||||
L"All: Come to me",
|
L"All: Come to me",
|
||||||
|
L"All: Spread out",
|
||||||
L"All: Get down",
|
L"All: Get down",
|
||||||
L"All: Take cover",
|
L"All: Take cover",
|
||||||
//L"All: Find items",
|
//L"All: Find items",
|
||||||
|
|||||||
@@ -626,6 +626,7 @@ STR16 pMilitiaControlMenuStrings[] =
|
|||||||
L"All: Hold Position",
|
L"All: Hold Position",
|
||||||
L"All: Retreat",
|
L"All: Retreat",
|
||||||
L"All: Come to me",
|
L"All: Come to me",
|
||||||
|
L"All: Spread out",
|
||||||
L"All: Get down",
|
L"All: Get down",
|
||||||
L"All: Take cover",
|
L"All: Take cover",
|
||||||
//L"All: Find items",
|
//L"All: Find items",
|
||||||
|
|||||||
@@ -627,6 +627,7 @@ STR16 pMilitiaControlMenuStrings[] =
|
|||||||
L"All: Hold Position",
|
L"All: Hold Position",
|
||||||
L"All: Retreat",
|
L"All: Retreat",
|
||||||
L"All: Come to me",
|
L"All: Come to me",
|
||||||
|
L"All: Spread out",
|
||||||
L"All: Get down",
|
L"All: Get down",
|
||||||
L"All: Take cover",
|
L"All: Take cover",
|
||||||
//L"All: Find items",
|
//L"All: Find items",
|
||||||
|
|||||||
@@ -637,6 +637,7 @@ STR16 pMilitiaControlMenuStrings[] =
|
|||||||
L"All: Hold Position",
|
L"All: Hold Position",
|
||||||
L"All: Retreat",
|
L"All: Retreat",
|
||||||
L"All: Come to me",
|
L"All: Come to me",
|
||||||
|
L"All: Spread out",
|
||||||
L"All: Get down",
|
L"All: Get down",
|
||||||
L"All: Take cover",
|
L"All: Take cover",
|
||||||
//L"All: Find items",
|
//L"All: Find items",
|
||||||
|
|||||||
Reference in New Issue
Block a user