Open main menu

Changes

Documentation/Engine/Units/accessory interior data

4,768 bytes added, 05:04, 10 March 2017
WIP
The '''accessory_interior_data''' unit class is used to define the interior and its animations for the [[Documentation/Engine/Game_data/Player_trucks_definitions|player's vehicle]]. Units of this type are usually defined in '''/def/vehicle/truck/<make.model>/interior/*.sii'''

== Attributes ==
Many common attributes are inherited from [[Documentation/Engine/Units/accessory_data|'''accessory_data''']].
{|class="wikitable"
!Name
![[Documentation/Engine/Units#Attribute_types|Type]]
!Default Value
!Description
|-
|model
|string
|
|Path to the descriptor (.pmd) for the rigid interior model.
|-
|animated_model
|string
|
|Path to the descriptor (.pmd) for the animated interior model.
|-
|collision
|string
|
|Path to the interior collision model (.pmc). This is used for toy physics.
|-
|active_mirrors_part
|token
|
|
|-
|passive_mirrors_part
|token
|
|
|-
|variant
|token
|
|Selects the variant to be used on all interior models. If unset, defaults to ''default''.
|-
|look
|token
|
|Selects the look to be used on all interior models. If unset, defaults to ''default''.
|-
|ext_model
|string
|
|Path to the descriptor (.pmd) for the exterior model (the interior visible from outside cameras).
|-
|ext_variant
|token
|
|Selects the variant to be used on the exterior model. If unset, defaults to ''default''.
|-
|ext_look
|token
|
|Selects the look to be used on the exterior model. If unset, defaults to ''default''.
|-
|''animation attributes''
|
|
|There are currently nearly 70 [[Documentation/Engine/Truck_Interior_Animations_and_IDs#Interior_Animations|interior animation]] attributes, plus _min and _max attributes for some with adjustable ranges. Interior animations are typically defined externally in ''animations.sui'' and [[Documentation/Engine/Units#Includes|included]] into the interior definition.
|-
|wiper_delay
|float_array
|
|Each member defines a delay in seconds between wipe cycles for intermittent wipers. They should generally be in decreasing order because the last wiper mode is continuous.
|-
|blinker_delay
|float
|
|The length of half of the blinker cycle in seconds. The blinker is on for this length of time, and then off for this length of time, etc. Typically included via ''animations.sui''.
|-
|glass
|string
|
|
|-
|'''dashboard_path'''
|string
|
|Path to the UI definition for the dashboard display.
|-
|'''gps_path'''
|string
|
|Path to the UI definition for the GPS display.
|-
|use_mile_units
|bool
|false
|When true, distances and speeds on the dashboard will use mile units instead of kilometers.
|-
|left_hand_traffic
|bool
|false
|When true, the vehicle uses right-hand drive (UK) conventions.
|-
|backlight_with_lights
|bool
|true
|When false, the dashboard backlight is always on with the ignition. Otherwise, the backlight is activated with the headlights as normal.
|-
|air_brake_safeguard
|bool
|false
|When true, the parking brake is automatically applied when the supply air drops below a certain threshold (typical US behavior).
|-
|panel_intensity_min
|float
|
|The minimum backlight intensity.
|-
|panel_intensity_max
|float
|
|The maximum backlight intensity.
|-
|glass_panes
|owner_ptr_array
|
|Each member points to the unit name of a [[Documentation/Engine/Units/glass_pane_data|glass_pane_data]] unit. The glass_pane_data units are typically included after the accessory_interior_data unit, via ''glass.sui'' or, in some legacy cases, ''glass.dat''.
|-
|dashboard_color
|float3_array
|
|An array of 16 colors which define the illumination color of dashboard and other dif.lum surfaces in the interior based on the tile they are UV mapped to. Typically included via ''dashboard_color.sui''.
|-
|ui_3d_depth_model
|string
|
|
|-
|ui_3d_depth_model_variant
|token
|
|
|-
|seat_left_limit
|float
|
|Maximum distance the interior camera can be moved left. Typically included via ''seat.sui''.
|-
|seat_right_limit
|float
|
|Maximum distance the interior camera can be moved right. Typically included via ''seat.sui''.
|-
|seat_up_limit
|float
|
|Maximum distance the interior camera can be moved up. Typically included via ''seat.sui''.
|-
|seat_down_limit
|float
|
|Maximum distance the interior camera can be moved down. Typically included via ''seat.sui''.
|-
|seat_front_limit
|float
|
|Maximum distance the interior camera can be moved forward. Typically included via ''seat.sui''.
|-
|seat_back_limit
|float
|
|Maximum distance the interior camera can be moved backward. Typically included via ''seat.sui''.
|-
|reflection_offset
|float3
|
|
|}

==Related Classes==
*[[Documentation/Engine/Units/glass_pane_data|glass_pane_data]] (Used to define surfaces for raindrop accumulation and wiper simulation)
*[[Documentation/Engine/Units/wiper_data|wiper_data]] (Used to define wipers that act on glass panes)
309
edits