Project Zomboid

Project Zomboid

Tk's Real Vehicle Acceleration 3
 Denne tråd er blevet fastgjort, så den er sikkert vigtig
tkonrye  [udvikler] 22. aug. 2024 kl. 20:12
Modding for the new LUA variables
This mod has hard coded in some new variable that are alterable through the vehicle lua files, a brief explanation is included here. Feel free to ask questions here and I will do my best to answer then.

This is just a guideline as the physics behind this game are not always as predictable as I would like, and at them moment, handling has not be too heavily addressed.

Values in Lua files that are new/working/important:

maxRPM: The maximum RPM the engine will run to, if possible at the last gear it has available.

shiftRPM: Generally the point where the automatic transmission will shift the car under normal road conditions, usually represents peak horsepower.

peakRPM: This is the point where the vehicle hits peak Torque in the curve. Lower numbers here will be better for pulling, off-road, and towing. However a lower PeakRPM will also represent vehicles that will be snappier off the line, but will have weaker mid/late range acceleration.

gearRatioCount: Total number of gears the tranmssion has available.

gearRatioR: Gearing for the reverse gear.

gearRatioX: Determines torque multiplication values, and shift points. A higher value will mean more power to that gear, but it will also reduce the speed at which the vehicle shifts.

finalGear: Axle ratio, this will effectively lengthen or shorten the gearing, higher numbers equal shorter gears and lower numbers equal longer gears. This is also the base multiplier, so lower numbers mean less aceleration for each gear.

torqueADJ: This is used to increase or decrease power (base is 1.0), this modifier is an odd one, and has a variety of used depending upon the vehicles specs. (helps with towing, heavy vehicles, high load vehicles, etc...)

towingEfficiency: This is a basic modifier used just like off road efficiency, which represents a vehicles overall towing capability, the base is set at 1.0.

tireSize: larger tire diameter means higher top speed and less acceleration.

notes: Note that increasing gearing, will reasult in faster acceleration within that gear, however it will shorten the top speed of the gear and as a result will not always result in faster 0-30/60/90MPH times, and can reduce the top speed of the car overall, if its the finalGear or the last gear in the set. Creating odd gearing will also result in odd rpm changes when shifting, and could potentially confuse the transmission if you are using an automatic.
< >
Viser 1-1 af 1 kommentarer
tkonrye  [udvikler] 22. aug. 2024 kl. 20:28 
As a suggestion, if you wish to modify or create a new vehicle compatibility there are a ton of examples included with this mod.

For the most part, I simply found the gearing for the vehicle I was working on in real life and simply used the exact same values. The only difference is the Final gear ratio (which is more like the rear axle/transaxle ratio), that sometimes needs to be altered as the vehicles in the PZ world only go up to 120MPH. So sometimes you have to fudge stuff to get it to work within that limit. It does make for some oddities, like supercars, and more powerful sports cars, as they shift way too fast.

Sadly if we were to use the actual values for a Diablo... well it doesn't shift out of first still somewhere close to 50 or 60mph, so how on this green earth would you EVER find 6th lol. So necessary "fudging" to make it work.
< >
Viser 1-1 af 1 kommentarer
Per side: 1530 50