mirror of
https://github.com/1dot13/source.git
synced 2026-09-02 14:36:06 +02:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user