mirror of
https://github.com/1dot13/source.git
synced 2026-09-09 14:46:05 +02:00
Externalised ini values: CORPSE_DELAY_UNTIL_ROTTING and CORPSE_DELAY_UNTIL_DONE_ROTTING control when a corpse rots and vanishes.
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7981 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
+6
-4
@@ -1644,8 +1644,7 @@ void LoadGameExternalOptions()
|
|||||||
gGameExternalOptions.fDisplayOverheatJamPercentage = iniReader.ReadBoolean("Tactical Weapon Overheating Settings","OVERHEATING_DISPLAY_JAMPERCENTAGE",TRUE);
|
gGameExternalOptions.fDisplayOverheatJamPercentage = iniReader.ReadBoolean("Tactical Weapon Overheating Settings","OVERHEATING_DISPLAY_JAMPERCENTAGE",TRUE);
|
||||||
gGameExternalOptions.ubOverheatThermometerRedOffset = iniReader.ReadInteger("Tactical Weapon Overheating Settings","OVERHEATING_DISPLAY_THERMOMETER_RED_OFFSET", 100, 0, 255);
|
gGameExternalOptions.ubOverheatThermometerRedOffset = iniReader.ReadInteger("Tactical Weapon Overheating Settings","OVERHEATING_DISPLAY_THERMOMETER_RED_OFFSET", 100, 0, 255);
|
||||||
gGameExternalOptions.iCooldownModificatorLonelyBarrel = iniReader.ReadFloat ("Tactical Weapon Overheating Settings","OVERHEATING_COOLDOWN_MODIFICATOR_LONELYBARREL", 1.15f, 1.0f, 10.0f);
|
gGameExternalOptions.iCooldownModificatorLonelyBarrel = iniReader.ReadFloat ("Tactical Weapon Overheating Settings","OVERHEATING_COOLDOWN_MODIFICATOR_LONELYBARREL", 1.15f, 1.0f, 10.0f);
|
||||||
|
|
||||||
#ifdef ENABLE_ZOMBIES
|
|
||||||
//################# Tactical Zombie Settings ##################
|
//################# Tactical Zombie Settings ##################
|
||||||
gGameExternalOptions.sZombieRiseBehaviour = iniReader.ReadInteger("Tactical Zombie Settings", "ZOMBIE_RISE_BEHAVIOUR", 0, 0, 3);
|
gGameExternalOptions.sZombieRiseBehaviour = iniReader.ReadInteger("Tactical Zombie Settings", "ZOMBIE_RISE_BEHAVIOUR", 0, 0, 3);
|
||||||
gGameExternalOptions.fZombieSpawnWaves = iniReader.ReadInteger("Tactical Zombie Settings", "ZOMBIE_SPAWN_WAVES", FALSE);
|
gGameExternalOptions.fZombieSpawnWaves = iniReader.ReadInteger("Tactical Zombie Settings", "ZOMBIE_SPAWN_WAVES", FALSE);
|
||||||
@@ -1659,8 +1658,11 @@ void LoadGameExternalOptions()
|
|||||||
gGameExternalOptions.sZombieDifficultyLevel = iniReader.ReadInteger("Tactical Zombie Settings", "ZOMBIE_DIFFICULTY_LEVEL", 2, 1, 4);
|
gGameExternalOptions.sZombieDifficultyLevel = iniReader.ReadInteger("Tactical Zombie Settings", "ZOMBIE_DIFFICULTY_LEVEL", 2, 1, 4);
|
||||||
gGameExternalOptions.fZombieRiseWithArmour = iniReader.ReadBoolean("Tactical Zombie Settings", "ZOMBIE_RISE_WITH_ARMOUR", TRUE);
|
gGameExternalOptions.fZombieRiseWithArmour = iniReader.ReadBoolean("Tactical Zombie Settings", "ZOMBIE_RISE_WITH_ARMOUR", TRUE);
|
||||||
gGameExternalOptions.fZombieOnlyHeadShotsPermanentlyKill = iniReader.ReadBoolean("Tactical Zombie Settings", "ZOMBIE_ONLY_HEADSHOTS_PERMANENTLY_KILL", TRUE);
|
gGameExternalOptions.fZombieOnlyHeadShotsPermanentlyKill = iniReader.ReadBoolean("Tactical Zombie Settings", "ZOMBIE_ONLY_HEADSHOTS_PERMANENTLY_KILL", TRUE);
|
||||||
#endif
|
|
||||||
|
//################# Corpse Settings ##################
|
||||||
|
gGameExternalOptions.usCorpseDelayUntilRotting = iniReader.ReadInteger( "Corpse Settings", "CORPSE_DELAY_UNTIL_ROTTING", NUM_SEC_IN_DAY / 60, 720, 7 * NUM_SEC_IN_DAY / 60 );
|
||||||
|
gGameExternalOptions.usCorpseDelayUntilDoneRotting = iniReader.ReadInteger( "Corpse Settings", "CORPSE_DELAY_UNTIL_DONE_ROTTING", 3 * NUM_SEC_IN_DAY / 60, NUM_SEC_IN_DAY / 60, 14 * NUM_SEC_IN_DAY / 60 );
|
||||||
|
|
||||||
//################# Tactical Fortification Settings ##################
|
//################# Tactical Fortification Settings ##################
|
||||||
gGameExternalOptions.fFortificationAllowInHostileSector = iniReader.ReadBoolean("Tactical Fortification Settings", "FORTIFICATION_ALLOW_IN_HOSTILE_SECTOR", FALSE);
|
gGameExternalOptions.fFortificationAllowInHostileSector = iniReader.ReadBoolean("Tactical Fortification Settings", "FORTIFICATION_ALLOW_IN_HOSTILE_SECTOR", FALSE);
|
||||||
gGameExternalOptions.fRoofCollapse = iniReader.ReadBoolean( "Tactical Fortification Settings", "ROOF_COLLAPSE", TRUE );
|
gGameExternalOptions.fRoofCollapse = iniReader.ReadBoolean( "Tactical Fortification Settings", "ROOF_COLLAPSE", TRUE );
|
||||||
|
|||||||
+4
-2
@@ -379,7 +379,6 @@ typedef struct
|
|||||||
//Video settings
|
//Video settings
|
||||||
BOOLEAN gfVSync;
|
BOOLEAN gfVSync;
|
||||||
|
|
||||||
#ifdef ENABLE_ZOMBIES
|
|
||||||
// Flugente: zombie settings
|
// Flugente: zombie settings
|
||||||
INT8 sZombieRiseBehaviour;
|
INT8 sZombieRiseBehaviour;
|
||||||
BOOLEAN fZombieSpawnWaves;
|
BOOLEAN fZombieSpawnWaves;
|
||||||
@@ -393,7 +392,10 @@ typedef struct
|
|||||||
INT8 sZombieDifficultyLevel;
|
INT8 sZombieDifficultyLevel;
|
||||||
BOOLEAN fZombieRiseWithArmour;
|
BOOLEAN fZombieRiseWithArmour;
|
||||||
BOOLEAN fZombieOnlyHeadShotsPermanentlyKill;
|
BOOLEAN fZombieOnlyHeadShotsPermanentlyKill;
|
||||||
#endif
|
|
||||||
|
// Flugente: corpse settings
|
||||||
|
UINT32 usCorpseDelayUntilRotting;
|
||||||
|
UINT32 usCorpseDelayUntilDoneRotting;
|
||||||
|
|
||||||
// Flugente: fortification settings
|
// Flugente: fortification settings
|
||||||
BOOLEAN fFortificationAllowInHostileSector;
|
BOOLEAN fFortificationAllowInHostileSector;
|
||||||
|
|||||||
+519
-568
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user