Revision Difference
Structures/VehicleParamsEngine#516967
<cat>struct</cat>
{{Structure⤶
|Description=The structure used by <page>VehicleParams</page>.⤶
|Fields={{StructureField|number|autobrakeSpeedFactor}}{{StructureField|number|autobrakeSpeedGain}}{{StructureField|number|axleRatio|This acts as the final ratio of the gearbox.⤶
<structure>⤶
<description>The structure used by <page>VehicleParams</page>.</description>⤶
<fields>{{StructureField|number|autobrakeSpeedFactor</fields>⤶
⤶
</structure>⤶
⤶
{{StructureField|number|autobrakeSpeedGain}}{{StructureField|number|axleRatio|This acts as the final ratio of the gearbox.⤶
It's like a master coefficient of the gearbox.
}}{{StructureField|number|boostDelay|Amount of seconds between being able to use the boost ( by pressing Shift key by default )}}{{StructureField|number|boostDuration|Duration of the boost in seconds}}{{StructureField|number|boostForce}}{{StructureField|number|boostMaxSpeed|Maximum speed while boosting
<warning>The <page>Vehicle:SetVehicleParams</page> function takes this in **miles per hour**, but <page>Vehicle:GetVehicleParams</page> returns this in **hammer units per second**!
1 MPH is roughly 17.6 HU/s.</warning>
}}{{StructureField|number|gearCount|Amount of gears this vehicle has}}{{StructureField|table|gearRatio|A table of numbers, of gear rations.
Table length is equal to "gearCount" member of this table.}}{{StructureField|number|horsepower|The HP amount of the vehicle
This value is used to calculate the effectively applied torque, along with ratios and `maxRPM`.
}}{{StructureField|boolean|isAutoTransmission|If `true`, the gearbox shifts gears, if `false` the gearbox stays stuck to the 1st gear (gear number 0).}}{{StructureField|number|maxRPM|Maximum RPM of the vehicle.
Despite this being a maximum value, the vehicle can exceed it.
<warning>Attempts to exceed the max RPM will force the active gear ratio to be that of the 1st gear, which will provide even more torque. This is the opposite of a rev limiter. This value is only used for the calculation of the effectively applied torque.</warning>
}}{{StructureField|number|maxRevSpeed|Maximum reverse speed of the vehicle
<warning>The <page>Vehicle:SetVehicleParams</page> function takes this in **miles per hour**, but <page>Vehicle:GetVehicleParams</page> returns this in **hammer units per second**!
1 MPH is roughly 17.6 HU/s.</warning>
}}{{StructureField|number|maxSpeed|Maximum forward going speed of the vehicle without boosting
<warning>The <page>Vehicle:SetVehicleParams</page> function takes this in **miles per hour**, but <page>Vehicle:GetVehicleParams</page> returns this in **hammer units per second**!
1 MPH is roughly 17.6 HU/s.</warning>
}}{{StructureField|number|shiftDownRPM|Amount of RPM to automatically shift one gear down}}{{StructureField|number|shiftUpRPM|Amount of RPM to automatically shift one gear up}}{{StructureField|number|throttleTime}}{{StructureField|boolean|torqueBoost}}
}}