rbn3d / customcamerav Goto Github PK
View Code? Open in Web Editor NEWA custom vehicle camera system for Grand Theft Auto V
License: MIT License
A custom vehicle camera system for Grand Theft Auto V
License: MIT License
How to setup to FiveReborn?
This is how I currently determine vehicle camera distance:
public float getVehicleLongitude(Vehicle veh)
{
var longitude = veh.Model.GetDimensions().Y;
// bikes and motorbikes has too near camera, so bump distance by 0.5 game units
if (veh.Model.IsBicycle || veh.Model.IsBike)
{
longitude += 0.4f;
} else if (Function.Call<bool>(Hash.IS_BIG_VEHICLE, veh.Handle))
{
longitude += 4.5f;
}
return longitude;
}
This works well for most vehicles, but not for those that are specially big, like trucks.
Any ideas?
CustomCameraV does not work on Five M please help
Camera frequently sttuters at high speeds.
Ideas:
Function.Call<float>(Hash.TIMESTEP);
seems to be better than Game.LastFrameTime;
for delta time.
Vehicle.Speed seems not to be very precise.
ScriptHook / ScriptHookDotNet runs script once per frame, but execution may be not 100% in sync with gameloop, so delta is inaccurate (fix with custom delta??)
Hi,
do know if its possible to use your mod on FiveM ?
Thanks you.
by 'disables itself', I mean it doesn't work until the values aren't 0 anymore.
pressing handbrake while e.g. drifting will trigger gta5's handbrake camera, which is not a wanted feature :(
Good work!
Your code helps a lot!
Now, I want to create a new custom camera with the Orthophoto projection, but the default camera is working with the Central projection.
How can I change the code to do that?
Please help.
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.