mirror of
https://github.com/1dot13/source.git
synced 2026-08-05 14:00:23 +02:00
- Externalized 2 breathing values to APBPConstants.ini (by silversurfer)
o With those values you can define the minutes needed to regenerate BP in real-time mode o BP_RT_BREATH_RECOVER_MODIFIER, BP_RT_BREATH_DEDUCT_MODIFIER o see: http://www.ja-galaxy-forum.com/board/ubbthreads.php/topics/322238/Re_Breath_regeneration_is_too_.html#Post322238 git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6177 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
+6
-2
@@ -348,7 +348,9 @@ INT16 TerrainBreathPoints(SOLDIERTYPE * pSoldier, INT32 sGridNo, INT8 bDir, UINT
|
||||
if (!(gTacticalStatus.uiFlags & TURNBASED) || !(gTacticalStatus.uiFlags & INCOMBAT ) )
|
||||
{
|
||||
// ATE: ADJUST FOR RT - MAKE BREATH GO A LITTLE FASTER!
|
||||
iPoints = (INT32)( iPoints * TB_BREATH_DEDUCT_MODIFIER );
|
||||
// silversurfer: now externalized to APBPConstants.ini
|
||||
//iPoints = (INT32)( iPoints * TB_BREATH_DEDUCT_MODIFIER );
|
||||
iPoints = (INT32)( iPoints * APBPConstants[BP_RT_BREATH_DEDUCT_MODIFIER] / 100 );
|
||||
}
|
||||
|
||||
|
||||
@@ -1178,7 +1180,9 @@ void UnusedAPsToBreath( SOLDIERTYPE * pSoldier )
|
||||
|
||||
// Divide by a number to adjust that in realtimer we do not want to recover as
|
||||
// as fast as the TB values do
|
||||
sBreathChange *= TB_BREATH_RECOVER_MODIFIER;
|
||||
// silversurfer: now externalized to APBPConstants.ini
|
||||
//sBreathChange *= TB_BREATH_RECOVER_MODIFIER;
|
||||
sBreathChange = INT16 ( sBreathChange * APBPConstants[BP_RT_BREATH_RECOVER_MODIFIER] / 100 );
|
||||
|
||||
// SANDRO: get BP *cost* for weapon holding (reduce breath gain, or even make it breath loss)
|
||||
if ( gGameExternalOptions.ubEnergyCostForWeaponWeight )
|
||||
|
||||
Reference in New Issue
Block a user