77
edits
Changes
Jump to navigation
Jump to search
m
→Attributes
{{Note|The info attribute has no effect on the engine simulation. Rather, it is used for UI display and for attaching to World of Trucks profile truck uploads.}}
{{Tip|The strings surrounded by ''@'' are for localization — <code>@@hp@@</code> displays the localized shorthand for horsepower, <code>@@dg@@</code> displays the localized thousands separator, etc.}}
|-
|type
|token
|diesel
|This defines type and behavior of engine, powertrain, and few other aspects of the vehicle. Acceptable values are '''diesel''' or '''electric'''. ''(Added in 1.50)''
|-
|torque
|float2
|(700, 1500)
|Defines the downshift and upshift engine speeds in low-range gears. (Automatic automatic transmission).
|-
|rpm_range_high_gear
|float2
|(1000, 15001350)|Defines the downshift and upshift engine speeds in high-range gears - typically peek torque range(automatic transmission). ''(Automatic transmissionTweaked in 1.38)''
|-
|rpm_range_power
|float2
|(15501400, 19501900)|Defines the rough rpm range if more power is requested - used either in hills or for adaptive shifting, especially power mode. (Automatic automatic transmission). ''(Added in 1.37, tweaked in 1.38)''
|-
|''rpm_range_power_boost''
|3
|Defines the number of strength levels for the engine brake. The braking torque at each position is based linearly on the number of positions. So for <code>engine_brake_positions: 3</code> the first position will have <sup>1</sup>⁄<sub>3</sub> of the full strength, the second position will have <sup>2</sup>⁄<sub>3</sub> of the full strength, and the highest position will have the full strength.
|-
|auxiliary_brakes
|array<float3>
|
|When set, this overrides the engine brake control so that it controls both the engine brake and retarder (if present). The components are (engine brake strength, forced downshift, retarder strength). The value of '''engine_brake_positions''' must match the number of members in auxiliary_brakes. (''Added in 1.40'') For example:
<pre> engine_brake_positions: 5
auxiliary_brakes[]: (0.3, 0, 0) // 30% engine brake only
auxiliary_brakes[]: (0.6, 0, 0) // 60% engine brake only
auxiliary_brakes[]: (1.0, 0, 0) // 100% engine brake only
auxiliary_brakes[]: (1.0, 1, 0) // 100% engine brake and downshift
auxiliary_brakes[]: (1.0, 1, 1) // 100% engine brake, downshift and 100% retarder</pre>
|-
|volume
|float
|0.0
|The volumetric displacement of the engine in liters. It is used in base fuel consumption calculation, engine mass & inertia calculations, and also default '''resistance_torque''' calculations eventually. Minimum acceptable engine volume is 6.
|-
|consumption_coef
|1.0
|When the AdBlue tank is empty, the engine's power is scaled by this factor.
|-
|sound
|string
|
|Path to the truck [[Documentation/Engine/Sound/TruckEngine|engine sound bank.]] (format like "/sound/truck/engine.bank")
{{Note|The default engine bank has been removed (1.38+). You must explicitly specify a bank from one of the base game vehicles, or specify your own bank.}}
|-
|sounds
|array<string>
|
|Each item assigns an FMOD event to an engine function, using the "''<nowiki>sound_name|sound_path</nowiki>''" [[Games/ETS2/Modding_guides/1.39#Accessories|format]]. ''Added in 1.39''
Expected sound event names are: engine, exhaust, start_bad, and turbo.
|}