mirror of
https://github.com/1dot13/source.git
synced 2026-09-09 14:46:05 +02:00
If USE_AIMED_BURST and AIMED_BURST_ALTERNATE_KEY are TRUE, then [Alt] + [t] over a target will toggle aiming. This is for people who have no working mousewheel and thus couldn't aim with auto-only weapons.
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6555 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
+3
-2
@@ -1321,8 +1321,9 @@ void LoadGameExternalOptions()
|
|||||||
|
|
||||||
// Use aimed burst
|
// Use aimed burst
|
||||||
gGameExternalOptions.bAimedBurstEnabled = iniReader.ReadBoolean("Tactical Interface Settings","USE_AIMED_BURST",FALSE);
|
gGameExternalOptions.bAimedBurstEnabled = iniReader.ReadBoolean("Tactical Interface Settings","USE_AIMED_BURST",FALSE);
|
||||||
|
gGameExternalOptions.bAimedBurstAlternateKey = iniReader.ReadBoolean("Tactical Interface Settings","AIMED_BURST_ALTERNATE_KEY",FALSE);
|
||||||
// Penalcy for aimed burst
|
|
||||||
|
// Penalty for aimed burst
|
||||||
gGameExternalOptions.uAimedBurstPenalty = iniReader.ReadInteger("Tactical Interface Settings","AIMING_BURST_PENALTY",2, 0, 10);
|
gGameExternalOptions.uAimedBurstPenalty = iniReader.ReadInteger("Tactical Interface Settings","AIMING_BURST_PENALTY",2, 0, 10);
|
||||||
|
|
||||||
// We could see all what can see militia
|
// We could see all what can see militia
|
||||||
|
|||||||
+2
-1
@@ -785,7 +785,8 @@ typedef struct
|
|||||||
INT32 uStaminaHit;
|
INT32 uStaminaHit;
|
||||||
//enable ext mouse key
|
//enable ext mouse key
|
||||||
BOOLEAN bAltAimEnabled;
|
BOOLEAN bAltAimEnabled;
|
||||||
BOOLEAN bAimedBurstEnabled;
|
BOOLEAN bAimedBurstEnabled;
|
||||||
|
BOOLEAN bAimedBurstAlternateKey; // Flugente: some users cannot use the mousewheel and are thus unable to aim auto-only weapons. This solves this by allowing to aim via a key command
|
||||||
INT16 uAimedBurstPenalty;
|
INT16 uAimedBurstPenalty;
|
||||||
BOOLEAN bWeSeeWhatMilitiaSeesAndViceVersa;
|
BOOLEAN bWeSeeWhatMilitiaSeesAndViceVersa;
|
||||||
BOOLEAN bAllowWearSuppressor;
|
BOOLEAN bAllowWearSuppressor;
|
||||||
|
|||||||
@@ -4296,7 +4296,17 @@ void GetKeyboardInput( UINT32 *puiNewEvent )
|
|||||||
|
|
||||||
if( fAlt )
|
if( fAlt )
|
||||||
{
|
{
|
||||||
if ( CHEATER_CHEAT_LEVEL( ) )
|
// Flugente: alternate for people without mousewheel who want to aim auto-only weapons
|
||||||
|
if ( gGameExternalOptions.bAimedBurstEnabled && gGameExternalOptions.bAimedBurstAlternateKey && gCurrentUIMode == CONFIRM_ACTION_MODE )
|
||||||
|
{
|
||||||
|
SOLDIERTYPE * pSoldier;
|
||||||
|
|
||||||
|
if ( GetSoldier( &pSoldier, gusSelectedSoldier ) )
|
||||||
|
{
|
||||||
|
HandleRightClickAdjustCursor( pSoldier, usMapPos );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if ( CHEATER_CHEAT_LEVEL( ) )
|
||||||
{
|
{
|
||||||
TeleportSelectedSoldier();
|
TeleportSelectedSoldier();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user