[INCLUDE]
INCLUDE: common/custom_rims.ini
INCLUDE: common/no_popup_lights.ini

[DATA] 
DISABLE_LIGHTSINI=1
DISABLE_ANALOGINSTRUMENTSINI=0

[AUDIO_PROPERTIES]
TURBO_THROTTLE = 1    ; for turbo sound, “throttle” input, same as in engine event
ENGINE_EXT_BOOST = 0  ; for exterior engine sound, “boost” input, same as in turbo event
ENGINE_INT_BOOST = 0  ; for interior engine sound, “boost” input, same as in turbo event

[AUDIO_VOLUME]
LIMITER=0.2

[LIGHTING]
EMISSIVE_MULT=2
INTERIOR_FAKE_UPPER_SHADOW_HEIGHT=0.4
INTERIOR_FAKE_UPPER_SHADOW_FADE=-0.1
INTERIOR_FAKE_SHADOW_OPACITY=0.43
INTERIOR_FAKE_SHADOW_HEIGHT=-0.1
INTERIOR_FAKE_SHADOW_FADE=0.1

[BASIC]
BRAKES_THRESHOLD=0.01
ENGINE_STALLED_RPM_THRESHOLD=1
HAZARD_LIGHTS_ENGINE_LIFE_THRESHOLD=0.001
HEADLIGHTS_ARE_HEADLIGHTS=1
HORN_AS_SIREN=0
IS_LOW_BEAM_AVAILABLE=1
LIGHT_DAMAGE_SPEED_MAX=120
LIGHT_DAMAGE_SPEED_MIN=80
STOP_LODS_ADJUSTMENT=0
TURNING_LIGHTS_REPEAT=1

[BOUNCED_INTERIOR_LIGHT]
ACTIVE=1

[BOUNCED_HEADLIGHTS]
ACTIVE=1
FADE_AT=200
FADE_SMOOTH=50
FALLOFF=0.4
GRADIENT_OFFSET=0.8
MULT=1, 1, 1, 1
OFFSET=7

[BRAKEDISC_FX]
ACTIVE = 1             ; set to 0 to disable the whole thing if car uses ksBrakeDisc shader for something else
CERAMIC = 0           ; use ceramic look
CARVED = 1	           ; add a bit of carving, radial lines (fast for shader to compute)
CARVED_FREQUENCY = 10  ; increase to make more lines
GLOW_OFFSET = 0.75	; 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
DEBUG = 0
DISC_INTERNAL_RADIUS = 0.13
DISC_RADIUS = 1

ALPHA_MASK = 0.00, 0.1

WEAR_FORCE = 0.3
GLOW_FORCE = 0

------------------ LIGHTS PROJECTED ------------------
;HEADLIGHT
[LIGHT_HEADLIGHT_0]
AFFECTS_TRACK=1
AMBIENT_INFLUENCE = 0.85
BOUND_EMISSIVE_MAX=500
BOUND_EXP=0.1
COLOR=8,7,5.5,1.5
DIFFUSE_CONCENTRATION=0.88
DIRECTION=0, -0.2, 1
EXTERIOR_ONLY=0
FADE_AT=450
FADE_SMOOTH=50
INTERIOR_ONLY=0
LOWBEAM_RANGE_MAX=80
LOWBEAM_RANGE_MULT=0.9
LOWBEAM_RANGE_ONCOMING_MULT=0.4
MIRROR=0.5
MIRROR_DIRECTION=1
OFF_FADE_MULT=0.3
OFF_MIRROR=0.5
OFF_MULT=0
OFF_POSITION=0, 0.52, 2
OFF_RANGE_MULT=0.3
POPUP_ENABLED=1
POSITION=0, 0.54, 2.24
RANGE=70
RANGE_GRADIENT_OFFSET=0
SECOND_SPOT=80
SECOND_SPOT_INTENSITY=1
SECOND_SPOT_RANGE=20
SECOND_SPOT_SHARPNESS=0.0
SECOND_SPOT_SKIP=0.0
SPECULAR_MULT=1
SPOT=65
SPOT_EDGE=0.03, 0.03, 0.03
SPOT_EDGE_SHARPNESS=20
SPOT_SHARPNESS=0.1
SPOT_UP=0.02, 1, 0

;NUMBER PLATE
[LIGHT_LICENSEPLATE]
MESHES=EXT_PLATE
OFFSET=0.0061, 0.058, -0.0
RANGE=0.28
RANGE_GRADIENT_OFFSET=0
SPOT=145
SPOT_SHARPNESS=0.30
COLOR=5,4.2,2,15
FALLBACK_EMISSIVE=5,4.2,2.9,0.2
LAYOUT=TWO_ON_TOP
FADE_AT=50 

;CLUSTER

--------- LIGHTS EMISSIVE --------- 
;INT HIGH
[EMISSIVE_HIGHBEAM_0]
NAME=INT_HI
COLOR=4,5.5,16,3
LAG=0.01
LOCATION=INTERIOR

[EMISSIVE_LIGHT_0]
NAME= EXT_HL_REFRAC
COLOR=10,10,7,0.5
LAG=0.5
SIMULATE_HEATING=3
LOCATION=FRONT
BIND_TO_HEADLIGHTS=1
CAST_LIGHT=1
CLUSTER_THRESHOLD=0.5

;
[EMISSIVE_LIGHT_1]
NAME=INT_GAUGES,ARROW_SPEED,ARROW_RPM,ARROW_WATER_TEMP,ARROW_FUEL
COLOR=80,6,6,0.5
SIMULATE_HEATING=3
BIND_TO_HEADLIGHTS=1
CLUSTER_THRESHOLD=0.5

;
[EMISSIVE_LIGHT_...]
NAME=INT_DECALS
COLOR=1,1,1,1
SIMULATE_HEATING=3
BIND_TO_HEADLIGHTS=1
CLUSTER_THRESHOLD=0.5

;
[EMISSIVE_LIGHT_...]
NAME=INT_GAUGE_TURBO_DECAL
COLOR=8,7,6,1.5
SIMULATE_HEATING=3
BIND_TO_HEADLIGHTS=1
CLUSTER_THRESHOLD=0.5

