*********************************************************

*	2006/05/01					*
*	Little Alien					*
*	Developed in VS 2003				*
*********************************************************

Source:
- Added militia control in tactical (can be turned on/off in ja2.ini file)
- Aiming/readying gun: show in red points needed for readying gun

Data:
- Added new ja2.ini



git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@46 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
lalien
2006-05-01 20:59:34 +00:00
parent dc2b482a8f
commit cce975b6c1
16 changed files with 2454 additions and 205 deletions
+61 -6
View File
@@ -7,14 +7,35 @@
#define GAME_INI_FILE "\\Ja2.ini"
BOOLEAN gfStretch = FALSE;
BOOLEAN gfStretchWinGDI = FALSE;
BOOLEAN gfVSync = FALSE;
#define SET_SYSTEM "JA2 System Settings"
#define SET_RESOLUTION "JA2 Screen Resolution Settings"
#define SET_RAIN "JA2 Rain Settings"
#define SET_THUNDER "JA2 Thunder Settings"
#define SET_TURN_SPEED "JA2 Turnbased Animation Speed Settings"
#define SET_STRATEGIC "JA2 Strategic Settings"
#define SET_SPECIAL "JA2 Special Settings"
#define SET_TACTICAL "JA2 Tactical Settings"
#define SET_TACTICAL_AI "JA2 Tactical AI Settings"
#define SET_GRAPHIC "JA2 Graphic Settings"
#define SET_GAMEPLAY "JA2 Gameplay Settings"
UINT8 gubDeadLockDelay = 15;
UINT8 ubStraightSightRange = 13;
BOOLEAN gfVSync = FALSE;
BOOLEAN gfAllowRain = FALSE;
UINT16 gusRainChancePerDay = 100, gusRainMinLength = 60, gusRainMaxLength = 180;
extern UINT8 gubPlayerTurnSpeedUpFactor;
extern UINT8 gubEnemyTurnSpeedUpFactor;
extern UINT8 gubCreatureTurnSpeedUpFactor;
extern UINT8 gubMilitiaTurnSpeedUpFactor;
extern UINT8 gubCivTurnSpeedUpFactor;
extern UINT32 guiMinLightningInterval;
extern UINT32 guiMaxLightningInterval;
extern UINT32 guiMinDLInterval;
@@ -24,6 +45,14 @@ extern UINT32 guiChanceToDoLightningBetweenTurns;
extern UINT32 guiMaxRainDrops;
BOOLEAN gfEnableEmergencyButton_SkipStrategicEvents = FALSE;
BOOLEAN gfAllowMilitiaGroups = TRUE;
BOOLEAN gfAllowReinforcments = TRUE;
BOOLEAN gfAllowReinforcmentsOnlyInCity = FALSE;
UINT32 guiBaseQueenPoolIncrement = 60;
BOOLEAN fAllowTacticalMilitiaCommand = TRUE;
typedef struct
{
CHAR8* strParamName;
@@ -32,8 +61,6 @@ typedef struct
UINT8 ubVarType;
}TSetting;
#define SET_RAIN "JA2 Rain Settings"
#define SET_THUNDER "JA2 Thunder Settings"
enum
{
@@ -46,8 +73,36 @@ enum
VT_BOOLEAN
};
TSetting gpSettings[] = {
TSetting gpSettings[] =
{
{"fVSync", SET_RESOLUTION, &gfVSync, VT_BOOLEAN},
{"PlayerTurnSpeedUpFactor", SET_TURN_SPEED, (LPVOID)&gubPlayerTurnSpeedUpFactor, VT_UINT8},
{"EnemyTurnSpeedUpFactor", SET_TURN_SPEED, (LPVOID)&gubEnemyTurnSpeedUpFactor, VT_UINT8},
{"CreatureTurnSpeedUpFactor", SET_TURN_SPEED, (LPVOID)&gubCreatureTurnSpeedUpFactor, VT_UINT8},
{"MilitiaTurnSpeedUpFactor", SET_TURN_SPEED, (LPVOID)&gubMilitiaTurnSpeedUpFactor, VT_UINT8},
{"CivTurnSpeedUpFactor", SET_TURN_SPEED, (LPVOID)&gubCivTurnSpeedUpFactor, VT_UINT8},
// Militia Settings
{"AllowTacticalMilitiaCommand", SET_TACTICAL, &fAllowTacticalMilitiaCommand, VT_BOOLEAN},
{"AllowMilitiaMobileGroups", SET_GAMEPLAY, &gfAllowMilitiaGroups, VT_BOOLEAN},
{"AllowReinforcments", SET_GAMEPLAY, &gfAllowReinforcments, VT_BOOLEAN},
{"AllowReinforcmentsOnlyInCities", SET_GAMEPLAY, &gfAllowReinforcmentsOnlyInCity, VT_BOOLEAN},
{"QueenPoolIncrementPerDifficultyLevel", SET_GAMEPLAY, &guiBaseQueenPoolIncrement, VT_UINT32},
//Sight range
{"BaseSightRange", SET_TACTICAL, &ubStraightSightRange, VT_UINT8},
// Maximal search distance for grenades
//{"MaxTossSearchDist", SET_TACTICAL_AI, &guiMaxTossSearchDist, VT_UINT32},
//{"fEnableEmergencyButton_NumLock_ToSkipStrategicEvents", SET_SPECIAL, &gfEnableEmergencyButton_SkipStrategicEvents, VT_BOOLEAN},
// Rain settings
{"ALLOW_RAIN", SET_RAIN, &gfAllowRain, VT_BOOLEAN},
{"RAIN_CHANCE_PER_DAY", SET_RAIN, &gusRainChancePerDay, VT_UINT16},