"Neat" -Krimzin
"we R6Siege now" -Alcat
"looks like a first person neck snapping experience" -VxWolf
"I can now game to my maximum potential" -Rino
"Add this with the slide mod, bamn, new game" -Leon S.
"Yall actually made a leaning mod lmao" -Schmuddel
"put me in the quotes" - xzyzzy
This mod allows you to look and shoot around corners with two keybinds. Behavior is set to "held" by default, but can be switched to "toggle" in the mod's options. It is completely safe to use "Tactical Leaning" in online games, both as host and as a client. It does not trigger anti-cheat or do anything malicious or even remotely suspicious.
Known mod conflicts:
- Causes inaccurate laser position with Less Inaccurate Weapon Laser; the fix must be implemented on the side of LIWL, not this mod.
REQUIRES HoldTheKey as a dependency!
THIS IS NOT OPTIONAL!
Previews (version shown: 3.2)  
Known Issues:
- May cause minor clipping when using higher lean distance value while carrying heavier bags
- Bindable controls for controllers instead of using SPRINT/MELEE controller buttons
To report a bug or make a feature suggestion:
Please create an issue on the GitHub page, or leave a comment below. (If you are a coder, making a pull request is also welcome.)
GitHub repository link: https://github.com/offyerrocker/PD2-TacticalLeaning
If your bug involves a crash, please attach the crash.txt
log file. You can find this file by following these instructions: https://steamcommunity.com/app/218620/discussions/14/530645446323387705/ , and share it by uploading it to PasteBin and sharing the link.
You can leave questions, comments, or feedback here- any feedback is very appreciated!
Credits:
Chinese (Simplified) translation by: https://modworkshop.net/user/44255

Heyo, not sure if anyone has reported the issue yet but figured I would here:
The recent update to payday added a seperate category called secondary sights for 45° sights and flip magnifiers so that you can have a gadget and one of these equipped simulataneously, so now you use the gadget keybind while aiming to activate these instead of only having one equipped and using the gadget keybind while not aiming.
I narrowed it down from all mods in my list including Hold the key and it is this mod specifically.
This mod for some reason seems to disable the ability to use the secondary sights, I'd like to add that I am on controller and my keybinds are:
Gadget: Down D-pad
Lean: While Aiming Press L3/R3 (sticks) to lean left/right
I'm thinking that the controller setup for this mod is causing the conflict because of it and the sights now needing to be activated while aiming.
Hope this helps and a fix is in the cards, love the mod and thanks!
I see now that other mods like lasers+ were having similar issues and were fixed, good to know it was a quick fix and looking forward to a patch for this one!
@Peef Spogdar Thanks for the report, and extra thanks for doing that extra bit of testing to narrow down the case.
This bug should now be fixed in 3.4; please do continute to report any further issues.
@Offyerrocker Glad to help! Though now I'm getting this crash a few seconds after loading into a lobby:
Spoiler!
Application has crashed: C++ exception
[string "core/lib/managers/controller/corecontrollerwr..."]:825: table index is nil
SCRIPT STACK
get_input_bool() core/lib/managers/controller/corecontrollerwrapper.lua:840
Update() @mods/PD2-TacticalLeaning/lua/menumanager.lua:280
func() @mods/PD2-TacticalLeaning/lua/playermanager.lua:12
update() @mods/base/req/core/Hooks.lua:294
original() lib/setups/setup.lua:893
update() @mods/base/req/core/Hooks.lua:288
original() lib/setups/gamesetup.lua:800
update() @mods/base/req/core/Hooks.lua:288
update() lib/setups/networkgamesetup.lua:21
original() core/lib/setups/coresetup.lua:559
@mods/base/req/core/Hooks.lua:288
Callstack:
@Peef Spogdar Whoops. That should be fixed now, too.
@Offyerrocker Works like a charm now! Thanks for the quick fixes mane love the mods