-added option to choose whether extra aim levels apply to rifles only

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@161 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
MaddMugsy
2006-06-03 17:10:10 +00:00
parent b9c5f45721
commit 37ad617bda
7 changed files with 24 additions and 4 deletions
+2 -1
View File
@@ -244,8 +244,9 @@ void InitGameSettings()
gGameSettings.fOptions[ TOPTION_CTH_CURSOR ] = TRUE;
//Madd:
gGameSettings.fOptions[ TOPTION_GL_BURST_CURSOR ] = TRUE;
gGameSettings.fOptions[ TOPTION_GL_HIGH_ANGLE ] = FALSE;
gGameSettings.fOptions[ TOPTION_DROP_ALL ] = FALSE;
gGameSettings.fOptions[ TOPTION_GL_HIGH_ANGLE ] = FALSE;
gGameSettings.fOptions[ TOPTION_AIM_LEVEL_RESTRICTION ] = TRUE;
// JA2Gold
gGameSettings.fOptions[ TOPTION_MERC_CASTS_LIGHT ] = TRUE;
+1
View File
@@ -44,6 +44,7 @@ enum
TOPTION_GL_BURST_CURSOR,
TOPTION_DROP_ALL,
TOPTION_GL_HIGH_ANGLE,
TOPTION_AIM_LEVEL_RESTRICTION,
NUM_GAME_OPTIONS, //Toggle up this will be able to be Toggled by the player
//These options will NOT be toggable by the Player
+1 -1
View File
@@ -23,7 +23,7 @@ INT16 zVersionLabel[256] = { L"Beta v. 0.98" };
#else
//RELEASE BUILD VERSION
INT16 zVersionLabel[256] = { L"Release v1.13.156" };
INT16 zVersionLabel[256] = { L"Release v1.13.161" };
#endif
+5 -1
View File
@@ -7120,8 +7120,12 @@ UINT8 AllowedAimingLevels(SOLDIERTYPE * pSoldier)
{
UINT8 aimLevels = 4;
OBJECTTYPE obj = pSoldier->inv[pSoldier->ubAttackingHand];
BOOLEAN allowed = TRUE;
if ( ( Weapon[obj.usItem].ubWeaponType == GUN_RIFLE || Weapon[obj.usItem].ubWeaponType == GUN_SN_RIFLE ) && IsScoped( &obj ) )
if ( gGameSettings.fOptions[TOPTION_AIM_LEVEL_RESTRICTION] && Weapon[obj.usItem].ubWeaponType != GUN_RIFLE && Weapon[obj.usItem].ubWeaponType != GUN_SN_RIFLE )
allowed = FALSE;
if ( allowed && IsScoped( &obj ) )
{
if ( GetMinRangeForAimBonus(&obj) >= (UINT8)(gGameExternalOptions.ubStraightSightRange * 0.3) ) // >= 30% of sight range (~4 tiles by default)
{
+3 -1
View File
@@ -3415,6 +3415,7 @@ STR16 zOptionsToggleText[] =
L"GL Burst Uses Burst Cursor",
L"Enemies Drop All Items",
L"High Angle Grenade Launching",
L"Restrict Extra Aim Levels to Rifles",
};
//This is the help text associated with the above toggles.
@@ -3483,7 +3484,8 @@ STR16 zOptionsScreenHelpText[] =
L"When ON, the chance to hit is shown on the cursor.",
L"GL Burst uses burst cursor.",
L"Enemies drop all items on death.",
L"Grenade launchers fire grenades at more vertical angles.",
L"Grenade launchers fire grenades at higher angles.",
L"Aim levels beyond 4 are restricted to rifles and sniper rifles.",
};
+6
View File
@@ -3218,6 +3218,8 @@ STR16 zOptionsToggleText[] =
L"Trefferchance anzeigen",
L"GL Burst verwendet Burst- Cursor",
L"Gegner lassen alles fallen",
L"High Angle Grenade Launching",
L"Restrict Extra Aim Levels to Rifles",
};
//This is the help text associated with the above toggles.
@@ -3286,6 +3288,8 @@ STR16 zOptionsScreenHelpText[] =
L"Die Trefferchance wird über dem Cursor als Balken angezeigt",
L"GL Burst verwendet Burst- Cursor.",
L"Gegner lassen bei ihrem Ableben alle Gegenstände zurück.",
L"Grenade launchers fire grenades at higher angles.",
L"Aim levels beyond 4 are restricted to rifles and sniper rifles.",
};
STR16 gzGIOScreenText[] =
@@ -3488,6 +3492,8 @@ STR16 pMessageStrings[] =
L"Paket in Drassen angekommen.",
L"%s kommt am %d. um ca. %s am Zielort an (Sektor %s).", //first %s is mercs name(OK), next is the sector location and name where they will be arriving in, lastely is the day an the time of arrival !!!7 It should be like this: first one is merc (OK), next is day of arrival (OK) , next is time of the day for ex. 07:00 (not OK, now it is still sector), next should be sector (not OK, now it is still time of the day)
L"Logbuch aktualisiert.",
L"Grenade Launchers - Fire at standard angles",
L"Grenade Launchers - Fire at high angles",
#ifdef JA2BETAVERSION
L"Spiel erfolgreich in Slot End Turn Auto Save gespeichert.",
#endif
+6
View File
@@ -3403,6 +3403,8 @@ STR16 zOptionsToggleText[] =
L"Show Chance to Hit on the cursor",
L"GL Burst Uses Burst Cursor",
L"Enemies Drop All Items",
L"High Angle Grenade Launching",
L"Restrict Extra Aim Levels to Rifles",
};
//This is the help text associated with the above toggles.
@@ -3471,6 +3473,8 @@ STR16 zOptionsScreenHelpText[] =
L"When ON, the chance to hit is shown on the cursor.",
L"GL Burst uses burst cursor.",
L"Enemy drop all items, when he is dead.",
L"Grenade launchers fire grenades at higher angles.",
L"Aim levels beyond 4 are restricted to rifles and sniper rifles.",
};
@@ -3679,6 +3683,8 @@ STR16 pMessageStrings[] =
L"Grenade Bursts - Using Trajectory Cursor (Spread fire disabled)",
L"Drop All Enabled",
L"Drop All Disabled",
L"Grenade Launchers - Fire at standard angles",
L"Grenade Launchers - Fire at high angles",
#ifdef JA2BETAVERSION
L"Èãðà ñîõðàíåíà â ÿ÷åéêó àâòî-ñîõðàíåíèÿ.",
#endif