Changes

Jump to navigation Jump to search

Documentation/Engine/Units/accessory cabin data

838 bytes removed, 05:57, 26 May 2023
m
Attributes
The '''accessory_cabin_data''' unit class configures the models for the cabin of the [[Documentation/Engine/Game_data/Player_trucks_definitions|player's vehicle]]. Units of this type are found in '''/def/vehicle/truck/<makebrand.model>/cabin/'''.
== Attributes ==
|string
|
|Path to the high level-of-detail detailed meshmodel descriptor (.pmd). This is generally unused, but can be used only for fine detail or ‘expensive’ shader effects that vehicles used by player. Additionally they are only visible very close to the used in vehiclepreviews & browser windows.
|-
|model
|string
|
|Path to the standard level-of-detail meshmodel descriptor (.pmd). If only a single LOD is used, it should be set up as '''model''', and the other attributes (detail_model, lods) should not be defined.
|-
|lods
|array<string array>
|
|Paths to the reduced level-of-detail meshesmodel descriptors (.pmd), in order of increasing viewing distance (decreasing model complexity).
|-
|collision
|string
|
|Path to the collision mesh descriptor (.pmc).
|-
|variant
|drl_with_headlights
|float
|0.0
|Sets the relative strength of the daytime running lights when the headlights are on. For the DRL to be ''off'' when the headlights are on, a value of 0 is used. If the DRL should stay on and not dim when the headlights are on, a value of 1 is used. An intermediate value will dim the DRL when the headlights are on, and a value greater than 1 will intensify the DRL when the headlights are on. The typical value in ETS2 is 0.4.
<!--
|-
|toll_tag
|
|Currently unused.
-->
|-
|suspension
|bool
|true
|When true, physical simulation of cabin air suspension is enabled.
|-
|suspension_type
|token
|4air
|Defines type of cabin suspension if suspension is enabled. possible values are ''4air'' (EU type) and ''hinge2air''(US type). ''Added in 1.47''
|-
|sounds
|array&lt;string&gt;
|
|When trueEach item assigns an FMOD event to a function, physical simulation of cabin air suspension is enabledusing the "''<nowiki>sound_name|sound_path</nowiki>''" [[Games/ETS2/Modding_guides/1.39#Accessories|format]]. ''Added in 1.39'' Expected sound event names are: horn, aero_noise, and rain_noise.
|}
 
== Raw Unit Definition ==
<pre style="max-height:300px;overflow:auto"> "accessory_cabin_data":{
"superclass":"accessory_data",
"attrs":{
"name":{
"type": "string"
},
"short_name":{
"type": "string"
},
"icon":{
"type": "string"
},
"info":{
"type": "string_array"
},
"price":{
"type": "s64"
},
"unlock":{
"type": "uint"
},
"suitable_for":{
"type": "string_array"
},
"conflict_with":{
"type": "string_array"
},
"defaults":{
"type": "string_array"
},
"require":{
"type": "token_array"
},
"detail_model":{
"type": "string"
},
"model":{
"type": "string"
},
"lods":{
"type": "string_array"
},
"collision":{
"type": "string"
},
"variant":{
"type": "token"
},
"variant_uk":{
"type": "token"
},
"look":{
"type": "token"
},
"wiper_model":{
"type": "string"
},
"wiper_anim":{
"type": "resource_tie"
},
"wiper_model_uk":{
"type": "string"
},
"wiper_anim_uk":{
"type": "resource_tie"
},
"drl_with_headlights":{
"type": "float"
},
"toll_tag":{
"type": "string"
},
"suspension":{
"type": "bool"
}
}
},</pre>
510
edits

Navigation menu