;
[EMISSIVE_LIGHT_...]
NAME=ARROW_TURBO
COLOR=20,1,1,0.12
SIMULATE_HEATING=3
BIND_TO_HEADLIGHTS=1
CLUSTER_THRESHOLD=0.5


;REAR
[EMISSIVE_BRAKE_0]
NAME= EXT_TL_BRAKE
COLOR=50,5,2,1
FALLBACK_HEADLIGHTS_COLOR=50,5,2,0.5
LAG=0.5
SIMULATE_HEATING=1
LOCATION=REAR
CAST_LIGHT=1
CHANNEL=0

[EMISSIVE_BRAKE_1]
NAME= EXT_WING_GLASS
COLOR=50,5,2,0.5
LAG=0.8
SIMULATE_HEATING=3
LOCATION=REAR
CAST_LIGHT=1

[EMISSIVE_BRAKE_2]
NAME= EXT_WING_BULBS
COLOR=50,5,2,0.5
LAG=0.8
SIMULATE_HEATING=3
LOCATION=REAR
CAST_LIGHT=1

[EMISSIVE_REVERSE_0]
NAME= EXT_TL_REV
COLOR=2,2,1.7,20
LAG=0.5
SIMULATE_HEATING=2
LOCATION=REAR
BIND_TO_HEADLIGHTS=0
CAST_LIGHT=1
CLUSTER_THRESHOLD=0.5
CHANNEL = 0

;INDICATORS
[EMISSIVE_TURNSIGNAL_LEFT_0]
/ FL /
NAME=EXT_SIDE_IND
COLOR=80,60,10,3
LAG=0.8
SIMULATE_HEATING=0.5
LOCATION=LEFT
FADE_AT=550
CAST_LIGHT=1
CHANNEL = 4

[EMISSIVE_TURNSIGNAL_RIGHT_0]
/ FR /
NAME=EXT_SIDE_IND
COLOR=80,60,10,3
LAG=0.8
SIMULATE_HEATING=0.5
LOCATION=RIGHT
FADE_AT=550
CAST_LIGHT=1
CHANNEL = 3

;INDICATORS
[EMISSIVE_TURNSIGNAL_LEFT_1]
/ FL /
NAME= EXT_TL_IND
COLOR=80,60,10,3
LAG=0.8
SIMULATE_HEATING=0.5
LOCATION=REAR
FADE_AT=550
CAST_LIGHT=1
CHANNEL = 3

[EMISSIVE_TURNSIGNAL_RIGHT_1]
/ FR /
NAME= EXT_TL_IND
COLOR=80,60,10,3
LAG=0.8
SIMULATE_HEATING=0.5
LOCATION=REAR
FADE_AT=550
CAST_LIGHT=1
CHANNEL = 4

;INDICATORS
[EMISSIVE_TURNSIGNAL_LEFT_2]
/ FL /
NAME= EXT_HL_IND_REFRAC
COLOR=80,60,10,3
LAG=0.8
SIMULATE_HEATING=0.5
LOCATION=FRONT
FADE_AT=550
CAST_LIGHT=1
CHANNEL = 4

[EMISSIVE_TURNSIGNAL_RIGHT_2]
/ FR /
NAME= EXT_HL_IND_REFRAC
COLOR=80,60,10,3
LAG=0.8
SIMULATE_HEATING=0.5
LOCATION=FRONT
FADE_AT=550
CAST_LIGHT=1
CHANNEL = 3

;INDICATORS
[EMISSIVE_TURNSIGNAL_LEFT_3]
/ FL /
NAME= INT_IND_L
COLOR=1,10,1,5
LAG=0.8
SIMULATE_HEATING=3

[EMISSIVE_TURNSIGNAL_RIGHT_3]
/ FR /
NAME= INT_IND_R
COLOR=1,10,1,5
LAG=0.8
SIMULATE_HEATING=3

[EMISSIVE_...]
NAME=INT_STALL
BIND_TO_HEADLIGHTS=0
BIND_TO=STALLED
OFF_COLOR=0,0,0
COLOR=50,0.2,0.2,0.75
LAG=0.8
CAST_LIGHT=1

[EMISSIVE_HANDBRAKE_0]
NAME=INT_HB
BIND_TO_HEADLIGHTS=0
COLOR=50,0.2,0.2,0.8
OFF_COLOR=0,0,0
LAG=0.8
SIMULATE_HEATING=3
LOCATION=NONE
CAST_LIGHT=1

[EMISSIVE_...]
NAME=INT_FUEL
BIND_TO=FUEL
INPUT_THRESHOLD=7  
INPUT_THRESHOLD_INVERSE=1
COLOR=50,0.2,0.2,0.8

[EMISSIVE_HAZARD_0]
NAME=INT_HAZARDS
COLOR=50,3,1,1
OFF_COLOR=0,0,0
LAG=0.5

-------------- REFRACTIONS --------------
;headlights front
[REFRACTING_HEADLIGHT_0]
SURFACE = EXT_HL_REFRAC
INSIDE = EXT_HL_CASING

