Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;Streamline controls for abilities in the campaign.
- ;Instead of switching and then using in two separate inputs,
- ;this combines the switch and the use into one.
- #Include Init.ahk
- #If WinActive("ahk_exe HaloInfinite.exe")
- global markLocked
- ;Grapple
- *1::
- *CapsLock::
- useAbility(1)
- return
- ;Dash - Control key activates on up unless using ~ prefix
- *2::
- *~Control::
- useAbility(2)
- return
- ;Shield Wall
- *3::
- useAbility(3)
- return
- ;Threat Sensor
- *4::
- useAbility(4)
- return
- ;Press the received key and then activate equipment
- useAbility(key){
- send {blind}{%key% down}
- sleep 1
- send {blind}{%key% up}
- sleep 1
- send {blind}{o down}
- sleep 1
- send {blind}{o up}
- return
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement