[INCLUDE: common/selflighting.ini]
[INCLUDE: common/custom_emissive.ini]
[INCLUDE: refractions.ini]
[INCLUDE: pbr.ini]
[INCLUDE: analog.ini]
[INCLUDE: skins.ini]
[INCLUDE: animations.ini]

[AUDIO_PROPERTIES]
TURBO_THROTTLE=1

[DATA]
DISABLE_LIGHTSINI = 1

[BASIC]
IS_LOW_BEAM_AVAILABLE=1

[LIGHT_LICENSEPLATE]
BIND_TO_EXTRA_A=0
BIND_TO_HEADLIGHTS=1
MESHES=EXT_plates
OFFSET= 0.015, 0.03, -0.11
RANGE=0.29
RANGE_GRADIENT_OFFSET=0.6
SPOT=180
SPOT_SHARPNESS=0.3
COLOR=5,4.9,3.4,2
FALLBACK_EMISSIVE=5,4.9,3.0,0.1
LAYOUT=TWO_ON_TOP
FADE_AT=250

[LIGHT_EXTRA_...]
BOUND_TO = EXT_headlights_bulb_lb
AMBIENT_INFLUENCE = 2
COLOR = 2.4, 1.7, 0.7, 80
DIFFUSE_CONCENTRATION = 0.8
EXTERIOR_ONLY = 0
INTERIOR_ONLY = 0
AFFECTS_TRACK = 0
SIMULATE_HEATING = 0.2
LAG = 0.89
FADE_AT = 90
FADE_SMOOTH = 50
MIRROR = 0.592, 0, 0
POSITION = 0, 0.459, 1.92
DIRECTION = 0, 0, 1
RANGE = 0.101
RANGE_GRADIENT_OFFSET = 0.5
SPECULAR_MULT = 2
SPOT = 180

[LIGHT_EXTRA_...]
BOUND_TO = EXT_headlights_bulb_p
AMBIENT_INFLUENCE = 2
COLOR = 2.4, 1.7, 0.7, 20
DIFFUSE_CONCENTRATION = 0.8
EXTERIOR_ONLY = 0
INTERIOR_ONLY = 0
AFFECTS_TRACK = 0
SIMULATE_HEATING = 0.2
LAG = 0.89
FADE_AT = 90
FADE_SMOOTH = 50
MIRROR = 0.445, 0, 0
POSITION = 0, 0.48, 1.93
DIRECTION = 0, 0, -1
RANGE = 0.101
RANGE_GRADIENT_OFFSET = 0.5
SPECULAR_MULT = 2
SPOT = 160

[LIGHT_EXTRA_...]
BOUND_TO = EXT_headlights_bulb_p
AMBIENT_INFLUENCE = 2
COLOR = 2.4, 1.7, 0.7, 15
DIFFUSE_CONCENTRATION = 0.8
EXTERIOR_ONLY = 0
INTERIOR_ONLY = 0
AFFECTS_TRACK = 0
SIMULATE_HEATING = 0.2
LAG = 0.89
FADE_AT = 90
FADE_SMOOTH = 50
MIRROR = 0.483, 0, 0
POSITION = 0, 0.425, 1.9
DIRECTION = 0, 0, 1
RANGE = 0.101
RANGE_GRADIENT_OFFSET = 0.5
SPECULAR_MULT = 2
SPOT = 140

[LIGHT_EXTRA_...]
BOUND_TO = EXT_headlights_bulb_hb
AMBIENT_INFLUENCE = 2
COLOR = 2.4, 1.7, 0.7, 280
DIFFUSE_CONCENTRATION = 0.8
EXTERIOR_ONLY = 0
INTERIOR_ONLY = 0
AFFECTS_TRACK = 0
SIMULATE_HEATING = 0.2
LAG = 0.89
FADE_AT = 90
FADE_SMOOTH = 50
MIRROR = 0.467, 0, 0
POSITION = 0, 0.457, 1.95
DIRECTION = 0, 0, -1
RANGE = 0.101
RANGE_GRADIENT_OFFSET = 0.5
SPECULAR_MULT = 2
SPOT = 180

