Advanced Control for 1.3 — Manual Leaning – Etc.
List of additions:
Adds controls for manual leaning
This update adds controls for both holding and toggling a manual lean.
This is only usable while aiming, and will disable the automatic cover lean until you exit and re-enter the aiming state.
Adds controls for walking
This update adds toggle and hold controls for walking.
Walk speed is 60% of V’s normal speed.
Does not affect driving speeds.
Adds controls for cycling grenades
Adds controls for cycling grenades forward and backwards.
Ends at the top and bottom of the grenade list, gets a bit janky when you reach the top or the bottom of the list but generally works.
Adds a holstering control separate from the weapon wheel
Adds a one-button holster/unholster control for your weapon.
tton to untrack quests
Untracks your active quest.
All respective credits to the original mod author; technical changes below—–
List of changes from the original mod:
General
Changed all registerHotkey functions to registerInput. This allows leaning to be more responsive (and I assume the other controls as well).
Added keyDown boolean and checks for it to all registerInput/registerHotkey functions. This prevents the double-firing of actions found without it, as “function()” with no check causes the function to fire on both key down and key up.
Leaning
Added additional controls for holding down keys to lean.
Changed leaning toggle functionality. Now allows player to return to a neutral state on another lean input, to function more like other games’ leaning functionality.
Added variables to keep track of whether the player is leaning left or right.
Added an “onUpdate” event to check if the player is aiming and reset the above variables if not.
Fixed original author’s IsPlayerAiming() function to work in 1.3.
Implemented the original author’s IsPlayerCover() function to check if the player is in cover so that the lean responds correctly to player input.
Walking
Added new control for hold to walk, as the original only had a toggle.
Otherwise unchanged.
Cycle Grenades
Would originally skip over grenades sometimes at the start and end of the grenade list, so this was changed to end at the top and bottom of the list rather than roll over. Still janky but it works. I tried fixing this but the way the 2077 has it working is weird (the position of grenades in the array shifts if you call for the last or the first grenade twice from what I can tell, also skips over implants).
Can now set to scroll wheel. Not my own change, probably due to either the registerInput change or just a CET update. Either way, it’s a difference from what was listed on the old page so might as well mention it here.
Holster
Unchanged.
Untrack Quest
Unchanged.