ABSORPTION = 0.01
AMBIENT_MULT = 3
BASE_EMISSIVE_K = 5
BOUNCED_BACK_MULT = 0.4
BULB_BLUR_K = 3
BULB_REFLECTION_K = 0.2
CUSTOM_BULB_0 = 0.478, 0.5, 0.076, 0
CUSTOM_BULB_1 = 0, 0.5, 0.022, 1
CUSTOM_BULB_2 = 1, 0.5, 0.011, 1
CUSTOM_BULB_3 = 0.5, 0.359, 1, 0.022
DIFFUSE_MAP_FILTER_MULT = 1
DIFFUSE_MAP_MULT = 0
DIRECTION = 2.0233e-06, -0.0348998, -0.999349
DYNAMIC_EMISSIVE_MAP = 0
EMISSIVE_MULT = 1.51
EXTRA_GLASS_COLORIZATION = 1
EXTRA_SIDE_THICKNESS = 0
F0 = 0.9
GLASS_COLOR = 0.25, 0.25, 0.25
GLASS_EMISSIVE_MULT = 0.25
GLASS_EXTRA_THICKNESS = 0.011
INNER_SPECULAR = 10
INNER_SPECULAR_EXP = 800
IOR = 2
IOR_FLYOUT_FLAT = 0
LOD_BIAS = -0.5
MIRROR_2_AS_5 = 0
MIRROR_3_AS_4 = 0
MIRROR_DIR = 1, 2.04454e-09, -9.48785e-09
MIRROR_POS = -0.000211716, 0.598485, 1.9375
NM_SHARE_EXT = 0.45
NM_SHARE_INT = 0.6
ORIGIN = 0.499876, 0.630797, 2.00935
RADIUS = 0.166326
REFLECTIVENESS_DIFFUSE_MULT = 60
REFLECTIVENESS_MULT = 1.5
REFLECTIVE_GAMMA = 1.5
REFRACTION_MASKING = 0
SIDE_FALLOFF = 0.3
USE_COLORED_BULBS = 1
USE_CUSTOM_BULBS = 1
USE_NORMAL_ALPHA = 1

;side ind
[REFRACTING_HEADLIGHT_1]
SURFACE = EXT_SIDE_IND
INSIDE = EXT_SIDE_IND_CASING

ABSORPTION = 0
AMBIENT_MULT = 3
BASE_EMISSIVE_K = 5
BOUNCED_BACK_MULT = 0.4
BULB_BLUR_K = 0.5
BULB_REFLECTION_K = 0.2
CUSTOM_BULB_0 = 0.5, 0.5, 0, 0.011
CUSTOM_BULB_1 = 1, 0.5, 0.011, 1
CUSTOM_BULB_2 = 0, 0.5, 0.011, 1
CUSTOM_BULB_3 = 0.5, 0.5, 0.011, 0
DIFFUSE_MAP_FILTER_MULT = 3.08
DIFFUSE_MAP_MULT = 0
DIRECTION = -0.987669, -0.00465724, -0.156412
DYNAMIC_EMISSIVE_MAP = 0
EMISSIVE_MULT = 0.05
EXTRA_GLASS_COLORIZATION = 0
EXTRA_SIDE_THICKNESS = 0
F0 = 0.9
GLASS_COLOR = 1, 0.227117, 0
GLASS_EMISSIVE_MULT = 0
GLASS_EXTRA_THICKNESS = 0.015
INNER_SPECULAR = 10
INNER_SPECULAR_EXP = 800
IOR = 1.5
IOR_FLYOUT_FLAT = 0
LOD_BIAS = -2
MIRROR_2_AS_5 = 0
MIRROR_3_AS_4 = 1
MIRROR_DIR = 0.998618, -0.000289403, 0.0523328
MIRROR_POS = -0.00125694, 0.690359, 0.910136
NM_SHARE_EXT = 0.25
NM_SHARE_INT = 0.35
ORIGIN = 0.935959, 0.719046, 0.951813
RADIUS = 0.0441
REFLECTIVENESS_DIFFUSE_MULT = 100
REFLECTIVENESS_MULT = 7.5
REFLECTIVE_GAMMA = 1
REFRACTION_MASKING = 0
SIDE_FALLOFF = 0.1
USE_COLORED_BULBS = 1
USE_CUSTOM_BULBS = 1
USE_NORMAL_ALPHA = 1


;wing brake
[REFRACTING_HEADLIGHT_2]
SURFACE = EXT_WING_GLASS
INSIDE = EXT_WING_BULBS,EXT_WING_CASING

ABSORPTION = 0
AMBIENT_MULT = 1
BASE_EMISSIVE_K = 0.25
BOUNCED_BACK_MULT = 0.4
BULB_BLUR_K = 4
BULB_REFLECTION_K = 0.2
CUSTOM_BULB_0 = 0.5, 0.511, 0.011, 0
CUSTOM_BULB_1 = 0.5, 0.5, 0, 0
CUSTOM_BULB_2 = 0.5, 0.5, 0, 0
CUSTOM_BULB_3 = 0.5, 0.5, 0, 0
DIFFUSE_MAP_FILTER_MULT = 3.5
DIFFUSE_MAP_MULT = 0
DIRECTION = -1.39698e-09, -5.60451e-09, 1.00001
DYNAMIC_EMISSIVE_MAP = 1
EMISSIVE_MULT = 0.16
EXTRA_GLASS_COLORIZATION = 1
EXTRA_SIDE_THICKNESS = 0
F0 = 0.9
GLASS_COLOR = 1, 0, 0
GLASS_EMISSIVE_MULT = 0
GLASS_EXTRA_THICKNESS = 0.0125
INNER_SPECULAR = 10
INNER_SPECULAR_EXP = 800
IOR = 1.5
IOR_FLYOUT_FLAT = 0
LOD_BIAS = -0.5
MIRROR_2_AS_5 = 0
MIRROR_3_AS_4 = 0
MIRROR_DIR = 1, 8.3237e-09, -2.61934e-09
MIRROR_POS = -0.337197, 1.11437, -2.11641
NM_SHARE_EXT = 0.2
NM_SHARE_INT = 0.5
ORIGIN = 0.000728607, 1.11421, -2.1196
RADIUS = 0.1615
REFLECTIVENESS_DIFFUSE_MULT = 60
REFLECTIVENESS_MULT = 2
REFLECTIVE_GAMMA = 1.5
REFRACTION_MASKING = 0
SIDE_FALLOFF = 0.5
USE_COLORED_BULBS = 0
USE_CUSTOM_BULBS = 0
USE_NORMAL_ALPHA = 1

DYNAMIC_EMISSIVE_MAP=1

;brake
[REFRACTING_HEADLIGHT_3]
SURFACE = EXT_TL_BRAKE
INSIDE = EXT_TL_CASING

