[Include] Vehicle Handling
#1

Hi there!

Today, for the first time in this forum publish any thing.

1. What is it?
It is a library that contains the data of the original vehicle handling from GTA SA.
We can download the vehicle weight, number of gears, the mass center of the vehicle, maximum speed, acceleration, Intertia, engine type, drive type, etc...

2. What are the Functions:
Код:
-- Functions return a floating-point number
native Float:GetVehicleMass(vehicle);
native Float:GetVehicleDragCoeff(vehicle);
native Float:GetVehicleFrontRearBias(vehicle);
native GetVehicleCenterMass(vehicle, &Float:cx, &Float:cy, &Float:cz);
native Float:GetVehicleSusAntiDriveMul(vehicle);
native Float:GetVehicleSusHighSpeedDpg(vehicle);
native Float:GetVehicleSusLowerLimit(vehicle);
native Float:GetVehicleSusUpperLimit(vehicle)
native Float:GetVehicleSusForceLvl(vehicle);
native Float:GetVehicleSteeringLock(vehicle);
native Float:GetVehicleTurnMass(vehicle);
native Float:GetVehicleTractionMultiplier(vehicle);
native Float:GetVehicleEngineAccel(vehicle);
native Float:GetVehicleEngineInertia(vehicle);
native Float:GetVehicleTractionBias(vehicle);
native Float:GetVehicleTractionLoss(vehicle);
native Float:GetVehicleTractionLoss(vehicle);
native Float:GetVehicleDistSeatOffset(vehicle);
native Float:GetVehicleSusDamping(vehicle);
native Float:GetVehicleCollisionDmg(vehicle);
native Float:GetVehicleMaxVelocity(vehicle);
-- Functions returning an integer
native GetVehicleNumberOfGear(vehicle);
native GetVehiclePercentSubMerged(vehicle);
-- Functions return a string
native GetVehicleEngineType(vehicle); 
native GetVehicleDriveType(vehicle);
Currently, these functions can only return through vehicleid. In the future implementation of the right of appeal is also using the same vehicle model.

URL to source: https://github.com/l0nger/SAMP-Handling
Download library: https://github.com/l0nger/SAMP-Handl...ive/master.zip
License: GPLv2

Peace.
Reply


Messages In This Thread
Vehicle Handling - by Hesse - 19.05.2014, 15:34
Re: Vehicle Handling - by Derryd - 20.05.2014, 06:56
Re: Vehicle Handling - by Mriss - 20.05.2014, 07:57
Re: Vehicle Handling - by Hesse - 20.05.2014, 09:02
Re: Vehicle Handling - by Kyle - 20.05.2014, 09:37
Re: Vehicle Handling - by Shevil - 07.07.2014, 08:26
Re: Vehicle Handling - by startserv - 02.10.2014, 17:48
Re: Vehicle Handling - by Rudy_ - 02.10.2014, 18:28

Forum Jump:


Users browsing this thread: 1 Guest(s)