Garry's Mod

Garry's Mod

97 ratings
Vehicle Eye Angle Correction
2
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Effects
Addon Tags: Realism
File Size
Posted
Updated
1.571 KB
21 Nov, 2020 @ 7:01am
8 Dec, 2020 @ 11:19am
4 Change Notes ( view )

Subscribe to download
Vehicle Eye Angle Correction

Description
Description

This patches the return value of a player's eye angles while controlling a vehicle pod to return the correct result, instead of the localised eye angles to the vehicle. It also reflects this change by correcting several pose parameters when controlling a vehicle pod to use the corrected angles.

This is an ancient bug in the engine that still remains to be fixed[github.com]. It's the reason why a player's head almost never faces the direction they're actually looking when sitting in any pod-based vehicle, especially when the vehicle has any arbitrary rotation to it.

Links

NOTE: Please submit bug reports / pull requests on GitLab. I wont read them if they're posted elsewhere on the workshop page.

GitLab[gitlab.com]
8 Comments
BuB 19 Apr, 2024 @ 10:57am 
it happens when ur character needs to get up of the ground like waking up
BuB 19 Apr, 2024 @ 10:57am 
anyone know what this means
ERROR: Tried to SetParentAttachment for entity point_viewcontrol (blackout_viewcontroller), but it has no attachment named vehicle_driver_eyes.
Tostadagamer 5 Feb, 2023 @ 12:44pm 
Very good, but if you use LVS it will kill the camera
Dante 5 Feb, 2022 @ 9:22am 
FINALLY
baggyjeans69 28 Nov, 2020 @ 9:31am 
It works on my server, just drop that bad boy into your 'lua\autorun' folder.
Inco  [author] 28 Nov, 2020 @ 7:14am 
@whynotll83 i suspect not, unless the server enables clientside lua (sv_allowcslua 1) so that clients can run their own scripts

it should however work the opposite way, where only the server needs to have it installed and clients do not, since it will send it to them for downloading
Whynotll83 28 Nov, 2020 @ 1:04am 
does this work on servers that don't have this mod installed?
baggyjeans69 25 Nov, 2020 @ 12:40pm 
Gotta love the little things.