ABSORPTION = 0
AMBIENT_MULT = 3
BASE_EMISSIVE_K = 1
BOUNCED_BACK_MULT = 0.4
BULB_BLUR_K = 1.5
BULB_REFLECTION_K = 0.29
CUSTOM_BULB_0 = 0.446, 0.5, 0.033, 0
CUSTOM_BULB_1 = 0.478, 0.152, 1, 0.011
CUSTOM_BULB_2 = 0, 0.5, 0.011, 1
CUSTOM_BULB_3 = 1, 0.5, 0.011, 1
DIFFUSE_MAP_FILTER_MULT = 2.75
DIFFUSE_MAP_MULT = 0
DIRECTION = -0.20794, 5.63677e-05, 0.978176
DYNAMIC_EMISSIVE_MAP = 0
EMISSIVE_MULT = 1
EXTRA_GLASS_COLORIZATION = 1
EXTRA_SIDE_THICKNESS = 0
F0 = 0.9
GLASS_COLOR = 0.596053, 0.0158067, 0
GLASS_EMISSIVE_MULT = 0
GLASS_EXTRA_THICKNESS = 0.004
INNER_SPECULAR = 10
INNER_SPECULAR_EXP = 800
IOR = 1.5
IOR_FLYOUT_FLAT = 0
LOD_BIAS = -0.5
MIRROR_2_AS_5 = 0
MIRROR_3_AS_4 = 0
MIRROR_DIR = 1.00012, 2.03727e-10, 2.62633e-07
MIRROR_POS = 0.00687218, 0.83058, -2.08808
NM_SHARE_EXT = 0.25
NM_SHARE_INT = 0.35
ORIGIN = 0.659859, 0.856013, -2.12902
RADIUS = 0.118493
REFLECTIVENESS_DIFFUSE_MULT = 100
REFLECTIVENESS_MULT = 2.5
REFLECTIVE_GAMMA = 1.5
REFRACTION_MASKING = 0
SIDE_FALLOFF = 0
USE_COLORED_BULBS = 1
USE_CUSTOM_BULBS = 1
USE_NORMAL_ALPHA = 1


;tl misc
[REFRACTING_HEADLIGHT_4]
SURFACE = EXT_TL_SIDE_2
INSIDE = EXT_TL_CASING

ABSORPTION = 0
AMBIENT_MULT = 1.2
BASE_EMISSIVE_K = 0.05
BOUNCED_BACK_MULT = 0.4
BULB_BLUR_K = 2
BULB_REFLECTION_K = 0.2
CUSTOM_BULB_0 = 0.5, 0.5, 0, 0
CUSTOM_BULB_1 = 0.5, 0.5, 0, 0
CUSTOM_BULB_2 = 0.5, 0.5, 0, 0
CUSTOM_BULB_3 = 0.5, 0.5, 0, 0
DIFFUSE_MAP_FILTER_MULT = 2.75
DIFFUSE_MAP_MULT = 0
DIRECTION = 4.64497e-08, -4.07353e-07, 1
DYNAMIC_EMISSIVE_MAP = 0
EMISSIVE_MULT = 1
EXTRA_GLASS_COLORIZATION = 1
EXTRA_SIDE_THICKNESS = 0
F0 = 0.9
GLASS_COLOR = 0.596078, 0.0156863, 0
GLASS_EMISSIVE_MULT = 0
GLASS_EXTRA_THICKNESS = 0
INNER_SPECULAR = 10
INNER_SPECULAR_EXP = 800
IOR = 1.5
IOR_FLYOUT_FLAT = 0
LOD_BIAS = -0.5
MIRROR_2_AS_5 = 0
MIRROR_3_AS_4 = 1
MIRROR_DIR = 1, -2.16824e-09, -2.64845e-08
MIRROR_POS = 0.0170364, 0.897969, -2.08615
NM_SHARE_EXT = 0.25
NM_SHARE_INT = 0.35
ORIGIN = 0.613115, 0.937492, -2.1412
RADIUS = 0.160514
REFLECTIVENESS_DIFFUSE_MULT = 100
REFLECTIVENESS_MULT = 2.5
REFLECTIVE_GAMMA = 1.5
REFRACTION_MASKING = 0
SIDE_FALLOFF = 0
USE_COLORED_BULBS = 0
USE_CUSTOM_BULBS = 0
USE_NORMAL_ALPHA = 1


;reflector
[REFRACTING_HEADLIGHT_5]
SURFACE = EXT_TL_REFLECTOR
INSIDE = EXT_TL_CASING

ABSORPTION = 0.005
AMBIENT_MULT = 1
BASE_EMISSIVE_K = 0.05
BOUNCED_BACK_MULT = 5
BULB_BLUR_K = 2
BULB_REFLECTION_K = 0.2
CUSTOM_BULB_0 = 0.5, 0.5, 0, 0
CUSTOM_BULB_1 = 0.5, 0.5, 0, 0
CUSTOM_BULB_2 = 0.5, 0.5, 0, 0
CUSTOM_BULB_3 = 0.5, 0.5, 0, 0
DIFFUSE_MAP_FILTER_MULT = 2.75
DIFFUSE_MAP_MULT = 0
DIRECTION = 3.13157e-08, 1.21902e-06, 1.00001
DYNAMIC_EMISSIVE_MAP = 0
EMISSIVE_MULT = 1
EXTRA_GLASS_COLORIZATION = 1
EXTRA_SIDE_THICKNESS = 0
F0 = 1
GLASS_COLOR = 1, 0, 0
GLASS_EMISSIVE_MULT = 0
GLASS_EXTRA_THICKNESS = 0
INNER_SPECULAR = 10
INNER_SPECULAR_EXP = 800
IOR = 1.5
IOR_FLYOUT_FLAT = 0
LOD_BIAS = -0.5
MIRROR_2_AS_5 = 0
MIRROR_3_AS_4 = 1
MIRROR_DIR = 1, -2.78524e-08, -6.30971e-08
MIRROR_POS = 0.0258942, 0.832994, -2.12895
NM_SHARE_EXT = 0.3
NM_SHARE_INT = 0.6
ORIGIN = 0.535057, 0.864695, -2.1382
RADIUS = 0.0572965
REFLECTIVENESS_DIFFUSE_MULT = 100
REFLECTIVENESS_MULT = 2.5
REFLECTIVE_GAMMA = 1.5
REFRACTION_MASKING = 0
SIDE_FALLOFF = 0
USE_COLORED_BULBS = 0
USE_CUSTOM_BULBS = 0
USE_NORMAL_ALPHA = 1


