MerlinStarfinder / gmodmodules

Automatically exported from code.google.com/p/gmodmodules
1 stars 0 forks source link

PimpMyRide - High vehicle speed settings don't work #36

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Set a car with high speed (higher than 100) and acceleration and stuff in 
the script file
2. Run this code
    vehicle = Player:GetVehicle()
    vehicleParams = vehicle:GetVehicleParams()

    vehicleParams["engine"]["maxSpeed"] = 80

    vehicle:SetVehicleParams(vehicleParams)

What is the expected output?
The vehicle will now reach the speed you set in mph

What do you see instead?
The vehicle struggles to accelerate past 50mph
If the new speed is set to anything less than 50 it works fine.

What version of the product are you using? On what operating system?
r240 gmsv_pimpmyride_win32.dll
Windows Server 2012

Please provide any additional information below.

Original issue reported on code.google.com by TinySla...@gmail.com on 14 Feb 2013 at 9:33

GoogleCodeExporter commented 8 years ago
I know its a bit late, but this is really annoying. Fix this please?

Original comment by siranderson66 on 9 Mar 2013 at 1:29

GoogleCodeExporter commented 8 years ago
This is likely out of my control. If you want to see the vehicle controller 
behavior you'll have to open up vphysics.

Original comment by AzuiSl...@gmail.com on 9 Mar 2013 at 1:32

GoogleCodeExporter commented 8 years ago
Also, the vehicle maxSpeed parameter outputs a stupid integer. I have to do 
this math.Round(newVehicle.VehicleParameters["engine"]["maxSpeed"] / 17.599) to 
get the correct max speed.

Original comment by siranderson66 on 10 Mar 2013 at 1:00