[LIGHT_EXTRA_...]
BOUND_TO = EXT_headlights_bulb_hb
AMBIENT_INFLUENCE = 2
COLOR = 2.4, 1.7, 0.7, 180
DIFFUSE_CONCENTRATION = 0.8
EXTERIOR_ONLY = 0
INTERIOR_ONLY = 0
AFFECTS_TRACK = 0
SIMULATE_HEATING= 0.2
LAG = 0.89
FADE_AT = 90
FADE_SMOOTH = 50
MIRROR = 0.46, 0, 0
POSITION = 0, 0.457, 1.86
DIRECTION = 0, 0, 1
RANGE = 0.25
RANGE_GRADIENT_OFFSET = 0.5
SPECULAR_MULT = 2
SPOT = 90

[LIGHT_EXTRA_...]
BOUND_TO = EXT_headlights_bulb_fog
AMBIENT_INFLUENCE = 2
COLOR = 2.4,2.7,0.7,270
DIFFUSE_CONCENTRATION = 0.8
EXTERIOR_ONLY = 0
INTERIOR_ONLY = 0
AFFECTS_TRACK = 0
SIMULATE_HEATING = 0.2
LAG = 0.89
FADE_AT = 90
FADE_SMOOTH = 50
MIRROR = 0.35, 0, 0
POSITION = 0, 0.45, 2.015
DIRECTION = -0.45, -0.1, -1
RANGE = 0.101
RANGE_GRADIENT_OFFSET = 0.5
SPECULAR_MULT = 2
SPOT = 140

[LIGHT_EXTRA_...]
BOUND_TO = EXT_headlights_bulb_fog
AMBIENT_INFLUENCE = 2
COLOR = 2.4,2.7,0.7,190
DIFFUSE_CONCENTRATION = 0.8
EXTERIOR_ONLY = 0
INTERIOR_ONLY = 0
AFFECTS_TRACK = 0
SIMULATE_HEATING= 0.2
LAG = 0.89
FADE_AT = 90
FADE_SMOOTH = 50
MIRROR = 0.38, 0, 0
POSITION = 0, 0.45, 1.9
DIRECTION = -0.2, 0, 1
RANGE = 0.24
RANGE_GRADIENT_OFFSET = 0.5
SPECULAR_MULT = 2
SPOT = 50

[CustomEmissiveMulti]
Meshes = amy_cluster_lights       ; target mesh
Resolution = 512, 512      ; texture resolution for coordinates to work
@ = DashHighlight           ; bind dashboard highlight to emissive channel #0

@ = MultiItem, Role = TURNSIGNAL_LEFT, Start = "242, 112", Size = "144, 129"
@ = MultiItem, Role = TURNSIGNAL_RIGHT, Start = "246, 243", Size = "125, 114"
@ = MultiItem, Role = HANDBRAKE,  Start = "1, 86", Size = "154, 195"
@ = MultiItem, Role = HIGHBEAM,  Start = "167, 367", Size = "170, 137"
@ = MultiItem, Input = FUEL, InputThreshold = 1,  Color = "10,5,1,35", OffColor = "0,0,0, 0", Start = "167.4, 17", Size = "22.3, 74.6"
@ = MultiItem, Input = FUEL, InputThreshold = 5,  Color = "10,5,1,35", OffColor = "0,0,0, 0", Start = "189.5, 16.3", Size = "20.2, 77.1"
@ = MultiItem, Input = FUEL, InputThreshold = 10,  Color = "10,5,1,35", OffColor = "0,0,0, 0", Start = "209.7, 16", Size = "19.7, 75.9"
@ = MultiItem, Input = FUEL, InputThreshold = 15,  Color = "10,5,1,35", OffColor = "0,0,0, 0", Start = "229.7, 14.7", Size = "20.2, 77.7"
@ = MultiItem, Input = FUEL, InputThreshold = 20,  Color = "10,5,1,35", OffColor = "0,0,0, 0", Start = "249.4, 14.6", Size = "20.3, 82.3"
@ = MultiItem, Input = FUEL, InputThreshold = 25,  Color = "10,5,1,35", OffColor = "0,0,0, 0", Start = "269.9, 16.8", Size = "19.9, 81.7"
@ = MultiItem, Input = FUEL, InputThreshold = 30,  Color = "10,5,1,35", OffColor = "0,0,0, 0", Start = "289.1, 14.8", Size = "20.9, 78.8"
@ = MultiItem, Input = FUEL, InputThreshold = 35,  Color = "10,5,1,35", OffColor = "0,0,0, 0", Start = "310, 16.6", Size = "20.2, 76.9"
@ = MultiItem, Input = FUEL, InputThreshold = 40,  Color = "10,5,1,35", OffColor = "0,0,0, 0", Start = "329.8, 17.2", Size = "19.8, 76.7"
@ = MultiItem, Input = FUEL, InputThreshold = 45,  Color = "10,5,1,35", OffColor = "0,0,0, 0", Start = "350.3, 16.9", Size = "22.5, 75.8"
@ = MultiItem, Role = DashWarningEngine, Start = "2, 301", Size = "142, 204"
@ = MultiItem, Role = STALLED, Color = "25,5,1,1.1", Start = "400, 417", Size = "103, 91"
@ = MultiItem, Input = RPM, InputThreshold = 8400,  Color = "0,10,0, 2", Start = "404, 103", Size = "103, 101"
@ = MultiItem, Input = TURBO, InputThreshold = 0.9,  Color = "10,0,0, 2", Start = "406, 307", Size = "98, 103"
@ = MultiItem, Input = ABS, InputInverse=1,InputThreshold = 0, Color = "10,0,0, 2", Start = "407, 205", Size = "96, 103" 