;side ridges
[REFRACTING_HEADLIGHT_6]
SURFACE = EXT_TL_SIDE
INSIDE = EXT_TL_CASING

ABSORPTION = 0
AMBIENT_MULT = 1
BASE_EMISSIVE_K = 0.05
BOUNCED_BACK_MULT = 1
BULB_BLUR_K = 2
BULB_REFLECTION_K = 0.2
CUSTOM_BULB_0 = 0.5, 0.5, 0, 0
CUSTOM_BULB_1 = 0.5, 0.5, 0, 0
CUSTOM_BULB_2 = 0.5, 0.5, 0, 0
CUSTOM_BULB_3 = 0.5, 0.5, 0, 0
DIFFUSE_MAP_FILTER_MULT = 3.35
DIFFUSE_MAP_MULT = 0
DIRECTION = -0.910808, -0.307255, -0.27586
DYNAMIC_EMISSIVE_MAP = 0
EMISSIVE_MULT = 1
EXTRA_GLASS_COLORIZATION = 1
EXTRA_SIDE_THICKNESS = 0
F0 = 1
GLASS_COLOR = 1, 0, 0
GLASS_EMISSIVE_MULT = 0
GLASS_EXTRA_THICKNESS = 0
INNER_SPECULAR = 10
INNER_SPECULAR_EXP = 800
IOR = 1.5
IOR_FLYOUT_FLAT = 0
LOD_BIAS = -0.5
MIRROR_2_AS_5 = 0
MIRROR_3_AS_4 = 1
MIRROR_DIR = 0.985504, -0.0199968, -0.168738
MIRROR_POS = -0.0218124, 0.90508, -2.02485
NM_SHARE_EXT = 0.1
NM_SHARE_INT = 0.3
ORIGIN = 0.830406, 0.979031, -1.94344
RADIUS = 0.1862
REFLECTIVENESS_DIFFUSE_MULT = 100
REFLECTIVENESS_MULT = 2.5
REFLECTIVE_GAMMA = 1.5
REFRACTION_MASKING = 0
SIDE_FALLOFF = 0.04
USE_COLORED_BULBS = 0
USE_CUSTOM_BULBS = 0
USE_NORMAL_ALPHA = 1


;indicator rear
[REFRACTING_HEADLIGHT_7]
SURFACE = EXT_TL_IND
INSIDE = EXT_TL_CASING

ABSORPTION = 0.02
AMBIENT_MULT = 2
BASE_EMISSIVE_K = 1
BOUNCED_BACK_MULT = 0.4
BULB_BLUR_K = 2
BULB_REFLECTION_K = 0.2
CUSTOM_BULB_0 = 0, 0.5, 0.011, 1
CUSTOM_BULB_1 = 1, 0.5, 0.011, 1
CUSTOM_BULB_2 = 0.5, 0.5, 0, 0
CUSTOM_BULB_3 = 0.478, 0.533, 0.033, 0
DIFFUSE_MAP_FILTER_MULT = 2.25
DIFFUSE_MAP_MULT = 0
DIRECTION = 2.45636e-08, 9.66794e-08, 1.00003
DYNAMIC_EMISSIVE_MAP = 0
EMISSIVE_MULT = 0.08
EXTRA_GLASS_COLORIZATION = 1
EXTRA_SIDE_THICKNESS = 0
F0 = 0.9
GLASS_COLOR = 1, 0.370058, 0
GLASS_EMISSIVE_MULT = 0.25
GLASS_EXTRA_THICKNESS = 0.00500001
INNER_SPECULAR = 10
INNER_SPECULAR_EXP = 800
IOR = 1.5
IOR_FLYOUT_FLAT = 0
LOD_BIAS = -0.5
MIRROR_2_AS_5 = 0
MIRROR_3_AS_4 = 1
MIRROR_DIR = 1, -1.54832e-08, 1.38534e-08
MIRROR_POS = 0.0972652, 0.958763, -2.08943
NM_SHARE_EXT = 0
NM_SHARE_INT = 0.6
ORIGIN = 0.637611, 0.984986, -2.11987
RADIUS = 0.0952732
REFLECTIVENESS_DIFFUSE_MULT = 100
REFLECTIVENESS_MULT = 2.5
REFLECTIVE_GAMMA = 1.5
REFRACTION_MASKING = 0
SIDE_FALLOFF = 0
USE_COLORED_BULBS = 1
USE_CUSTOM_BULBS = 1
USE_NORMAL_ALPHA = 1


;reverse
[REFRACTING_HEADLIGHT_8]
SURFACE = EXT_TL_REV
INSIDE = EXT_TL_CASING

ABSORPTION = 0
AMBIENT_MULT = 1
BASE_EMISSIVE_K = 1
BOUNCED_BACK_MULT = 0.4
BULB_BLUR_K = 2.5
BULB_REFLECTION_K = 0.2
CUSTOM_BULB_0 = 0.337, 0.522, 0.043, 0
CUSTOM_BULB_1 = 0, 0.5, 0.005, 1
CUSTOM_BULB_2 = 1, 0.5, 0.002, 1
CUSTOM_BULB_3 = 0.5, 0.5, 0, 0
DIFFUSE_MAP_FILTER_MULT = 1
DIFFUSE_MAP_MULT = 0
DIRECTION = -6.51926e-08, 2.52928e-08, 1
DYNAMIC_EMISSIVE_MAP = 0
EMISSIVE_MULT = 0.25
EXTRA_GLASS_COLORIZATION = 1
EXTRA_SIDE_THICKNESS = 0
F0 = 0.9
GLASS_COLOR = 0.25, 0.25, 0.25
GLASS_EMISSIVE_MULT = 0
GLASS_EXTRA_THICKNESS = 0
INNER_SPECULAR = 10
INNER_SPECULAR_EXP = 800
IOR = 1.2
IOR_FLYOUT_FLAT = 0
LOD_BIAS = -0.5
MIRROR_2_AS_5 = 0
MIRROR_3_AS_4 = 0
MIRROR_DIR = 1.00008, -1.22236e-08, -8.61473e-09
MIRROR_POS = 0.0761795, 0.919857, -2.09936
NM_SHARE_EXT = 0.35
NM_SHARE_INT = 0.45
ORIGIN = 0.581898, 0.948739, -2.13139
RADIUS = 0.076427
REFLECTIVENESS_DIFFUSE_MULT = 100
REFLECTIVENESS_MULT = 1.5
REFLECTIVE_GAMMA = 1.5
REFRACTION_MASKING = 0
SIDE_FALLOFF = 0.3
USE_COLORED_BULBS = 1
USE_CUSTOM_BULBS = 1
USE_NORMAL_ALPHA = 1


