Difference between revisions of "Documentation/Engine/Units/accessory cabin data"

From SCS Modding Wiki
Jump to navigation Jump to search
(Unit def section removed)
(Attributes: Changed arrays to C++ template format as requested)
Line 20: Line 20:
 
|-
 
|-
 
|lods
 
|lods
|string array
+
|array<string>
 
|
 
|
 
|Paths to the reduced level-of-detail meshes, in order of increasing viewing distance (decreasing model complexity).
 
|Paths to the reduced level-of-detail meshes, in order of increasing viewing distance (decreasing model complexity).

Revision as of 14:58, 30 May 2017

The accessory_cabin_data unit class configures the models for the cabin of the player's vehicle. Units of this type are found in /def/vehicle/truck/<make.model>/cabin/.

Attributes

Many common attributes are inherited from accessory_data.

Name Type Default Value Description
detail_model string Path to the high level-of-detail mesh. This is generally unused, but can be used for fine detail or ‘expensive’ shader effects that are only visible very close to the vehicle.
model string Path to the standard level-of-detail mesh. 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> Paths to the reduced level-of-detail meshes, in order of increasing viewing distance (decreasing model complexity).
collision string Path to the collision mesh (.pmc).
variant token Selects the variant to be used for all models/collisions defined. This is required if the cabin and chassis share a model as is currently the standard practice in ETS2 and ATS. Default value is default.

Note: All models defined for this accessory_cabin_data must have this variant name.

variant_uk token Selects the variant to be used for all models/collisions for right-hand-drive (RHD) vehicles. If unset, defaults to the same value as variant.

Note: All models defined for this accessory_cabin_data must have this variant name.

look token Selects the look to be used for all models defined. Default value is default.

Note: All models defined for this accessory_cabin_data must have this look name.

wiper_model string Path to the animated wiper model (.pmg)
wiper_anim resource_tie Path to the wiper animation (.pma)
wiper_model_uk string Path to the animated wiper model (.pmg) for RHD vehicles. If unset, defaults to the value of wiper_model.
wiper_anim_uk resource_tie Path to the wiper animation (.pma) for RHD vehicles. If unset, defaults to the value of wiper_anim.
drl_with_headlights float 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 string Currently unused.
suspension bool When true, physical simulation of cabin air suspension is enabled.