Garry's Mod

Garry's Mod

628 ratings
Leaning
2
4
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Effects
Addon Tags: Roleplay, Scenic, Realism
File Size
Posted
Updated
18.792 KB
13 Jan, 2024 @ 9:14am
8 Dec, 2024 @ 2:49am
22 Change Notes ( view )

Subscribe to download
Leaning

Description
This does leaning without moving you anywhere, while retaining the proper view offset, giving you realistic-er visibility because the spine actually bends, npc's still reacting to you and you being able to shoot, throw, punch from your view at any lean level. This also features Ready or Not styled controls.

Use cl_lean_bind to bind keys to lean.

Commands:
cl_lean_interp_ratio - Multiplier on the spine bend interpolation
sv_lean_unpredicted - Switches to an unpredicted lean method, however restores SOME functionality of other mods that change the view offset.
sv_lean_amount - How much to lean
sv_lean_speed_general - How fast to lean in general
sv_lean_speed_ron - How fast to lean using the RON controls
sv_lean_reasonable_crouch_offset - Control how low your view is when ducked, the toggle.
sv_lean_reasonable_crouch_offset_mult - Control how low your view is when ducked, the multiplier.
(Both reasonable_crouch_offset commands take effect only after the player reconnects)

Compatibility:
Mods that manipulate the view offset in any way may cause weird view jittering, so be aware.
Prone mod works fine though.

Credits to TFA for the base mod that I improved upon.