;ind front
[REFRACTING_HEADLIGHT_9]
SURFACE = EXT_HL_IND_REFRAC
INSIDE = EXT_HL_IND_CASING

ABSORPTION = 0.03
AMBIENT_MULT = 1
BASE_EMISSIVE_K = 0.15
BOUNCED_BACK_MULT = 0.4
BULB_BLUR_K = 2.5
BULB_REFLECTION_K = 0.2
CUSTOM_BULB_0 = 0.457, 0.848, 1, 0.011
CUSTOM_BULB_1 = 1, 0.5, 0.011, 1
CUSTOM_BULB_2 = 0, 0.5, 0.011, 1
CUSTOM_BULB_3 = 0.424, 0.511, 0.033, 0
DIFFUSE_MAP_FILTER_MULT = 2.75
DIFFUSE_MAP_MULT = 0
DIRECTION = -0.731495, -0.000557798, -0.681989
DYNAMIC_EMISSIVE_MAP = 0
EMISSIVE_MULT = 1
EXTRA_GLASS_COLORIZATION = 1
EXTRA_SIDE_THICKNESS = 0
F0 = 0.95
GLASS_COLOR = 1, 0.313331, 0
GLASS_EMISSIVE_MULT = 0
GLASS_EXTRA_THICKNESS = 0
INNER_SPECULAR = 10
INNER_SPECULAR_EXP = 800
IOR = 1.5
IOR_FLYOUT_FLAT = 0
LOD_BIAS = -0.5
MIRROR_2_AS_5 = 0
MIRROR_3_AS_4 = 1
MIRROR_DIR = 1.00006, 2.6776e-05, -1.67126e-06
MIRROR_POS = 0.00396729, 0.603533, 0.814244
NM_SHARE_EXT = 0.25
NM_SHARE_INT = 0.35
ORIGIN = 0.767658, 0.638041, 1.90743
RADIUS = 0.1351
REFLECTIVENESS_DIFFUSE_MULT = 100
REFLECTIVENESS_MULT = 3
REFLECTIVE_GAMMA = 1.5
REFRACTION_MASKING = 0
SIDE_FALLOFF = 0
USE_COLORED_BULBS = 1
USE_CUSTOM_BULBS = 1
USE_NORMAL_ALPHA = 1

[REFRACTING_HEADLIGHT_10]
SURFACE = EXT_TL_REFLECTOR_2
INSIDE = EXT_TL_REFLECTOR_INSIDE

ABSORPTION = 0
AMBIENT_MULT = 0
BASE_EMISSIVE_K = 0.05
BOUNCED_BACK_MULT = 0.4
BULB_BLUR_K = 2
BULB_REFLECTION_K = 0.2
CUSTOM_BULB_0 = 0.5, 0.5, 0, 0
CUSTOM_BULB_1 = 0.5, 0.5, 0, 0
CUSTOM_BULB_2 = 0.5, 0.5, 0, 0
CUSTOM_BULB_3 = 0.5, 0.5, 0, 0
DIFFUSE_MAP_FILTER_MULT = 10
DIFFUSE_MAP_MULT = 0
DIRECTION = 0, 0, 1
DYNAMIC_EMISSIVE_MAP = 0
EMISSIVE_MULT = 1
EXTRA_GLASS_COLORIZATION = 1
EXTRA_SIDE_THICKNESS = 0
F0 = 0.5
GLASS_COLOR = 0.596078, 0.0156863, 0
GLASS_EMISSIVE_MULT = 0.25
GLASS_EXTRA_THICKNESS = 0.00490001
INNER_SPECULAR = 10
INNER_SPECULAR_EXP = 800
IOR = 1.5
IOR_FLYOUT_FLAT = 0
LOD_BIAS = -0.5
MIRROR_2_AS_5 = 0
MIRROR_3_AS_4 = 1
MIRROR_DIR = 1, 0, 0
MIRROR_POS = 0.000199318, 0.855246, -2.08776
NM_SHARE_EXT = 0.4
NM_SHARE_INT = 0.6
ORIGIN = 0.409642, 0.855246, -2.11506
RADIUS = 0.110801
REFLECTIVENESS_DIFFUSE_MULT = 3
REFLECTIVENESS_MULT = 7
REFLECTIVE_GAMMA = 1
REFRACTION_MASKING = 0
SIDE_FALLOFF = 0.3
USE_COLORED_BULBS = 0
USE_CUSTOM_BULBS = 0
USE_NORMAL_ALPHA = 1


[REFRACTING_HEADLIGHT_11]
SURFACE = EXT_TL_REFLECTOR_3
INSIDE = EXT_TL_REFLECTOR_INSIDE