[CustomEmissiveMulti]
Meshes = INT_decals
Resolution = 512, 512

@ = DashHighlight           ; bind dashboard highlight to emissive channel #0
@ = MultiItem, Input = HAZARD, Color = "10,0,0, 40", Start = "229, 181", Size = "75, 71"

[EMISSIVE_LIGHT_...]
NAME=INT_decals, amy_cluster_symbols, needle_rpm, needle_boost
COLOR=2,2,2,3
BIND_TO_HEADLIGHTS=1

[EMISSIVE_LIGHT_...]
INPUT = FUEL
INPUT_THRESHOLD = 0
NAME=amy_cluster_screen, INT_glass_clock
FALLBACK_BASE_COLOR= 2,2,2,3
COLOR=2,2,2,3

[EMISSIVE_EXTRA_C_...]
BIND_TO_EXTRA_C=1
NAME= EXT_headlights_bulb_fog
COLOR=2.4,2.7,0.7,870
CAST_LIGHT = 1
LOCATION = FRONT
BIND_TO_HEADLIGHTS=0
LAG=0.8

[EMISSIVE_LIGHT_0]
NAME= EXT_headlights_bulb_lb, EXT_headlights_bulb_p
COLOR=2.4,1.7,0.7,300
ACT_AS_HEADLIGHTS=1
CAST_LIGHT = 1
LOCATION = FRONT
BIND_TO_HEADLIGHTS=1

[EMISSIVE_HIGHBEAM_0]
NAME= EXT_headlights_bulb_hb
COLOR=2.4,1.7,0.7,650
ACT_AS_HEADLIGHTS=1
CAST_LIGHT = 1
LOCATION = FRONT
BIND_TO_HEADLIGHTS=0

[EMISSIVE_BRAKE_0]
NAME=EXT_taillgihts_glass_lights
CHANNEL=0
FALLBACK_HEADLIGHTS_COLOR=200, 20, 0, 0.09
LAG=0.6
COLOR=200,25,0,0.3
CAST_LIGHT = 1

[EMISSIVE_BRAKE_1]
NAME=EXT_brakelight_glass
FALLBACK_HEADLIGHTS_COLOR=255,20,10,0
LAG=0.6
COLOR=200,25,0,0.3
CAST_LIGHT = 0
CHANNEL=1

[EMISSIVE_REVERSE_0]
NAME= EXT_taillights_glass_reverse
COLOR=2,2,1.7,3
LAG=0.8
SIMULATE_HEATING=0.2
LOCATION=REAR
BIND_TO_HEADLIGHTS=0
CAST_LIGHT=1
CLUSTER_THRESHOLD=0.5
CHANNEL = 0

