STICKYING - zerk
During the beta, I wrote a small AutoHotkey script to make crouch and sprint a toggle. Since it's not yet implemented in the retail game, I figured I'd share.
It works like this:
While holding "w", press and release "LShift" to start sprinting. You'll continue to sprint until either: "w" is released, "LShift" is pressed again, or crouch is toggled (see below).
To toggle crouch, press "c". This will basically hold down the "LCtrl" key until you: press "c" again to disengage, press "Space" to jump, or start sprinting.
The zip contains both the source (for those who have AutoHotkey installed already or want to make modifications) and compiled version (can be used without having AutoHotkey installed).
Let me know if you have any feedback.
P.S. As far as I know, AutoHotkey scripts of this nature are not considered cheating.
Change Log
2.0.9b:
- added option TrackAimToggle for use with
EnableAimHoldToggle=0. Makes it so the "aimState" variable is updated when
Aim button is pressed, thus allowing aim to cancel SprintToggle among
other things. Disabled by default due to buggyness.
2.0.9:
- added option SpotOnFireCooldown (default=1), set to 0 to use "old" method
- fixed bug that caused player to randomly stand up while crouched
- aiming will now cancel Sprint when using EnableSprintToggle=1
- re-worked/optimized/tweaked several functions: SprintToggle, AimHoldToggle, ForwardPress
2.0.8:
- added settings for "Switch Weapons" and "Reload" keybinds; should help prevent Sprint problem cited by user
- added setting for "Melee" keybind; should make it so you don't have to manually stop sprinting before meleeing (only if using EnableSprintToggle=1)
- added fix for sprint/aim bug cited by user
2.0.7:
- the "SpotOnFire" functionality will now continue spotting while "Fire" is held down
- Spotting cooldown reduced from 2.2 seconds to 2.0 seconds
- added update check: can be triggered from tray icon menu or automatically at script start.
- Use "CheckForUpdatesOnStartup" setting to enable/disable checking for updates on startup.
2.0.6:
- bug fixes and optimizations
- added ~2 second cooldown between sending the social button when firing, should help prevent "overheat"
- added SuspendOnSteamOverlay to toggle the script when SteamOverlay hotkey (default: Shift+Tab) is pressed
2.0.5:
- added "EnableSpotOnFire" which will send the "Spot" (aka "social") key when you press the "Fire" button
- fixed a bug when "EnableCrouchToggle=0" that prevented you from crouching more than once
- various optimizations
2.0.4:
- added sprint from crouch when using "EnableCrouchToggle=1" and "EnableSprintToggle=0"
- script now recognizes sprint from double-pressing "Forward"
2.0.3:
- fixed crouch bug that occurred when using "EnableAimHoldToggle=1" with "EnableCrouchToggle=0"
- changed default "ScriptToggle" hotkey to "F12"
2.0.2:
- reworked "AimHold" to prevent key autorepeat while held down
- added "SuspendOnChat" setting which disables the script until "ENTER" is pressed; this should let you chat in-game without having to issue the ScriptToggle hotkey before/after
- added "ChatAll", "ChatTeam", "ChatSquad" settings so you can specify the in-game keybinds for use with "SuspendOnChat"
2.0.1:
- only allow hotkeys if BFBC2 window is active
- added "AimHold" hotkey setting which allows "AimHold" key to be different than the "Aim" keybind
- added setting for beep on script toggle
2.0: reworked release; reads user settings from settings.ini
1.0: initial release
Download here:
http://bunchafunk.googlecode.com/files/crouch_aim_toggle_v2.zip
http://dl.dropbox.com/u/47468/crouch_aim_toggle_v2.zip
Edit: I've added a second download link. Users have reported that Google Code may cache downloads that have the same filename; so when I upload an updated version of the script, some users still may be downloading the older version(s). Check that the script version matches the latest, above.
Be sure to read the
README file for instructions.