Garry's Mod
767 оценки
Leaning
2
4
   
Награда
Добавяне към любими
В любими
Премахване от любими
Content Type: Addon
Addon Type: Effects
Addon Tags: Roleplay, Scenic, Realism
Размер на файла
Публикуван на
Обновен на
19.791 KB
13 ян. 2024 в 9:14
19 юли в 3:26
27 бележки за промени ( преглед )
Описание
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_debug - Shows your hitboxes
sv_lean_notify - Shows in chat what bind you pressed
sv_lean_allowcrouch - Allow leaning in crouch
sv_lean_always_allow_leaning - Always allow leaning in whatever state you are
cl_lean_auto_insights - Lean when zooming in

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

Credits:
- TFA. Even though I strayed very far from the original code, I still based everything on that.
- Darsu. For auto lean in sights and some optional leaning restrictions.

190 коментара
DibFish 27 юли в 14:54 
is there any way you can make a setting where npcs cant detect you while youre leaning behind a corner?
olakepro 26 юли в 19:36 
VOD was eliminated or is no longer available
HayAzane 25 юли в 15:27 
is there away to always keep lean in sights on bc it turns off everytime i switch maps
idksomething 12 февр. 2024 в 15:17 
just felt like it
certainly and boldly black  [автор] 12 февр. 2024 в 4:31 
@mememan97a how is that related at all?
@Callsign_Ewok that's just the general playermodel to view offset discrepancy i expect to see, even without leaning. maybe there's a way to rotate the view offset very closely to how the actual spine bends but considering the difference will be very high anyway i don't really care
idksomething 11 февр. 2024 в 15:39 
yo fuck datae.
Callsign_Ewok 11 февр. 2024 в 13:31 
I love some of your recent updates and improvements, keep it up. Any extra compatiblities and ways of making the spine move as accurately as possible is always welcome. Sometimes my model does lean in third person more then in first person for his right side for example. Left side it's not as exaggerated.

Otherwise after all these updates it's definitely working better in the right direction no pun intended lol.
WorldlyRook709 10 февр. 2024 в 7:40 
ehh im just going to use alt hold auto and mouse5 ron hold
certainly and boldly black  [автор] 10 февр. 2024 в 7:29 
use sv_lean_debug and enable developer 1, it'll show you some internal information just to see things better when troubleshooting (i added it just now so don't be surprised i didn't mention it before)
WorldlyRook709 10 февр. 2024 в 7:20 
if yours works just fine then there must be some of my addons conflicting