ABSORPTION = 0
AMBIENT_MULT = 2
BASE_EMISSIVE_K = 0.05
BOUNCED_BACK_MULT = 0.4
BULB_BLUR_K = 0
BULB_REFLECTION_K = -0
CUSTOM_BULB_0 = 0.5, 0.5, 0, 0
CUSTOM_BULB_1 = 0.5, 0.5, 0, 0
CUSTOM_BULB_2 = 0.5, 0.5, 0, 0
CUSTOM_BULB_3 = 0.5, 0.5, 0, 0
DIFFUSE_MAP_FILTER_MULT = 1
DIFFUSE_MAP_MULT = 0
DIRECTION = 0, 0, 1
DYNAMIC_EMISSIVE_MAP = 0
EMISSIVE_MULT = 1
EXTRA_GLASS_COLORIZATION = 1
EXTRA_SIDE_THICKNESS = 0
F0 = 0.9
GLASS_COLOR = 0.25, 0.25, 0.25
GLASS_EMISSIVE_MULT = 0
GLASS_EXTRA_THICKNESS = 0
INNER_SPECULAR = 10
INNER_SPECULAR_EXP = 800
IOR = 1.75
IOR_FLYOUT_FLAT = 0
LOD_BIAS = -0.5
MIRROR_2_AS_5 = 0
MIRROR_3_AS_4 = 1
MIRROR_DIR = 1, 0, 0
MIRROR_POS = 0.000199318, 0.950801, -2.08091
NM_SHARE_EXT = 0.5
NM_SHARE_INT = 0.6
ORIGIN = 0.453904, 0.950801, -2.11034
RADIUS = 0.0953484
REFLECTIVENESS_DIFFUSE_MULT = 100
REFLECTIVENESS_MULT = 1.1
REFLECTIVE_GAMMA = 2
REFRACTION_MASKING = 0
SIDE_FALLOFF = 0.3
USE_COLORED_BULBS = 0
USE_CUSTOM_BULBS = 0
USE_NORMAL_ALPHA = 1

---------------- BODY -----------------
[INCLUDE: common/materials_carpaint.ini]
CarPaintMaterial = EXT_BODY

[Material_CarPaint]
ClearCoatThickness = 0.1
SpecularColor = 1
SpecularMult = 0.6
FresnelMax = 0.4
FresnelC = 0.1

[Material_CarPaint_Metal]
Materials = EXT_RIM
UseMetallicReflections = 1
FresnelMax = 3
FresnelC = 0.2
FlakesK = 2
ClearCoatThickness = 0.06
ColoredSpecular = 1.0
AmbientSpecular = 0.5
BrightnessAdjustment = 0.38

----------------PBR MATERIALS-----------------
[INCLUDE: materials_interior.ini]

;Suspension
[Material_Plastic_v2]
Meshes = EXT_METAL
Metalness = 0.6
Reflectance = 0.3
Brightness = 0.35
DetailScale = 10
ApplyTilingFix = 1

;Leather
[Material_InteriorPBR]
Materials = INT_DASH_LEATHER 
Reflectance = 0.03
DetailNormalBlend = 1.5
DetailNormalPBRSmoothnessGamma = 1
DetailTextureBlur = 1
Brightness = 0.33

;Ext Black Plastics
[Material_InteriorPBR]
Materials = EXT_PLASTIC
Reflectance = 0.04
DetailNormalBlend = 0.25
DetailNormalPBRSmoothnessGamma = 1
DetailTextureBlur = 1
Brightness = 0.12

;Screws
[Material_Metal_v2]
Meshes = EXT_CHROME
Brightness = 0.5
Metalness = 0.1

;Screws
[Material_Metal_v2]
Meshes = RIM_METAL_RF,RIM_METAL_RR,RIM_METAL_LF,RIM_METAL_LR
Brightness = 0.2
Metalness = 0.5

[Material_Metal_v2]
Materials = CALIPER_DET
Brightness = 0.25
Metalness = 0.35

;
[Material_Metal_v2]
Meshes = EXT_EXHAUST_AFTERMARKET
Brightness = 0.65
Metalness = 0.1
LocalReflectionsSharpness = 0.7
ApplyTilingFix = 1
DetailScale = 10

[Material_Plastic_v2]
Meshes = INT_PLASTIC
DetailScale = 60
DetailNormalBlend = 0.4
Reflectance = 0.15
Smoothness = 0.5
Brightness = 0.2

[Material_Carpet_v2]
Meshes = INT_CARPET
Brightness = 1.2
ApplyTilingFix = 1
DetailTextureBlur = 0.6
DetailScale = 60

[Material_Metal_v2]
Meshes = EXT_BADGE_RED
Metalness = 0.9
Brightness = 0.1
DetailScale = 10
DetailNormalPBRSecondaryColor = 3, 0.02, 0.02, 0.2

[Material_Metal_v2]
Materials = EXT_CALIPER
Metalness = 0.05
Reflectance = 0.02
Brightness = 0.05
DetailScale = 0
DetailNormalPBRSecondaryColor = 1, 0.02, 0.02, 0.2

;
[Material_Plastic_v2]
Meshes = RIM_BLACK_RF,RIM_BLACK_RR,RIM_BLACK_LR,RIM_BLACK_LF
Brightness = 0.04
Reflectance = 0.1
Smoothness = 0.2

;Behind Rear Seats
[Material_Velvet_v2]
Meshes = INT_VELVET,INT_ROOFI_FLOOFI
Brightness = 0.15
DetailScale = 50
ApplyTilingFix = 1

;Seatbelts
[Material_InteriorPBR]
Materials = INT_SEATBELTS
Smoothness = 0.5
Reflectance = 0.3
Brightness = 0.2

;Seatbelts
[Material_InteriorPBR]
Materials = INT_LEATHER_DOTTED
Smoothness = 0.25
Reflectance = 0.15
Brightness = 0.76
DetailNormalBlend = 0.23
DetailNormalPBRSmoothnessGamma = 1
DetailTextureBlur = 0.5

;Int Grey Plastics
[Material_Plastic_v2]
Materials = INT_PLASTIC_LIGHTER
Brightness = 0.75
Reflectance = 0.12
DetailScale = 20
DetailNormalBlend = 0.5
DetailNormalPBRSmoothnessGamma = 1

-------------- TESTING --------------

[SHADER_REPLACEMENT_0]
MESHES = INT_DEFROST_LINES,EXT_PLASTIC
CULL_MODE = DOUBLESIDED

[SHADER_REPLACEMENT_1]
MESHES = INT_GAUGE_TURBO_DECAL
PROP_... = ksSpecularEXP, 50

--------------  GLASS  ---------------
[INCLUDE: common/materials_glass.ini]
ExteriorGlassTintedMaterials= 
Meshes = 
SHADER = smGlass

