New modifiers for Item Properties

The new Item_Settings.ini is there to host modifiers for item properties in the different XML files. For now it is only used for the Weapon Overheating feature to adjust parameters based on gun class.
It uses the new struct gItemSettings which is populated in function void LoadItemSettings() on game start.

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6463 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
silversurfer
2013-10-02 12:40:08 +00:00
parent bc7b3e2d62
commit cc51c13529
6 changed files with 95 additions and 1 deletions
+14
View File
@@ -1739,8 +1739,21 @@ typedef struct
}MOD_SETTINGS;
// silversurfer: item property modifiers
typedef struct
{
// weapon overheating modifiers for the different gun classes
FLOAT fOverheatJamThresholdModifier[9];
FLOAT fOverheatDamageThresholdModifier[9];
FLOAT fOverheatTemperatureModifier[9];
FLOAT fOverheatCooldownModifier[9];
}ITEM_SETTINGS;
extern MOD_SETTINGS gModSettings;
extern ITEM_SETTINGS gItemSettings;
//This structure will contain general Ja2 settings NOT individual game settings.
extern GAME_SETTINGS gGameSettings;
@@ -1764,6 +1777,7 @@ BOOLEAN LoadGameSettings();
void LoadGameExternalOptions();
void LoadSkillTraitsExternalSettings(); // SANDRO - added this one
void LoadModSettings();
void LoadItemSettings(); // silversurfer: reads item property modifiers
void LoadGameAPBPConstants();
// HEADROCK HAM 4: Read CTH/Shooting coefficients from file
void LoadCTHConstants();