mirror of
https://github.com/1dot13/source.git
synced 2026-08-05 14:00:23 +02:00
Initial commit - SVN checkpoint to git branch
This commit is contained in:
@@ -1837,6 +1837,8 @@ BOOLEAN TacticalCopySoldierFromCreateStruct( SOLDIERTYPE *pSoldier, SOLDIERCREAT
|
||||
RebelCommand::ApplyMilitiaBonuses(pSoldier);
|
||||
if ((SOLDIER_CLASS_ENEMY(pSoldier->ubSoldierClass) || pSoldier->ubSoldierClass == SOLDIER_CLASS_BANDIT))
|
||||
RebelCommand::ApplyEnemyPenalties(pSoldier);
|
||||
if (pCreateStruct->bTeam == ENEMY_TEAM && (ENEMYROBOT(pCreateStruct) || ARMED_VEHICLE(pCreateStruct)))
|
||||
RebelCommand::ApplyEnemyMechanicalUnitPenalties(pSoldier);
|
||||
|
||||
// Flugente: enemy roles
|
||||
if ( gGameExternalOptions.fEnemyRoles && gGameExternalOptions.fEnemyOfficers && SOLDIER_CLASS_ENEMY( pSoldier->ubSoldierClass ) )
|
||||
@@ -3223,6 +3225,8 @@ SOLDIERTYPE* TacticalCreateEnemyTank()
|
||||
// Flugente: why would a vehicle's armour depend on game progress? Always give them 100 HP
|
||||
pSoldier->stats.bLifeMax = 100;
|
||||
pSoldier->stats.bLife = pSoldier->stats.bLifeMax;
|
||||
|
||||
RebelCommand::ApplyEnemyMechanicalUnitPenalties(pSoldier);
|
||||
}
|
||||
|
||||
return( pSoldier );
|
||||
@@ -3263,6 +3267,8 @@ SOLDIERTYPE* TacticalCreateEnemyJeep( )
|
||||
// Flugente: why would a vehicle's armour depend on game progress? Always give them 100 HP
|
||||
pSoldier->stats.bLifeMax = 100;
|
||||
pSoldier->stats.bLife = pSoldier->stats.bLifeMax;
|
||||
|
||||
RebelCommand::ApplyEnemyMechanicalUnitPenalties(pSoldier);
|
||||
}
|
||||
|
||||
return(pSoldier);
|
||||
@@ -3303,6 +3309,8 @@ SOLDIERTYPE* TacticalCreateEnemyRobot()
|
||||
|
||||
pSoldier->stats.bLifeMax = 80;
|
||||
pSoldier->stats.bLife = pSoldier->stats.bLifeMax;
|
||||
|
||||
RebelCommand::ApplyEnemyMechanicalUnitPenalties(pSoldier);
|
||||
}
|
||||
|
||||
return(pSoldier);
|
||||
|
||||
Reference in New Issue
Block a user