[EMISSIVE_TURNSIGNAL_RIGHT_0]
NAME= EXT_taillights_glass_indicators
COLOR=14,6,0,2
LAG=0.5
SIMULATE_HEATING=0.5
LOCATION=REAR
FADE_AT=550
CAST_LIGHT=1
CHANNEL=4

[EMISSIVE_TURNSIGNAL_LEFT_0]
NAME= EXT_taillights_glass_indicators
COLOR=14,6,0,2
LAG=0.5
SIMULATE_HEATING=0.5
LOCATION=REAR
FADE_AT=550
CAST_LIGHT=1
CHANNEL=3


[EMISSIVE_TURNSIGNAL_RIGHT_1]
NAME= EXT_headlights_glass_indicator
COLOR=14,6,0,2
LAG=0.5
SIMULATE_HEATING=0.1
LOCATION=FRONT
FADE_AT=550
CAST_LIGHT=1
CHANNEL=5

[EMISSIVE_TURNSIGNAL_LEFT_1]
NAME= EXT_headlights_glass_indicator
COLOR=14,6,0,2
LAG=0.5
SIMULATE_HEATING=0.1
LOCATION=FRONT
FADE_AT=550
CAST_LIGHT=1
CHANNEL=2

[EMISSIVE_TURNSIGNAL_RIGHT_2]
NAME= EXT_glass_sideindicator
COLOR=10,6,0,2
LAG=0.5
SIMULATE_HEATING=0.1
LOCATION=RIGHT
FADE_AT=550
CAST_LIGHT=1
CHANNEL=5

[EMISSIVE_TURNSIGNAL_LEFT_2]
NAME= EXT_glass_sideindicator
COLOR=10,6,0,2
LAG=0.5
SIMULATE_HEATING=0.1
LOCATION=LEFT
FADE_AT=550
CAST_LIGHT=1
CHANNEL=2

[EMISSIVE_HAZARD_0]
NAME=INT_hazard_button
COLOR=65,10,0,1
LAG=0.2
LOCATION=NONE

[LIGHT_BRAKE_0]
AFFECTS_TRACK=1
BOUND_EMISSIVE_MAX=500
BOUND_EXP=1
COLOR=1, 0, 0, 3
DIFFUSE_CONCENTRATION=0.88
DIRECTION=0, 0, -1
EXTERIOR_ONLY=1
FADE_AT=120
FADE_SMOOTH=30
INTERIOR_ONLY=0
MIRROR=0.539732
MIRROR_DIRECTION=0
NO_SELF_SPECULAR=1
OFF_FADE_MULT=0.3
OFF_MIRROR=0.539732
OFF_MULT=0.1
OFF_POSITION=0, 0.663183, -1.9255
OFF_RANGE_MULT=0.5
POSITION=0, 0.663183, -2.1
PREFER_FRONT=-1
RANGE=4
RANGE_GRADIENT_OFFSET=0.25
SINGLE_FREQUENCY=0
SPECULAR_MULT=1
SPOT=140
SPOT_EDGE=0.296, 0.296, 0.296
SPOT_EDGE_SHARPNESS=10
SPOT_SHARPNESS=0.38


[EXHAUST_FLAMES]
ANTILAG=0
ANTILAG_DELAY=0.02
ANTILAG_INTENSITY=1
ANTILAG_INTERVAL_MAX=0.0
ANTILAG_INTERVAL_MIN=0.00
ANTILAG_TURBO_THRESHOLD=0.0
DAMAGE=0
DAMAGE_DURATION=0.00
DAMAGE_INTENSITY=0
DAMAGE_PROBABILITY=0
DISCHARGE=1
DISCHARGE_CHARGE_TIME=0
DISCHARGE_DELAY=0.02
DISCHARGE_DURATION=0.5
DISCHARGE_INTENSITY=0.15
DISCHARGE_PROBABILITY=0.35
DISCHARGE_RPM_THRESHOLD_MAX=9000
DISCHARGE_RPM_THRESHOLD_MIN=4000
DISCHARGE_WATER_TEMPERATURE_THRESHOLD=70
FLAT_SHIFT=0
FLAT_SHIFT_COOLDOWN=0.5
FLAT_SHIFT_DURATION=0.01
FLAT_SHIFT_GAS_THRESHOLD=50
FLAT_SHIFT_INTENSITY=0.25
FLAT_SHIFT_PROBABILITY=0.4
FLAT_SHIFT_RPM_THRESHOLD=7000
LIMITER=0
LIMITER_DELAY=0.01
LIMITER_INTENSITY=0.5
LIMITER_RPM_THRESHOLD=8000

