Changes

Jump to navigation Jump to search

Documentation/Engine/Units/accessory engine data

71 bytes added, 12:49, 20 June 2017
no edit summary
The '''accessory_engine_data''' unit class is used to define the engine characteristics for the [[Documentation/Engine/Game_data/Player_trucks_definitions|player's vehicle]], as well as some upshift and downshift characteristics for automatic transmission gameplay. Units of this type are usually defined in '''/def/vehicle/truck/<makebrand.model>/engine/*.sii'''
== Attributes ==
|array&lt;string&gt;
|
|Three This member is attribute of accessory data, however three '''info''' members are usually defined for '''accessory_engine_data'''.
<syntaxhighlight lang="cpp">
info[]: "197 @@hp@@ (147@@kw@@)" // The first is the rated power
|torque
|float
|0
|This defines the maximum torque output of the engine in N&middot;m.
|-
|torque_curve
|array&lt;float2&gt;
|''See description''
|This defines the torque output of the engine at various engine speeds, relative to the maximum torque defined in '''torque'''. If unset, the default curve is used:
<syntaxhighlight lang="cpp">
|engine_brake
|float
|1.0
|Engine braking torque relative to a typical exhaust brake on an engine of the same '''volume'''.
|-
|engine_brake_downshift
|bool
|true
|When true, automatic transmissions will downshift upon beginning engine brake behavior, within '''rpm_range_engine_brake'''.
|-
|volume
|float
|0.0
|The (four-stroke) volumetric displacement of the engine in liters. It is used in fuel consumption calculations. {{Note|For two-stroke diesel engines, this should be roughly twice the swept volume.}}
|-
|no_adblue_power_limit
|float
|1.0
|When the AdBlue tank is empty, the engine's power is scaled by this factor.
|}

Navigation menu