Mikusch / source-vehicles

Driveable vehicles based on prop_vehicle_driveable for TF2, CS:S, and more
GNU General Public License v3.0
32 stars 5 forks source link

[Feature Request] Third person mode #27

Open notfoundname opened 2 years ago

notfoundname commented 2 years ago

Hello, I would like to request a feature to have a configurable ability to use third person mode in vehicles. Typing thirdperson looks pretty good already.

Mikusch commented 2 years ago

I've looked into this before and was unable to manipulate the existing camera view, as it is mostly implemented in client-side code and thus cannot be modified using server plugins.

One workaround is to create a point_viewcontrol entity and parent it to the vehicle, but this has far too many issues to be a viable alternative.

After many hours of research, I've just accepted that the thirdperson command is probably as good as it gets, so I don't have any plans to try and add my own camera implementation.

Regardless, I'm going to keep this issue open in case I've missed something in my research and plan to revisit it at a later date.

DosMike commented 2 years ago

I don't know of a universal way to handle third person, but this might help: TF2 has the players SetForcedTauntCam input https://forums.alliedmods.net/showthread.php?t=183456 Found this for CSS, but cant test it rn. Probably still works tho https://forums.alliedmods.net/showthread.php?t=193484

Mikusch commented 2 years ago

I don't know of a universal way to handle third person, but this might help: TF2 has the players SetForcedTauntCam input https://forums.alliedmods.net/showthread.php?t=183456 Found this for CSS, but cant test it rn. Probably still works tho https://forums.alliedmods.net/showthread.php?t=193484

The methods used in these plugins eventually call into thirdperson so it's essentially the same thing