Returns a table with topspeeds per gear for the specified transmission data.
If on lua, pay attention to the +1 indexing.
The transmission data should be in the same standard as the transmission component at vehiclesData.lua
Code Example:
local getCustomTopSpeedPressed = WarMenu.Button("Print Top Speed of Specific Transmission")
if WarMenu.IsItemHovered() then
WarMenu.ToolTip('Prints in the top speed of a specific transmission.',nil,true)
end
if getCustomTopSpeedPressed then
local transmissionData = { -- you can get this with dynamic:getVehicleData(), or loading your own custom solution.
frontTorqueDist = 0.3, -- the transmission data it expects, is simply the same as the vehData.lua, as dynamic is built on modular components.
gearCount = 7,
gearRatios = {
3.133,
2.083,
1.575,
1.244,
0.979,
0.786,
0.677,
},
launchControl = {
enabled = false,
targetRpmRange = 0.09610389610389611,
},
maxSpeed = 326,
rpmDecaymentSpeed = 2.5,
shiftingTime = 125,
transmissionType = 0,
}
local speedTable = dynamic:getTopSpeedTableFromTransmissionData(transmissionData)
for k,v in ipairs(speedTable) do
print("Gear "..(k-1)..": ", v)
end
end