mirror of
https://github.com/1dot13/source.git
synced 2026-08-12 14:10:23 +02:00
*********************************************************
* 2006/05/01 * * Little Alien * * Developed in VS 2003 * ********************************************************* Source: - Added militia control in tactical (can be turned on/off in ja2.ini file) - Aiming/readying gun: show in red points needed for readying gun Data: - Added new ja2.ini git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@46 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -93,6 +93,8 @@ UINT8 gubMilitiaTurnSpeedUpFactor = 1;
|
||||
UINT8 gubCivTurnSpeedUpFactor = 1;
|
||||
//turnspeed
|
||||
|
||||
extern BOOLEAN fAllowTacticalMilitiaCommand; //lal
|
||||
|
||||
extern INT16 DirIncrementer[8];
|
||||
|
||||
#define PALETTEFILENAME "BINARYDATA\\ja2pal.dat"
|
||||
@@ -10755,6 +10757,7 @@ void MercStealFromMerc( SOLDIERTYPE *pSoldier, SOLDIERTYPE *pTarget )
|
||||
}
|
||||
}
|
||||
|
||||
SOLDIERTYPE *pTMilitiaSoldier;
|
||||
BOOLEAN PlayerSoldierStartTalking( SOLDIERTYPE *pSoldier, UINT8 ubTargetID, BOOLEAN fValidate )
|
||||
{
|
||||
INT16 sFacingDir, sXPos, sYPos, sAPCost;
|
||||
@@ -10795,28 +10798,45 @@ BOOLEAN PlayerSoldierStartTalking( SOLDIERTYPE *pSoldier, UINT8 ubTargetID, BOOL
|
||||
// Deduct points from our guy....
|
||||
DeductPoints( pSoldier, sAPCost, 0 );
|
||||
|
||||
ConvertGridNoToXY( pTSoldier->sGridNo, &sXPos, &sYPos );
|
||||
if ( !(gTacticalStatus.uiFlags & INCOMBAT) || (gTacticalStatus.uiFlags & REALTIME) ) //lal
|
||||
{
|
||||
ConvertGridNoToXY( pTSoldier->sGridNo, &sXPos, &sYPos );
|
||||
|
||||
// Get direction from mouse pos
|
||||
sFacingDir = GetDirectionFromXY( sXPos, sYPos, pSoldier );
|
||||
// Get direction from mouse pos
|
||||
sFacingDir = GetDirectionFromXY( sXPos, sYPos, pSoldier );
|
||||
|
||||
// Set our guy facing
|
||||
SendSoldierSetDesiredDirectionEvent( pSoldier, sFacingDir );
|
||||
// Set our guy facing
|
||||
SendSoldierSetDesiredDirectionEvent( pSoldier, sFacingDir );
|
||||
|
||||
// Set NPC facing
|
||||
SendSoldierSetDesiredDirectionEvent( pTSoldier, gOppositeDirection[ sFacingDir ] );
|
||||
|
||||
// Stop our guys...
|
||||
EVENT_StopMerc( pSoldier, pSoldier->sGridNo, pSoldier->bDirection );
|
||||
// Set NPC facing
|
||||
SendSoldierSetDesiredDirectionEvent( pTSoldier, gOppositeDirection[ sFacingDir ] );
|
||||
|
||||
// Stop our guys...
|
||||
EVENT_StopMerc( pSoldier, pSoldier->sGridNo, pSoldier->bDirection );
|
||||
}
|
||||
|
||||
pTMilitiaSoldier = pTSoldier; //lal
|
||||
|
||||
//lal
|
||||
// ATE; Check for normal civs...
|
||||
if ( GetCivType( pTSoldier ) != CIV_TYPE_NA )
|
||||
{
|
||||
StartCivQuote( pTSoldier );
|
||||
return( FALSE );
|
||||
//lal
|
||||
if ( ( pTSoldier->bTeam == MILITIA_TEAM ) && ( fAllowTacticalMilitiaCommand == TRUE ) )
|
||||
{
|
||||
PopupMilitiaControlMenu( pTSoldier );
|
||||
return( FALSE );
|
||||
}
|
||||
else
|
||||
{
|
||||
StartCivQuote( pTSoldier );
|
||||
return( FALSE );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// Are we an EPC that is being escorted?
|
||||
if ( pTSoldier->ubProfile != NO_PROFILE && pTSoldier->ubWhatKindOfMercAmI == MERC_TYPE__EPC )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user