This menu recreates vehicle camera from scratch and introduces a number of customizable parameters for user to tune. On top of that there is a drone camera with a few modes to simulate drone flight.
Main features of this menu:
Lead camera - main camera, rotates around car dependant on angular velocity of the vehicle
Chase camera - focuses on closest vehicle and points towards it
Drone camera - simulates drone physics, allows choice between different modes (race, zero-G, spectator, homing)
Customizable parameters - FOV, XYZ position offsets, interpolation values and more
Saving/loading - save and load camera parameters or choose from default presets
Installation
Go to releases and download latest zipped release. Unzip and place enhancedcamera folder inside your server’s resources folder, then edit your server.cfg to include line start enhancedcamera.
Default menu key is F11, tune it in config.ini.
Parameters overview
It’s best to just experiment with parameters to see how they affect camera handling (for lead/chase camera you can start by spawning a preset from submenu).
Lead and chase camera parameters:
Lock position offset - determines whether camera changes position compared to vehicle (or just rotates)
Linear position offset - experimental feature, camera changes position along the line drawn behind vehicle instead of doing circular motion around the car
Lock rotation to camera plane - changes the way that camera rotates around car (mostly visible on uneven ground)
Modifier - this modifier * angular velocity = target rotation. Higher values make camera move further from lock. (-1,1)
Yaw interpolation - lower values - smoother movement along yaw axis (0,1)
Roll interpolation - lower values - smoother movement along roll axis (0,1)
Pitch interpolation - lower values - smoother movement along pitch axis (0,1)
Camera offset - offsets chase camera target towards its velocity vector. (0,5)
FOV - changes field of view, may affect performance with higher values (20,120)
X/Y/Z Offset - static position offset in XYZ direction
Max angle to lock - for chase camera only, max angle from velocity vector to keep the lock on, if angle exceeds this limit, camera switches back to normal. (25,360)
Examples/showcase
Credits
Tom Grobbe - MenuAPI used for GUI, code snippets from vMenu used for saving/loading camera parameters
QuadrupleTurbo - providing new ideas for features, massive help with playtesting
This is AMAZING, @Shrimp ! Thank you very much for this!
Would be also possible to add permissions, please? I would like to use this on our RP server as an addition for driving vehicles, but I am not super excited about drone camera being used on foot
Would be here also an option to start the menu by chat command? I would like to implement it into car option for RadialMenu. That would be neat!
I have no idea how permissions work, so would need to look into that, I can definitely add an option to just turn it off for everyone in config.ini file, that would be simple enough. Chat command is also a minor thingy, so will include that with next update too.
What Razzquez made with his PocceMod is exactly how I would imagine it to be! You can set ACE permissions to any mod option to any group you want (Admin, Moderators, Everyone).
If you would like to, go take a look into his source code. Unfortunately, I haven’t learned C# yet, so I can do the necessary adjustments myself…
When I have some time I’ll look into the permission stuff, in the meantime I made a small update to add the chat command and config.ini fields to disable chase and drone cameras globally.
Having an issue where using an xbox one controller holding the view/select button to bring up vMenu, enhanced camera also comes up overlapping it, no matter what i set the config key to it always uses the view/select button aswell as the config button, im guessing there is some code conflict that you used from vmenu?
Hey. Does anybody know if it’s possible to stop the camera from bumping on uneven grounds? Just like the camera does with the plugin being OFF. I’ve managed to get a good drift camera setting, but the camera always bounces when going through bumps or so.
Also. How do I delay the camera lock so it doesn’t attack to the back of the car, but to the side?
Late reply here, but for anybody else wondering about this, the answer is no in this script’s current form. The camera is tied to the CAR instead of the PLAYER. The PLAYER has some camera smoothing happening that cars do not.