mirror of
https://github.com/1dot13/source.git
synced 2026-08-05 14:00:23 +02:00
- new Item_Settings.ini modifiers for weapon class specific range
- renamed weapon overheating modifiers to get a common naming scheme - added weapon overheating modifiers for launchers - renamed TURNING_FROM_PRONE_FOR_PUNCH_OR_STUB to TURNING_FROM_PRONE_FOR_PUNCH_OR_STAB for search reasons git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6469 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
+15
-5
@@ -1458,7 +1458,9 @@ FLOAT GetGunOverheatDamagePercentage( FLOAT usTemperature, UINT16 usIndx )
|
||||
FLOAT damagethreshold = Weapon[Item[ usIndx ].ubClassIndex].usOverheatingDamageThreshold;
|
||||
|
||||
if ( Item[usIndx].usItemClass & IC_GUN )
|
||||
damagethreshold *= gItemSettings.fOverheatDamageThresholdModifier[Weapon[Item[ usIndx ].uiIndex].ubWeaponType];
|
||||
damagethreshold *= gItemSettings.fOverheatDamageThresholdModifierGun[Weapon[Item[ usIndx ].uiIndex].ubWeaponType];
|
||||
else if ( Item[usIndx].usItemClass & IC_LAUNCHER )
|
||||
damagethreshold *= gItemSettings.fOverheatDamageThresholdModifierLauncher;
|
||||
|
||||
return usTemperature/ damagethreshold ;
|
||||
}
|
||||
@@ -1469,7 +1471,9 @@ FLOAT GetGunOverheatJamPercentage( FLOAT usTemperature, UINT16 usIndx )
|
||||
FLOAT jamthreshold = Weapon[Item[ usIndx ].ubClassIndex].usOverheatingJamThreshold;
|
||||
|
||||
if ( Item[usIndx].usItemClass & IC_GUN )
|
||||
jamthreshold *= gItemSettings.fOverheatJamThresholdModifier[Weapon[Item[ usIndx ].uiIndex].ubWeaponType];
|
||||
jamthreshold *= gItemSettings.fOverheatJamThresholdModifierGun[Weapon[Item[ usIndx ].uiIndex].ubWeaponType];
|
||||
else if ( Item[usIndx].usItemClass & IC_LAUNCHER )
|
||||
jamthreshold *= gItemSettings.fOverheatJamThresholdModifierLauncher;
|
||||
|
||||
return usTemperature/ jamthreshold ;
|
||||
}
|
||||
@@ -12078,7 +12082,9 @@ FLOAT GetSingleShotTemperature( OBJECTTYPE *pObj )
|
||||
singleshottemperature = Weapon[ pObj->usItem ].usOverheatingSingleShotTemperature;
|
||||
|
||||
if ( Item[pObj->usItem].usItemClass & IC_GUN )
|
||||
singleshottemperature *= gItemSettings.fOverheatTemperatureModifier[ Weapon[ pObj->usItem ].ubWeaponType ];
|
||||
singleshottemperature *= gItemSettings.fOverheatTemperatureModifierGun[ Weapon[ pObj->usItem ].ubWeaponType ];
|
||||
else if ( Item[pObj->usItem].usItemClass & IC_LAUNCHER )
|
||||
singleshottemperature *= gItemSettings.fOverheatTemperatureModifierLauncher;
|
||||
|
||||
// determine modificator according to attachments
|
||||
FLOAT modificator = 1.0f + GetTemperatureModifier(pObj);
|
||||
@@ -12147,7 +12153,9 @@ FLOAT GetOverheatJamThreshold( OBJECTTYPE *pObj )
|
||||
jamthreshold = Weapon[ pObj->usItem ].usOverheatingJamThreshold;
|
||||
|
||||
if ( Item[pObj->usItem].usItemClass & IC_GUN )
|
||||
jamthreshold *= gItemSettings.fOverheatJamThresholdModifier[ Weapon[ pObj->usItem ].ubWeaponType ];
|
||||
jamthreshold *= gItemSettings.fOverheatJamThresholdModifierGun[ Weapon[ pObj->usItem ].ubWeaponType ];
|
||||
else if ( Item[pObj->usItem].usItemClass & IC_LAUNCHER )
|
||||
jamthreshold *= gItemSettings.fOverheatJamThresholdModifierLauncher;
|
||||
|
||||
// determine modificator according to attachments
|
||||
FLOAT modificator = 1.0f + GetOverheatJamThresholdModifier(pObj);
|
||||
@@ -12184,7 +12192,9 @@ FLOAT GetOverheatDamageThreshold( OBJECTTYPE *pObj )
|
||||
damagethreshold = Weapon[ pObj->usItem ].usOverheatingDamageThreshold;
|
||||
|
||||
if ( Item[pObj->usItem].usItemClass & IC_GUN )
|
||||
damagethreshold *= gItemSettings.fOverheatDamageThresholdModifier[ Weapon[ pObj->usItem ].ubWeaponType ];
|
||||
damagethreshold *= gItemSettings.fOverheatDamageThresholdModifierGun[ Weapon[ pObj->usItem ].ubWeaponType ];
|
||||
else if ( Item[pObj->usItem].usItemClass & IC_LAUNCHER )
|
||||
damagethreshold *= gItemSettings.fOverheatDamageThresholdModifierLauncher;
|
||||
|
||||
// determine modificator according to attachments
|
||||
FLOAT modificator = 1.0f + GetOverheatDamageThresholdModifier(pObj);
|
||||
|
||||
Reference in New Issue
Block a user