[EMISSIVE_EXTRA_A_...]
BIND_TO_EXTRA_A=1
BIND_TO_HEADLIGHTS=0
NAME = INT_owolight  ; name (one or more) of a mesh to glow
COLOR = 25, 25, 25, 1          ; glowing color if condition is met
OFF_COLOR = 0, 0, 0         ; glowing color otherwise, default value is 0
LAG = 0.8                   ; with zero, turns on and off immediately
SIMULATE_HEATING = 0.3      ; adds heating effect, going through orange tint while turning on and off
LOCATION = NONE            ; light location used for damage and light guessing, default value depends on type
ACT_AS_HEADLIGHTS = 0       ; if set to 1, emissiveness is raised when camera is caught in car’s headlights

[LIGHT_EXTRA_1]
BOUND_TO = INT_owolight
AMBIENT_INFLUENCE = 0.2
COLOR=8,6,4.5,2
DIFFUSE_CONCENTRATION=1.5
EXTERIOR_ONLY=0
INTERIOR_ONLY=0
AFFECTS_TRACK=1
SIMULATE_HEATING= 0.2
LAG=0.89
FADE_AT=100
FADE_SMOOTH=50
MIRROR=0, 0, 0
POSITION=0.04, 1.2, -0.45
DIRECTION=0, -1, 0
RANGE=1.3
RANGE_GRADIENT_OFFSET=0.9
SPECULAR_MULT=1.5
SPOT=150
SPOT_SHARPNESS=0.2

[SHADER_REPLACEMENT_...]
MATERIALS = ?
DOUBLE_FACE_SHADOW_BIASED = 1


[BRAKEDISC_FX_FRONT]
ACTIVE = 1             ; set to 0 to disable the whole thing if car uses ksBrakeDisc shader for something else
CERAMIC = 0            ; use ceramic look
CARVED = 0            ; add a bit of carving, radial lines (fast for shader to compute)
CARVED_FREQUENCY = 10  ; increase to make more lines
GLOW_OFFSET = 0.8      ; increase to offset heated and worn center more to the center, decrease to offset it more to the outside area; with 0.5, it would be in the middle
; Patch would try and guess size of brake disc and its inside area from its mesh, but if it fails:
DISC_RADIUS = 0.14           ; radius of a brake disc
DISC_INTERNAL_RADIUS = 0.069  ; radius of an inside part of a brake disc


[REAL_MIRROR_0]
ROTATION = 0.11, -0.015
FOV = 15

[REAL_MIRROR_1]
FOV = 16
ROTATION = 0.02, 0.03

[REAL_MIRROR_2]
ROTATION = -0.11, -0.05
FOV = 15