[Material_Glass]
IOR = 1.460
FilmIOR = $IOR

Meshes = EXT_TL_GLASS

ThicknessMult = 2.5 ;thicker glass passes less light through
ProfileFix = 0.04    ; adds thickness to glass for glazing angles

BrightnessAdjustment = 0  ; set to alter brightness
ExtraLightsAdjustment = 0.3  ; intensity of extra lights

MaskPass = 3.1  ; mask pass opacity
MaskPassColor = 255,0,0  ; mask pass color adjustment
---------------------------------------------

[EXHAUST_FLAMES]
ANTILAG=1 ; turbo antilag, i havent tested this yet
ANTILAG_DELAY=0.0 ; how long after antilag trigger do flames start, in seconds
ANTILAG_INTENSITY=0 ; flame size
ANTILAG_INTERVAL_MAX=0.0
ANTILAG_INTERVAL_MIN=0.00
ANTILAG_TURBO_THRESHOLD=0.0
DAMAGE=0 ; engine damage? idk
DAMAGE_DURATION=0.00
DAMAGE_INTENSITY=0
DAMAGE_PROBABILITY=0
DISCHARGE=1 ; lifting off the throttle
DISCHARGE_CHARGE_TIME=0 ; how long you have to press the throttle to "charge" the flames
DISCHARGE_DELAY=0.01 ; delay after throttle lift
DISCHARGE_DURATION=1 ; length of flame shooting, in seconds
DISCHARGE_PROBABILITY=1; chance of flame shoot on lift, 1 is guaranteed, 0 is never
DISCHARGE_INTENSITY=1.5; flame size
DISCHARGE_RPM_THRESHOLD_MAX=6500 ; self explanatory
DISCHARGE_RPM_THRESHOLD_MIN=5000 ; self explanatory
DISCHARGE_WATER_TEMPERATURE_THRESHOLD=70
FLAT_SHIFT=1 ; on upshift
FLAT_SHIFT_COOLDOWN=0.5 ; after upshift
FLAT_SHIFT_DURATION=0.01 ; length of flame shooting, in seconds
FLAT_SHIFT_GAS_THRESHOLD=50 ; how much gas needs to be pressed on upshift for flame, 100 is wide open
FLAT_SHIFT_INTENSITY=0.25 ; flame size
FLAT_SHIFT_PROBABILITY=0 ; chance of flame shoot on upshift
FLAT_SHIFT_RPM_THRESHOLD=7000
LIMITER=0 ; on hitting the limiter
LIMITER_DELAY=0 ; delay, in seconds
LIMITER_INTENSITY=0 ; flame size
LIMITER_RPM_THRESHOLD=8000 ; limiter flames will not shoot below this rpm

[SHADER_REPLACEMENT_...]
MESHES=INT_GAUGE_GLASS
SHADER=ksPerPixelReflection

[ANIMATED_WIPER_...]
MESHES=EXT_WIPER_BLADE_R,EXT_WIPER_ARM_R,EXT_WIPER_ARM_L,EXT_WIPER_BLADE_L
UNDERLYING_SURFACE=EXT_GLASS

[MESH_ADJUSTMENT_...]
MESHES=EXT_WIPER_BLADE_R,EXT_WIPER_ARM_R,EXT_WIPER_ARM_L,EXT_WIPER_BLADE_L 
MOVE_TO = modelRoot:y

[BASIC]
DISABLE_WIPER_KSANIM = 1

[ANIMATED_WIPER_0]
ANIMATION_CURVE_X = 0.250000
DEBUG = 1
MESHES = EXT_WIPER_BLADE_R, EXT_WIPER_ARM_R, EXT_WIPER_ARM_L, EXT_WIPER_BLADE_L
UNDERLYING_SURFACE = EXT_GLASS
GROUP_0 = 'EXT_WIPER_BLADE_R@A=*', 'EXT_WIPER_ARM_R@A=*', 'EXT_WIPER_BLADE_R@B=*', 'EXT_WIPER_ARM_R@B=*', 'EXT_WIPER_ARM_R@C=*', 'EXT_WIPER_BLADE_R@C=*'
GROUP_0_ANGLE_TO = -82.199997
GROUP_0_AXIS = -0.151084, 0.825351, 0.544030
GROUP_0_AXIS_OFFSET_0 = 0.000000, 0.707107, 0.707107
GROUP_0_AXIS_OFFSET_1 = 0.000000, 0.707107, 0.707107
GROUP_0_END = 0.130522, 0.960642, 1.010051
GROUP_0_PIVOT = -0.624542, 0.901156, 0.974533
GROUP_0_RUBBER_FROM = -0.362565, 0.954872, 0.971954
GROUP_0_RUBBER_OFFSET_AMOUNT = 0.012377
GROUP_0_RUBBER_OFFSET_POS = 0.441678
GROUP_0_RUBBER_TO = 0.130814, 0.954243, 1.009415
GROUP_0_BASE_AXIS = -0.151084, 0.825351, 0.544030
GROUP_0_BASE_PIVOT = -0.624542, 0.901156, 0.974533
GROUP_1 = 'EXT_WIPER_BLADE_L@A=*', 'EXT_WIPER_ARM_L@A=*', 'EXT_WIPER_BLADE_L@B=*', 'EXT_WIPER_ARM_L@B=*', 'EXT_WIPER_ARM_L@C=*', 'EXT_WIPER_BLADE_L@C=*'
GROUP_1_ANGLE_TO = -72.199997
GROUP_1_AXIS = -0.045234, 0.796805, 0.602541
GROUP_1_AXIS_OFFSET_0 = 0.000000, 0.707107, 0.707107
GROUP_1_AXIS_OFFSET_1 = 0.000000, 0.707107, 0.707107
GROUP_1_END = 0.657028, 0.957357, 0.882248
GROUP_1_PIVOT = -0.082214, 0.918321, 1.055450
GROUP_1_BASE_AXIS = -0.045234, 0.796805, 0.602541
GROUP_1_BASE_PIVOT = -0.082214, 0.918321, 1.055450