[ANIMATED_WIPER_0]
ANIMATION_CURVE_EXP = 2.100000
ANIMATION_CURVE_X = 0.160000
DEBUG = 0
MESHES = EXT_wipers
UNDERLYING_SURFACE = EXT_windows, EXT_windows_stickers
USE_MESH_FOR_TRACES = 0
GROUP_0 = -
GROUP_0_ANGLE_FROM = 0.200000
GROUP_0_ARM = 'EXT_wipers@A=29,32'
GROUP_0_ARM_END_WIPER_POS = 0.000000
GROUP_0_AXIS = -0.096665, 0.878873, 0.467159
GROUP_0_AXIS_OFFSET_0 = 0.000000, 0.707107, 0.707107
GROUP_0_AXIS_OFFSET_1 = 0.000000, 0.707107, 0.707107
GROUP_0_BENDING_FROM = 1.000000
GROUP_0_BENDING_TO = 1.000000
GROUP_0_END = 0.155921, 0.753128, 0.939217
GROUP_0_LAGGING_BEHIND = 'EXT_wipers@A=20'
GROUP_0_PIVOT = -0.564106, 0.682611, 0.937996
GROUP_0_RUBBER_FROM = -0.347992, 0.725883, 0.930626
GROUP_0_RUBBER_OFFSET_AMOUNT = 0.011000
GROUP_0_RUBBER_OFFSET_EXP = 2.004000
GROUP_0_RUBBER_OFFSET_POS = 0.538000
GROUP_0_RUBBER_TO = 0.155742, 0.742092, 0.936322
GROUP_0_TWIST_FROM = 0.300000
GROUP_0_TWIST_TO = 1.000000
GROUP_0_BASE = 'EXT_wipers@A=33-38'
GROUP_0_BASE_ANGLE_TO = -80.199997
GROUP_0_BASE_AXIS = -0.121876, 0.863105, 0.490098
GROUP_0_BASE_PIVOT = -0.553436, 0.683786, 0.937706
GROUP_0_TURNING = 'EXT_wipers@A=21-28,30-31'
GROUP_0_TURNING_AXIS = -0.096690, 0.868009, 0.487043
GROUP_0_TURNING_PARENT = BASE
GROUP_0_TURNING_PIVOT = -0.564106, 0.682611, 0.937996
GROUP_1 = -
GROUP_1_ARM = 'EXT_wipers@A=15'
GROUP_1_ARM_END_WIPER_POS = 0.000000
GROUP_1_AXIS = 0.115431, 0.898138, 0.424292
GROUP_1_AXIS_OFFSET_0 = 0.000000, 0.707107, 0.707107
GROUP_1_AXIS_OFFSET_1 = 0.000000, 0.707107, 0.707107
GROUP_1_BENDING_FROM = 1.000000
GROUP_1_BENDING_TO = 1.000000
GROUP_1_END = 0.683968, 0.727806, 0.814387
GROUP_1_LAGGING_BEHIND = 'EXT_wipers@A=1'
GROUP_1_PIVOT = -0.083003, 0.690322, 1.026566
GROUP_1_RUBBER_FROM = 0.179234, 0.728768, 0.951561
GROUP_1_RUBBER_OFFSET_AMOUNT = 0.015400
GROUP_1_RUBBER_OFFSET_POS = 0.495515
GROUP_1_RUBBER_TO = 0.681612, 0.721082, 0.806144
GROUP_1_TWIST_FROM = 0.300000
GROUP_1_TWIST_TO = 1.000000
GROUP_1_BASE = 'EXT_wipers@A=13-14,16-19'
GROUP_1_BASE_ANGLE_TO = -73.199997
GROUP_1_BASE_AXIS = 0.115431, 0.898138, 0.424292
GROUP_1_BASE_PIVOT = -0.083003, 0.690322, 1.026566
GROUP_1_TURNING = 'EXT_wipers@A=2-12'
GROUP_1_TURNING_AXIS = -0.010461, 0.828049, 0.560558
GROUP_1_TURNING_PARENT = BASE
GROUP_1_TURNING_PIVOT = -0.083003, 0.690322, 1.026566


[MESH_ADJUSTMENT_...]
MESHES = EXT_wipers
MOVE_TO = modelRoot:y

[TYRES_FX]
ENABLED = 1
FLEX_MULT = 1.0              ; Multiplier for sideways flexing (based on physics, but sometimes tyres might
                             ; have a strange configuration: this parameter can help)
FLEX_PROFILE_MULT = 0.1     ; Bending part of a tyre profile, from 0.1 to 2
FLEX_SQUASH_SMOOTHING = 0.1  ; Temporal filtering for squashing, from 0 to 1 (decrease for smoother changes)
FLEX_SKEW_RANGE_MULT = 3     ; Skew range
FLEX_SKEW_SMOOTHING = 0.1    ; Temporal filtering for skewing (decrease for smoother changes)
FLEX_MAX_SKEW_MULT = 0.8     ; Multiplier for maximum skewing
