[INCLUDE: common/materials_interior.ini] 
[INCLUDE: common/navigators.ini]
[INCLUDE: common/selflighting.ini]
[INCLUDE: common/no_popup_lights.ini]
[INCLUDE: common/materials_glass.ini]
[INCLUDE: common/materials_interior.ini]
[INCLUDE: common/materials_carpaint.ini]
[INCLUDE: common/gt3_exhaust_glow.ini]
[INCLUDE: common/custom_emissive.ini]
[INCLUDE: navigators_mixins.ini]
[INCLUDE: android_auto/config.ini]
[INCLUDE: pbr_int.ini]
[INCLUDE: pbr_ext.ini]

;;;;;;;;; Data Replacement ;;;;;;;;; 
[DATA] 
DISABLE_LIGHTSINI = 1

[LIGHTING] ; Standard Config - Do Not Change
EMISSIVE_BRAKELIGHTS_MULT=1
EMISSIVE_HEADLIGHTS_MULT=1
EMISSIVE_MULT=1
EMISSIVE_PARKINGLIGHTS_MULT=1
INTERIOR_FAKE_SHADOW_FADE=0.9
INTERIOR_FAKE_SHADOW_HEIGHT=0.4
INTERIOR_FAKE_SHADOW_OPACITY=0.9
INTERIOR_FAKE_UPPER_SHADOW_FADE=0.1
INTERIOR_FAKE_UPPER_SHADOW_HEIGHT=-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

[PARTICLES_FX]
BODYSPARKS_AMOUNT=0.25
BODYSPARKS_INTENSITY=0.2
BODYSPARKS_LIFETIME=0.4
BODY_SPARKS_COLOR=1, 0.5, 0, 10
COLLIDER_0SPARKS_AMOUNT=0.25
COLLIDER_0SPARKS_INTENSITY=0.2
COLLIDER_0SPARKS_LIFETIME=0.4
COLLIDER_0_SPARKS_COLOR=1, 0.5, 0, 10
DRAG_MULT=2
INTERIOR_BOUNDS_CHECK=1
INTERIOR_BOUNDS_HEIGHT=0.644874
LIFT_MULT=0.1
SPARKS_AMOUNT_MULT=2
SPARKS_COOLDOWN_LAG=0.96
SPARKS_DEPTH_EXP=4
SPARKS_MAX_DEPTH=0.0025
SPARKS_OVERLOAD_LAG=0.7
TRACES_LIGHTS_POS=0.655593, 0.825127, -2.15187

[INSTRUMENTS]
FUEL_SPLASH_MULT=0
HAZARDS_G_THRESHOLD=1.5
SPEED_FIX=1
SPEED_LAG=0.92
SPEED_LIMIT=


;;;;;;;;; Exterior PBR Shaders / By TGN Modding | Nell ;;;;;;;;; 
[TYRES_FX]
BROKEN_TYRES_DYNAMIC=1

[SHADOWED_WHEELS_FRONT]
AFFECT_SUSP_NODES=1
ANGLE_X=0
BOUND_TO_SUSPENSION=1
DISTANCE=3
EXTRA_AMBIENT_BRIGHTNESS=0.12
OFFSET=0.04
WIDTH=0.1

[SHADOWED_WHEELS_REAR]
AFFECT_SUSP_NODES=1
ANGLE_X=0
BOUND_TO_SUSPENSION=1
DISTANCE=3
EXTRA_AMBIENT_BRIGHTNESS=0.12
OFFSET=0.04
WIDTH=0.1

[REFLECTIONS_FX]
ALLOW_INTERIOR_SSAO=0
ALLOW_INTERIOR_SSGI=0
AUTOFIX=1
MASK_CUBEMAP_ENABLED=1
MASK_CUBEMAP_OFFSET=0, -0.1, 0.2
MASK_CUBEMAP_TWEAK=0.5

[SMART_MIRROR]
DISALLOW_MAPPING_NORMALIZATION=0
DISALLOW_REAR_MIRROR=0
DISALLOW_REFLECTION_TILTING=0
SHAKING=0

[STATUS_BATTERY]
BASE_VOLTAGE=12.4
MAX_VOLTAGE=13.6
RPM_LAG=0.98

[STATUS_EXHAUST]
TEMPERATURE_BOOST=400
TEMPERATURE_IDLE=400
TEMPERATURE_LAG_DOWN=0.995
TEMPERATURE_LAG_UP=0.995
TEMPERATURE_RPM=100

[STATUS_OIL]
PRESSURE_BASE=1
PRESSURE_LAG_DOWN=0.9985
PRESSURE_LAG_UP=0.998
PRESSURE_STEP=0.7
TEMPERATURE_LAG_DOWN=0.995
TEMPERATURE_LAG_UP=0.995
TEMPERATURE_MULT=1
TEMPERATURE_OFFSET=0
TEMPERATURE_RPM_FACTOR=0.03

[BRAKEDISC_FX]
ACTIVE = 1   
REFRESH = 1          ; set to 0 to disable the whole thing if car uses ksBrakeDisc shader for something else
CERAMIC = 0         ; use ceramic look
CARVED = 30              ; add a bit of carving, radial lines (fast for shader to compute)
CARVED_FREQUENCY = 10  ; increase to make more lines
GLOW_OFFSET = 0.5   ; 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.110
DISC_RADIUS = 0.200
ALPHA_MASK = 0.012, 0.07
LUMINOCITY_MASK = 0.08 0.3
WEAR_FORCE = 0.6
;GLOW_FORCE = 0.0

[EXTRA_FX] ; Front + Taillights Glass Only
MASK_GBUFFER = ExtGlass , ExtWindows , bodyshell_SUB4 , Object012

[SHADER_REPLACEMENT_...] ; Sets Mesh Transparent, Has to be Alpha-Blend
MESHES = Object011
IS_TRANSPARENT = 1

[SHADER_REPLACEMENT_...] ; Sets Mesh Transparent, Has to be Alpha-Blend
MESHES = bodyshell_SUB4
IS_TRANSPARENT = 1
IS_OPAQUE=bodyshell_SUB4

[SHADER_REPLACEMENT_...] ; Tyres
MATERIALS = Tyre
PROP_... = ksAmbient, 0.2
PROP_... = ksDiffuse, 0.4
PROP_... = fresnelEXP, 50
PROP_... = fresnelMaxLevel, 0.00
PROP_... = fresnelC, 0.00
PROP_... = ksSpecularEXP, 100
PROP_... = ksSpecular, 0.03
DOUBLE_FACE_SHADOW_BIASED = 1

[Material_Glass] ; Red Taillights Glass
Materials = 
FilmIOR = 1.8
ExtraLightsAdjustment = 0.05
BrightnessAdjustment = 0.1
Refraction = 1
Desaturate = 0
ThicknessMult = 2

[Material_Glass] ; Windows
Materials = ExtWindows
FilmIOR = 1.9
ExtraLightsAdjustment = .0
BrightnessAdjustment = .1
Refraction = 1
Desaturate = 0
ThicknessMult = 1

[Material_PhotoelasticGlass] ; Headlights
Materials = ExtGlass
FilmIOR = 1.5
PhotoelasticityMult = 0.8 ; doesn’t look good if too high
ThicknessMult = 1.0
BrightnessAdjustment = 0.3
ExtraLightsAdjustment = 0.1
; Ideally, there would be a texture for that, but we’re not going to draw
; all those textures for Kunos cars, so here are some parameters for perlin noise
; insteadr
PhotoelasticityBaseScale = 3.5     ; this parameter alters scale in general
PhotoelasticityNoiseScale = 0.328  ; deeply affects randomization process, careful with it
PhotoelasticitySpotsScale = 0.325   ; spots for limiting effect to some areas
PhotoelasticitySpotsOffset = 0.0  ; offset for spots, to try and fit effect nice on existing meshes
PhotoelasticityStripesScale = 3.5   ; how many stripes are there
ProfileFix = 0.0

[WIPERS] ; Wiper Shake 
FRONT_0= 
FRONT_1= 
REAR_0= 
WIND_THRESHOLDS_KMH = 150, 350 ; speed for wipers to start vibrating and for maximum vibration
WIND_AMPLITUDE_MULT = 1 ; multiplier for amplitude
WIND_FREQUENCY_MULT = 1 ; multiplier for frequency
WIND_OFFSET = 0.03 ; base animation 

[WIPERS_TRACE_...]
SURFACE = 
WIPERS = 

[EMISSIVE_WATER_TEMP_0_EXHAUST_GLOW] ; Exhaust Glow
MESHES = 
COLOR = 25, 3, 0, 3
USE_SMOOTH_TRANSITION = 1
INPUT_MIN = 50
INPUT_MAX = 60
INPUT_LUT = (| 84 = 0 | 95 = 1 |)
AFFECTS_TRACK = 1
SPECULAR_MULT = 3

[LIGHT_FLAME_0] ; Flame Brightness
BRIGHTNESS_MULT=1
CAR_BRIGHTNESS_MULT=1
CAR_RANGE_MULT=1
COLOR=5,1,1,1
DEBUG=0
DIRECTION_MULT=1, 1, 1
FADE_AT=150
FADE_SMOOTH=30
OFFSET=0.2
RANGE=7
RANGE_GRADIENT_OFFSET=0.2
SPOT=238.322
SPOT_SHARPNESS=0.0

[EXHAUST_FLAMES] ; CSP Flames Configuration
ANTILAG=0 ; turbo antilag, i havent tested this yet
ANTILAG_DELAY=0.0 ; how long after antilag trigger do flames start, in seconds
ANTILAG_INTENSITY=10 ; flame size
ANTILAG_INTERVAL_MAX=7000
ANTILAG_INTERVAL_MIN=65000
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.1 ; how long you have to press the throttle to "charge" the flames
DISCHARGE_DELAY=0.1 ; delay after throttle lift
DISCHARGE_DURATION=0.55 ; length of flame shooting, in seconds
DISCHARGE_PROBABILITY=1; chance of flame shoot on lift, 1 is guaranteed, 0 is never
DISCHARGE_INTENSITY=1; flame size
DISCHARGE_RPM_THRESHOLD_MAX=7200 ; self explanatory
DISCHARGE_RPM_THRESHOLD_MIN=2000 ; self explanatory
DISCHARGE_WATER_TEMPERATURE_THRESHOLD=70
FLAT_SHIFT=1 ; on upshift
FLAT_SHIFT_COOLDOWN=0 ; after upshift
FLAT_SHIFT_DURATION=0.1 ; 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=.1 ; flame size
FLAT_SHIFT_PROBABILITY=.5 ; chance of flame shoot on upshift
FLAT_SHIFT_RPM_THRESHOLD=6500
LIMITER=1 ; on hitting the limiter
LIMITER_DELAY=0.2 ; delay, in seconds
LIMITER_INTENSITY=.1 ; flame size
LIMITER_RPM_THRESHOLD=6500 ; limiter flames will not shoot below this rpm

;;;;;;;;; Exterior Lights / By TGN Modding | Nell ;;;;;;;;; 
[EMISSIVE_HIGHBEAM_...] ; High Beam
NAME=lights_SUB0 , BodyKitX517 , BodyKitX516
COLOR=80,100,120,.5
FALLBACK_HEADLIGHTS_COLOR=80,100,120,2
LAG=0.1
SIMULATE_HEATING=0
LOCATION=FRONT
CAST_LIGHT=0
CLUSTER_THRESHOLD=0.5

[EMISSIVE_LIGHT_...] ; Lowbeam 2 - Leave Blank Unless Used
NAME=Object009
COLOR=50,0,0,.05
LAG=0.1
SIMULATE_HEATING=0
LOCATION=FRONT
CAST_LIGHT=1
CLUSTER_THRESHOLD=0.5

[EMISSIVE_HIGHBEAM_...] ; High Beam
NAME=headlight_l , headlight_r
COLOR=80,100,120,2
FALLBACK_HEADLIGHTS_COLOR=80,100,120,.1
LAG=0.1
SIMULATE_HEATING=0
LOCATION=FRONT
CAST_LIGHT=1
CLUSTER_THRESHOLD=0.5

[EMISSIVE_HIGHBEAM_...] ; High Beam
NAME=extralight_1 , extralight_2
COLOR=80,100,120,2
LAG=0.1
SIMULATE_HEATING=0
LOCATION=FRONT
CAST_LIGHT=1
CLUSTER_THRESHOLD=0.5

[EMISSIVE_LIGHT_...] ; DRL Taillights - Colour MUST MATCH "50,2,-10"
NAME=int_taillights , BodyKitX501
COLOR=50, 1, -10,1
LAG=0.1
SIMULATE_HEATING=0
LOCATION=REAR
CAST_LIGHT=1
CLUSTER_THRESHOLD=0.5

[EMISSIVE_BRAKE_...] ; Emergency Flash
NAME=BodyKitX518 , brakelight_r
COLOR=50, 0, 0, 25 
CAST_LIGHT=1
ACT_AS_HEADLIGHTS=0
FALLBACK_BRAKES_COLOR =50, 0, 0, 15 
INPUT = BRAKE
INPUT_THRESHOLD = 0.95
BLINK_REPEAT = 1 ; just make it blink
BLINK_FREQENCY_HZ = 4 ; sets frequency for blinking

[EMISSIVE_BRAKE_...]
NAME=Plane.007
COLOR=50, 0, 0, 1
CAST_LIGHT=1
ACT_AS_HEADLIGHTS=0
FALLBACK_BRAKES_COLOR =50, 0, 0, 15 


[EMISSIVE_REVERSE_...] ; Reverse Lights
NAME = BodyKitX505.001  ; name (one or more) of a mesh to glow
COLOR = 120,110,130,2       ; glowing color if condition is met
LAG = 0.2                   ; with zero, turns on and off immediately
SIMULATE_HEATING = 1        ; adds heating effect, going through orange tint while turning on and off
LOCATION = REAR             ; 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_LICENSEPLATE] ; License Plate ; no need to specify meshes names if material is using Plate_D.dds and Plate_NM.dds textures
MESHES= numplate_001_001
OFFSET=-0.23, 0.1, 0.0
RANGE=0.6
RANGE_GRADIENT_OFFSET=0.4
SPOT=80
SPOT_SHARPNESS=0.2
COLOR=5,6,10,2
LAYOUT=TWO_ON_TOP ; other supported values: TWO_ON_TOP, ONE_ON_TOP, TWO_ON_BOTTOM, ONE_ON_BOTTOM

; Turn Signals 
[EMISSIVE_TURNSIGNAL_LEFT_...] ; Front Left Turnsignal
NAME=indicator_lf
COLOR=150,20,0,5
FALLBACK_HEADLIGHTS_COLOR=120,100,120,0
LAG=0.1
REPEAT_FREQENCY_HZ=2.6
SIMULATE_HEATING=0
LOCATION=FRONT
CAST_LIGHT=1
CLUSTER_THRESHOLD=0.5

[EMISSIVE_TURNSIGNAL_LEFT_...] ; Rear Left Turnsignal 
NAME=turn_RL
COLOR=150,20,0,2
LAG=0.1
REPEAT_FREQENCY_HZ=2.6
SIMULATE_HEATING=0
LOCATION=REAR
CAST_LIGHT=1
CLUSTER_THRESHOLD=0.5

[EMISSIVE_TURNSIGNAL_RIGHT_...] ; Front Right Turnsignal
NAME=indicator_rf
COLOR=150,20,0,5
FALLBACK_HEADLIGHTS_COLOR=120,100,120,0
LAG=0.1
REPEAT_FREQENCY_HZ=2.6
SIMULATE_HEATING=0
LOCATION=FRONT
CAST_LIGHT=1
CLUSTER_THRESHOLD=0.5

[EMISSIVE_TURNSIGNAL_RIGHT_...] ; Rear Right Turnsignal 
NAME=turn_RR
COLOR=150,20,0,2
LAG=0.1
REPEAT_FREQENCY_HZ=2.6
SIMULATE_HEATING=0
LOCATION=REAR
CAST_LIGHT=1
CLUSTER_THRESHOLD=0.5

; Interior Lights
[EMISSIVE_LIGHT_...] ; Cluster Light
NAME=bodyshell_SUB4
COLOR=2,2,4,2000
OFF_COLOR=2,2,2,10
LAG=0.2
SIMULATE_HEATING=0
LOCATION=INTERIOR
CAST_LIGHT=1
CLUSTER_THRESHOLD=0

[EMISSIVE_LIGHT_...] ; Arrows Light
NAME=arrowrpm3 , Arrow_speed2 , arrowtemp3 , arrowfuel3
COLOR=20,5,0,2
OFF_COLOR=20,5,0,1
LAG=0.2
SIMULATE_HEATING=0
LOCATION=INTERIOR
CAST_LIGHT=1
CLUSTER_THRESHOLD=0

[EMISSIVE_LIGHT_...] ; Navigation Light
NAME=bodyshell_SUB2 , polymsh_extracted13.002 , Object007 , interior_digital_gauge_base, bodyshell_SUB018
COLOR=2,2,2,2
LAG=0.2
SIMULATE_HEATING=0
LOCATION=INTERIOR
CAST_LIGHT=1
CLUSTER_THRESHOLD=0

[EMISSIVE_LIGHT_...] ; Buttons Light
NAME=steeringwheel_SUB0 , door_dside_f_SUB0 , bodyshell_SUB5 , door_pside_f_SUB0
COLOR=2,1,0
LAG=0.2
SIMULATE_HEATING=0
LOCATION=INTERIOR
CAST_LIGHT=1
CLUSTER_THRESHOLD=0

[EMISSIVE_LIGHT_...] ; Buttons Light
NAME=Object011 , bumper_f_SUB3, Object0151
COLOR=20,0,2,0.28
LAG=0.2
SIMULATE_HEATING=0
LOCATION=INTERIOR
CAST_LIGHT=1
CLUSTER_THRESHOLD=0


[EMISSIVE_LIGHT_...] ; Buttons Light
NAME=Object156
COLOR=29,0,1,10
LAG=0.2
SIMULATE_HEATING=0
LOCATION=INTERIOR
CAST_LIGHT=1
CLUSTER_THRESHOLD=0


[EMISSIVE_LIGHT_...] ; Buttons Light
NAME=Object012 , Object013 , Object014
COLOR=1,1,2
LAG=0.2
SIMULATE_HEATING=0
LOCATION=INTERIOR
CAST_LIGHT=1
CLUSTER_THRESHOLD=0

;;;;;;;;; Light Effects Config / By TGN Modding | Nell ;;;;;;;;; 
[SelfLight_Headlights] ; Lowbeam Selflighting
MIRROR = 0.700 ; X Position
DIRECTION = 0, 0,1
POSITION = 0.0, 0.754, 2.075
AFFECTS_TRACK = 0
DIFFUSE_CONCENTRATION = 0.9
BOUND_TO = headlight_l
SPOT_SHARPNESS =0.0
SPOT = 160
COLOR=120,130,145,0.4
SPECULAR_MULT = 1
RANGE = 0.4

[SelfLight_Headlights] ; Lowbeam Selflighting
MIRROR = 0.56 ; X Position
DIRECTION = 0, 0,1
POSITION = 0.0, 0.733, 2.17
AFFECTS_TRACK = 0
DIFFUSE_CONCENTRATION = 0.9
BOUND_TO = headlight_l
SPOT_SHARPNESS =0.0
SPOT = 60
COLOR=120,120,120,1
SPECULAR_MULT = 1
RANGE = 0.4

[LIGHT_HEADLIGHT_...]
BIND_TO_HEADLIGHTS=1
COLOR=10,10,12,2
DIFFUSE_CONCENTRATION=0.9
EXTERIOR_ONLY=0
INTERIOR_ONLY=0
AFFECTS_TRACK=1
LAG=0.9
FADE_AT=90
FADE_SMOOTH=20
MIRROR=0.66, 0, 0
POSITION=0.0, 0.883, 2.506
DIRECTION=0, 0, 1
RANGE=100
RANGE_GRADIENT_OFFSET=0.00
SPECULAR_MULT=0
SPOT=50
SPOT_SHARPNESS=0.1
BOUND_EMISSIVE_MAX=500
BOUND_EXP=0.1
LOWBEAM_RANGE_MAX=40
LOWBEAM_RANGE_MULT=0.8
LOWBEAM_RANGE_ONCOMING_MULT=0.4

[LIGHT_BRAKE_...] ; Brakelights Both DRL/Brakelights are located inside this
AFFECTS_TRACK=1
BOUND_EMISSIVE_MAX=500
BOUND_EXP=1
COLOR=1, 0.181034, 0, 3
DIFFUSE_CONCENTRATION=0.88
DIRECTION=0, -.5, -1
EXTERIOR_ONLY=1
FADE_AT=120
FADE_SMOOTH=30
INTERIOR_ONLY=0
MIRROR=0.596
MIRROR_DIRECTION=0
POSITION=0.06, 0.609, -1.99
RANGE=7
RANGE_GRADIENT_OFFSET=0.35
SINGLE_FREQUENCY=0
SPECULAR_MULT=1
SPOT=100
SPOT_EDGE=0.135, 0.135, 0.135
SPOT_EDGE_SHARPNESS=10
SPOT_SHARPNESS=0.4

[LIGHT_REVERSE_...] ; Reverse Lights
AFFECTS_TRACK=1
BOUND_EMISSIVE_MAX=500
BOUND_EXP=1
COLOR=1, 1, 1, 5
DIFFUSE_CONCENTRATION=0.88
DIRECTION=0, 0, -1
EXTERIOR_ONLY=1
FADE_AT=120
FADE_SMOOTH=30
INTERIOR_ONLY=0
MIRROR=0.389
MIRROR_DIRECTION=0
NO_SELF_SPECULAR=1
POSITION=0, 0.612, -2.07
RANGE=4
RANGE_GRADIENT_OFFSET=0.5
SINGLE_FREQUENCY=0
SPECULAR_MULT=1
SPOT=155
SPOT_EDGE=0.12, 0.12, 0.12
SPOT_EDGE_SHARPNESS=0
SPOT_SHARPNESS=0.4

[LIGHT_EXTRA_...]
BIND_TO_HEADLIGHTS=1
COLOR=500,500,600, 0.6   
DIFFUSE_CONCENTRATION=0.7
EXTERIOR_ONLY=0
INTERIOR_ONLY=0
AFFECTS_TRACK=0
SIMULATE_HEATING= 0.5
LAG=0.6
FADE_AT=0.0
FADE_SMOOTH=53
MIRROR=0.780, 0.0, 0
POSITION=0.0, 0.752, 1.98
DIRECTION=-1.0, -0.2, 0.5
RANGE=0.52
RANGE_GRADIENT_OFFSET=0.01
SPECULAR_MULT=3
SPOT=50
SPOT_SHARPNESS=0.001

[LIGHT_EXTRA_...]
BIND_TO_HEADLIGHTS=1
COLOR=500,500,600, 0.2   
DIFFUSE_CONCENTRATION=0.9
EXTERIOR_ONLY=0
INTERIOR_ONLY=0
AFFECTS_TRACK=0
SIMULATE_HEATING= 0.5
LAG=0.6
FADE_AT=0.0
FADE_SMOOTH=53
MIRROR=0.0, 0.0, 0
POSITION=0.358, 0.985, 0.915
DIRECTION=0.0, 0.0, -1.0
RANGE=0.32
RANGE_GRADIENT_OFFSET=0.01
SPECULAR_MULT=3
SPOT=100
SPOT_SHARPNESS=0.001

[LIGHT_EXTRA_...]
BIND_TO_HEADLIGHTS=1
COLOR=20,0,2,5
DIFFUSE_CONCENTRATION=0.7
EXTERIOR_ONLY=0
INTERIOR_ONLY=0
AFFECTS_TRACK=0
SIMULATE_HEATING= 0.5
LAG=0.6
FADE_AT=0.0
FADE_SMOOTH=53
MIRROR=0.0, 0.0, 0
POSITION=0.686, 0.599, 1.08
DIRECTION=-1.0, -1, -1.0
RANGE=0.68
RANGE_GRADIENT_OFFSET=0.01
SPECULAR_MULT=0
SPOT=90
SPOT_SHARPNESS=0.001

[LIGHT_EXTRA_...]
BIND_TO_HEADLIGHTS=1
COLOR=20,0,2,1
DIFFUSE_CONCENTRATION=0.9
EXTERIOR_ONLY=0
INTERIOR_ONLY=0
AFFECTS_TRACK=0
SIMULATE_HEATING= 0.5
LAG=0.6
FADE_AT=0.0
FADE_SMOOTH=53
MIRROR=0.0, 0.0, 0
POSITION=0.0, 0.68, 0.211
DIRECTION=0.0, 0, 1.0
RANGE=0.60
RANGE_GRADIENT_OFFSET=0.0
SPECULAR_MULT=1
SPOT=90
SPOT_SHARPNESS=0.001


;;;;;;;;; Animation Config / By TGN Modding | Nell ;;;;;;;;; 
[ANIMATION_0]
FILE=car_hood.ksanim
TIME= 2.0
BIND_TO_EXTRA_B=1

[ODOMETER_MAIN]
DIGITAL_ITEM=1
DIGITAL_ITEM_NUMBER_FORMAT=06.0
UPPER_BOUND=999999
; add zero to add leading zeros

[ODOMETER_TRIP]
DIGITAL_ITEM=6
DIGITAL_ITEM_NUMBER_FORMAT=06.1
UPPER_BOUND=9999

[DI_FUEL_ESTIMATE_DISTANCE_TOTAL_...]
DIGITAL_ITEM = 20
DIGITAL_ITEM_NUMBER_FORMAT = 1.0
OUTPUT_MULTIPLIER = 0.01

;;;;;;;;; Audio Volume [CAREFULL WITH THIS] / By TGN Modding | Nell ;;;;;;;;; 
[AUDIO_PROPERTIES]
ENGINE_EXT_BOOST=1
ENGINE_INT_BOOST=1
TURBO_THROTTLE=1

[AUDIO_VOLUME]
BACKFIRE_EXT=1
BACKFIRE_INT=1
BODYWORK=1
DIRT=1
DOWN_SHIFT=1
ENGINE_EXT=1
ENGINE_INT=1
GEAR_EXT=1
GEAR_GRIND=1
GEAR_INT=1
HORN=1
LIMITER=1
TRACTION_CONTROL_EXT=1
TRACTION_CONTROL_INT=1
TRANSMISSION=1
TURBO=.4
WIND=1

[AUDIO_PITCH]
ENGINE_EXT = 1.00
ENGINE_INT = 1.00
GEAR_EXT = 1.0
GEAR_INT = 1.0
BODYWORK = 1.0
WIND = 1.0
DIRT = 1.0
DOWN_SHIFT = 1.0
HORN = 1
GEAR_GRIND = 1.0
BACKFIRE_EXT = 1
BACKFIRE_INT = 1
TRACTION_CONTROL_EXT = 1
TRACTION_CONTROL_INT = 1
TRANSMISSION = 1
LIMITER = 1
TURBO = 1.0
HIT = 1
SCRAPE = 1
WHEEL = 1
SKID_EXT = .7
SKID_INT = .7

;;;;;;;;; Display Settings [CAREFULL WITH THIS] / By TGN Modding | Nell ;;;;;;;;; 
[Display_AndroidAuto] ; Android Auto [!!ONLY WORKS WITH 1.78PREVIEW+]
Meshes = bodyshell_SUB2 ; display mesh
Resolution = 1024, 540   ; texture resolution
Size = 1024, 540           ; size of the screen area
Offset = 10, 10              ; left top corner of screen area
Scale = .85                  ; might need adjusting to get the scale right
RearCameraPosition = 0, 0.75, -2.5  ; position of rear view camera

;;;;;;;;; Spotify Integration ;;;;;;;;; 
[CAR_STEREO_...] ; Currently Set For Audi
ACTIVE = $" read('csp/version', 0) >= 1279 "

MESHES = 
RESOLUTION = 470 , 330 ; matches values in navigator 
DISPLAY_POS = 0, -93
DISPLAY_SIZE = 1028 , 548
COLOR = 1, 1, 1, 1
FADE_WHEN_INACTIVE = 1.00
DITHERING = 20

; artist text
TEXT_CSP_0 = "{Artist}"
TEXT_CSP_0_NOALBUM = "{Artist}"
TEXT_CSP_0_NOARTIST = "{Track}"
TEXT_CSP_0_FALLBACK = "Please Connect Device"
TEXT_CSP_0_ALIGN_LAYOUT = 0
TEXT_CSP_0_START = 50, 218
TEXT_CSP_0_SIZE = 350, 400
TEXT_CSP_0_FONT_TYPE = ARIAL
TEXT_CSP_0_Z_INDEX = 10
TEXT_CSP_0_SCALE = 1, 1
TEXT_CSP_0_BOLD = 0

; track text
TEXT_CSP_3 = "{Track}"
TEXT_CSP_3_NOALBUM = "{Track}"
TEXT_CSP_3_NOARTIST = "{Track}"
TEXT_CSP_3_FALLBACK = "Unknown Song"
TEXT_CSP_3_ALIGN_LAYOUT = 0
TEXT_CSP_3_START = 50, 180
TEXT_CSP_3_SIZE = 350, 200
TEXT_CSP_3_FONT_TYPE = ARIAL
TEXT_CSP_3_Z_INDEX = 10
TEXT_CSP_3_SCALE = 1, 1
TEXT_CSP_3_BOLD = 0

; album text
TEXT_CSP_4 = "{Album}"
TEXT_CSP_4_NOALBUM = "{Album}"
TEXT_CSP_4_NOARTIST = "{Album}"
TEXT_CSP_4_FALLBACK = "Unknown Album"
TEXT_CSP_4_ALIGN_LAYOUT = 0
TEXT_CSP_4_START = 50, 252
TEXT_CSP_4_SIZE = 385, 200
TEXT_CSP_4_FONT_TYPE = ARIAL
TEXT_CSP_4_Z_INDEX = 10
TEXT_CSP_4_SCALE = 1, 1
TEXT_CSP_4_BOLD = 

; track position
TEXT_CSP_1 = "{Position:%02d:%02d//--:--}"
TEXT_CSP_1_ALIGN_LAYOUT = 0
TEXT_CSP_1_START = 15, 307
TEXT_CSP_1_SIZE = 620, 48
TEXT_CSP_1_FONT_TYPE = MONOSPACE
TEXT_CSP_1_Z_INDEX = 10
TEXT_CSP_1_SCALE = 0.8
TEXT_CSP_1_BOLD = 

; track duration
TEXT_CSP_2 = "{Duration:%02d:%02d//--:--}"
TEXT_CSP_2_ALIGN_LAYOUT = 1, 0
TEXT_CSP_2_START = 300, 307
TEXT_CSP_2_SIZE = 100, 50
TEXT_CSP_2_FONT_TYPE = MONOSPACE
TEXT_CSP_2_Z_INDEX = 10
TEXT_CSP_2_SCALE = 0.8
TEXT_CSP_2_BOLD = 

; progress bar background
RECT_5 = 1
RECT_5_START = 80, 315
RECT_5_SIZE = 250, 5
RECT_5_Z_INDEX = 11
RECT_5_COLOR = 0.2, 0., 0., 0.5

; progress bar background
RECT_6 = 1
RECT_6_START = 80, 315
RECT_6_SIZE = 250, 5
RECT_6_Z_INDEX = 12
RECT_6_COLOR = 0.8, 0.5, 0.25, 1
RECT_6_SCALE_WITH_PROGRESS = 1, 0

; animation below album cover
ANIMATION_0 = 16, 4
ANIMATION_0_START = 15, 323
ANIMATION_0_BLOCK = 20, 2.2
ANIMATION_0_MARGIN = 6, 3
ANIMATION_0_BASE_ROW = BUTTOM


[EMISSIVE_HAZARD_...]
NAME= AT_interior_badge_lighting_hazerd 
COLOR=10, 0, 0,2
LAG=0.3
REPEAT_FREQENCY_HZ=1.8
CAST_LIGHT=0

[EMISSIVE_TURNSIGNAL_LEFT_...]
NAME=Warning_L
COLOR=0, 10, 0
LAG=0.3
REPEAT_FREQENCY_HZ=1.8
CAST_LIGHT = 0
TOGGLE_VISIBILITY = 1


[EMISSIVE_TURNSIGNAL_RIGHT_...]
NAME=Warning_R
COLOR=0, 10, 0
LAG=0.3
REPEAT_FREQENCY_HZ=1.8
CAST_LIGHT = 0
TOGGLE_VISIBILITY = 1

[EMISSIVE_TRACTIONCONTROL_INACTION_...]
COLOR=40,20,4,1
NAME=Warning_TC
LAG=0.2
TOGGLE_VISIBILITY = 1

[EMISSIVE_TRACTIONCONTROL_...]
NAME=Warning_TC_OFF,Warning_TCCorsa.004
COLOR=0,0,0
OFF_COLOR=40,20,4,1
LAG=0.2
TOGGLE_VISIBILITY = 1

[EMISSIVE_TRACTIONCONTROL_...]
NAME=interior_digital_gauge_comfort001
COLOR=0,0,0
OFF_COLOR=2,2,2,1
LAG=0.2
TOGGLE_VISIBILITY = 1

[EMISSIVE_TRACTIONCONTROL_...]
NAME=Warning_lane
COLOR=40,20,4,1
OFF_COLOR=0,0,0
LAG=0.2
TOGGLE_VISIBILITY = 1

[EMISSIVE_TRACTIONCONTROL_...]
NAME=interior_digital_gauge_comfort
COLOR=2,2,2,1
OFF_COLOR=0,0,0
LAG=0.2
TOGGLE_VISIBILITY = 1

[EMISSIVE_...]
NAME=Warning_lane2
COLOR=40,20,4,1
OFF_COLOR=0,0,0
LAG=0.2
BIND_TO=WATER_TEMPERATURE
INPUT_THRESHOLD = 65
INPUT_THRESHOLD_INVERSE = 1
TOGGLE_VISIBILITY = 1

[EMISSIVE_...]
NAME=Warning_lane.003
COLOR=40,20,4,1
OFF_COLOR=0,0,0
LAG=0.2
BIND_TO=WATER_TEMPERATURE
INPUT_THRESHOLD = 65
INPUT_THRESHOLD_INVERSE = 1
TOGGLE_VISIBILITY = 1

[EMISSIVE_...]
NAME= Warning_car
COLOR=40,4,4,1
LAG=0.2
BIND_TO=WATER_TEMPERATURE
INPUT_THRESHOLD = 65
INPUT_THRESHOLD_INVERSE = 1
TOGGLE_VISIBILITY = 1

[EMISSIVE_ABS_...]
NAME=Warning_ABS
COLOR=0
OFF_COLOR=40,20,4,1
LAG=0.2
TOGGLE_VISIBILITY = 1

[EMISSIVE_ABS_INACTION_...]
COLOR=40,20,4,1
NAME=Warning_Engine.006
LAG=0.2
TOGGLE_VISIBILITY = 1

[EMISSIVE_HANDBRAKE_...]
NAME=Warning_Handbrake,Warning_Handbrake.002,Warning_Engine.004,Warning_PARK
COLOR=40,4,4,1
LAG=0.2
TOGGLE_VISIBILITY = 1

[EMISSIVE_HIGHBEAM_...]
NAME=interior_glow_headlights
ACT_AS_HEADLIGHTS=0
COLOR=0,0,15,1
LAG=0.2
TOGGLE_VISIBILITY = 1

[EMISSIVE_LIGHT_...]
NAME=Warning_light
COLOR=2,20,2, 1
LAG=0.2
TOGGLE_VISIBILITY = 1

[EMISSIVE_LIGHT_...]
NAME=interior_glow_error
COLOR=0,0,0
LAG=0.2
TOGGLE_VISIBILITY = 1


[EMISSIVE_TYRES_...]
NAME= Warning_Tires_press
TOGGLE_VISIBILITY = 1
COLOR=40,20,4,1
INPUT=TYRE_PRESSURE
INPUT_THRESHOLD = 38
INPUT_SELECTOR=MAX
INPUT_SELECTOR_PIVOT=5
LAG=0.2

[EMISSIVE_...]
NAME=Warning_st_wheel
COLOR=40,20,4,1
BIND_TO=SUSP_DAMAGE
THRESHOLD=10
TOGGLE_VISIBILITY = 1
LAG=0.5

[EMISSIVE_...]
NAME=Warning_FUEL
TOGGLE_VISIBILITY = 1
COLOR=30,10,0,1
INPUT=FUEL
INPUT_THRESHOLD = 10
INPUT_THRESHOLD_INVERSE = 1
LAG=0.5

[EMISSIVE_ENGINE_DAMAGE_...]
NAME=Warning_Engine
COLOR=30,10,0,1
LAG=0.5
TOGGLE_VISIBILITY = 1

[EMISSIVE_EXTRA_A_...]
NAME=Warning_FogLampRear 
COLOR=30,10,0,1
LAG=0.5
TOGGLE_VISIBILITY = 1

[EMISSIVE_LIGHT_...]
NAME=interior_glow_error
TOGGLE_VISIBILITY = 1

[EMISSIVE_LIGHT_...]
NAME=Warning_Brake.001
COLOR=0,0,0
TOGGLE_VISIBILITY = 1

[EMISSIVE_LIGHT_...]
NAME=interior_digital_gauge_sport.001
COLOR=2.5,2.5,2.5,1
OFF_COLOR=5,5,5,1


------------------------------------------------------- REFRACTION FX ----------------------------------------

[REFRACTING_HEADLIGHT_0]
SURFACE = BodyKitX500
INSIDE = int_taillights
SYNC_EMISSIVE_AUTO = 1


ABSORPTION = 0.001000
AMBIENT_MULT = 0.500000
BASE_EMISSIVE_K = 0.110000
BOUNCED_BACK_MULT = 0.690000
BULB_BLUR_K = 2.000000
BULB_REFLECTION_K = -0.100000
CUSTOM_BULB_0 = 0.255000,0.500000,0.345000,0.000000
CUSTOM_BULB_1 = 0.755000,0.500000,0.345000,0.000000
CUSTOM_BULB_2 = 0.500000,0.500000,0.000000,0.000000
CUSTOM_BULB_3 = 0.500000,0.500000,0.000000,0.000000
DIFFUSE_MAP_FILTER_MULT = 2.540000
DIFFUSE_MAP_MULT = 1.000000
DIRECTION = -0.941385,0.025516,0.336232
DYNAMIC_EMISSIVE_MAP = 0
EMISSIVE_MULT = 0.520000
EXTRA_GLASS_COLORIZATION = 1
EXTRA_SIDE_THICKNESS = 308.000000
F0 = 0.470000
GLASS_COLOR = 1.000000,0.020756,0.000000
GLASS_EMISSIVE_MULT = 0.000000
GLASS_EXTRA_THICKNESS = 0.000000
INNER_SPECULAR = 0.400000
INNER_SPECULAR_EXP = 581.000000
IOR = 1.000000
IOR_FLYOUT_FLAT = 0.540000
LOD_BIAS = -2.000000
MIRROR_2_AS_5 = 0
MIRROR_3_AS_4 = 1
MIRROR_DIR = 1.000006,-0.003445,0.010537
MIRROR_POS = 0.008907,1.020950,-2.440384
NM_SHARE_EXT = 0.260000
NM_SHARE_INT = 0.590000
ORIGIN = 0.979294,0.826388,-1.920303
RADIUS = 1.000000
RAYTRACE_STEP_INCREASE = 1.000000
RAYTRACE_STEP_START = 0.000000
REFLECTIVENESS_DIFFUSE_MULT = 100.000000
REFLECTIVENESS_MULT = 10.000000
REFLECTIVE_GAMMA = 1.900000
REFRACTION_MASKING = 0
SIDE_FALLOFF = 0.000000
USE_COLORED_BULBS = 0
USE_CUSTOM_BULBS = 1
USE_NORMAL_ALPHA = 1


[REFRACTING_HEADLIGHT_1]
SURFACE = BodyKitX505.002
INSIDE = BodyKitX505.001
SYNC_EMISSIVE_AUTO = 1

ABSORPTION = 0.000000
AMBIENT_MULT = 0.500000
BASE_EMISSIVE_K = 0.000000
BOUNCED_BACK_MULT = 1.000000
BULB_BLUR_K = 2.000000
BULB_REFLECTION_K = -0.100000
CUSTOM_BULB_0 = 0.255000,0.500000,0.345000,0.000000
CUSTOM_BULB_1 = 0.755000,0.500000,0.345000,0.000000
CUSTOM_BULB_2 = 0.500000,0.500000,0.000000,0.000000
CUSTOM_BULB_3 = 0.500000,0.500000,0.000000,0.000000
DIFFUSE_MAP_FILTER_MULT = 2.540000
DIFFUSE_MAP_MULT = 1.000000
DIRECTION = -0.535174,-0.084805,0.840474
DYNAMIC_EMISSIVE_MAP = 0
EMISSIVE_MULT = 30.139999
EXTRA_GLASS_COLORIZATION = 1
EXTRA_SIDE_THICKNESS = 40.000000
F0 = 1.000000
GLASS_COLOR = 1.000000,0.020756,0.000000
GLASS_EMISSIVE_MULT = 0.000000
GLASS_EXTRA_THICKNESS = 0.000000
INNER_SPECULAR = 0.400000
INNER_SPECULAR_EXP = 581.000000
IOR = 2.500000
IOR_FLYOUT_FLAT = 0.540000
LOD_BIAS = -2.000000
MIRROR_2_AS_5 = 0
MIRROR_3_AS_4 = 1
MIRROR_DIR = 0.998543,0.006760,-0.055054
MIRROR_POS = -0.055367,0.981705,-2.388906
NM_SHARE_EXT = 0.260000
NM_SHARE_INT = 0.590000
ORIGIN = 0.773014,1.078705,-2.475685
RADIUS = 0.063100
RAYTRACE_STEP_INCREASE = 1.000000
RAYTRACE_STEP_START = 0.000000
REFLECTIVENESS_DIFFUSE_MULT = 100.000000
REFLECTIVENESS_MULT = 10.000000
REFLECTIVE_GAMMA = 0.000000
REFRACTION_MASKING = 0
SIDE_FALLOFF = 0.000000
USE_COLORED_BULBS = 0
USE_CUSTOM_BULBS = 1
USE_NORMAL_ALPHA = 1


------------------------- BRAKE FX -------------------------------


[BRAKEDISC_FX]
ACTIVE = 1   
REFRESH = 1          ; set to 0 to disable the whole thing if car uses ksBrakeDisc shader for something else
CERAMIC = 0         ; use ceramic look
CARVED = 30              ; add a bit of carving, radial lines (fast for shader to compute)
CARVED_FREQUENCY = 10  ; increase to make more lines
GLOW_OFFSET = 0.72   ; 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.110
DISC_RADIUS = 0.200
ALPHA_MASK = 0.012, 0.07
LUMINOCITY_MASK = 0.08 0.3
WEAR_FORCE = 0.6
;GLOW_FORCE = 0.0


------------------------- EXHAUST -------------------------------


[PARTICLES_FX_EXHAUST_0]
POSITION=0.515,0.239,-2.04767
DIRECTION=0.02083184,0,-0.999783
COLOR = 0.22,0.23,0.24 			
LIFE = 0.5 				
SPEED = 0.5, 1 				
SPREAD = 0.12				
STARTING_SIZE = 0.05	
SPAWN_OFFSET = 0.08			
INTENSITY = 0.3, 1			
TEMPERATURE_LAG = 7 
SPEED_THRESHOLD = 15, 100

[PARTICLES_FX_EXHAUST_1]
POSITION=0.39,0.24,-2.065662
DIRECTION=0.02083184,0,-0.999783
COLOR = 0.22,0.23,0.24 			
LIFE = 0.5 				
SPEED = 0.5, 1 				
SPREAD = 0.12				
STARTING_SIZE = 0.05	
SPAWN_OFFSET = 0.08			
INTENSITY = 0.3, 1			
TEMPERATURE_LAG = 7 
SPEED_THRESHOLD = 15, 100

[PARTICLES_FX_EXHAUST_2]
POSITION=-0.524,0.235,-2.04767
DIRECTION=0.02083184,0,-0.999783
COLOR = 0.22,0.23,0.24 			
LIFE = 0.5 				
SPEED = 0.5, 1 				
SPREAD = 0.12				
STARTING_SIZE = 0.05	
SPAWN_OFFSET = 0.08			
INTENSITY = 0.3, 1			
TEMPERATURE_LAG = 7 
SPEED_THRESHOLD = 15, 100

[PARTICLES_FX_EXHAUST_3]
POSITION=-0.39,0.235,-2.065662
DIRECTION=0.02083184,0,-0.999783
COLOR = 0.22,0.23,0.24 			
LIFE = 0.5 				
SPEED = 0.5, 1 				
SPREAD = 0.12				
STARTING_SIZE = 0.05	
SPAWN_OFFSET = 0.08			
INTENSITY = 0.3, 1			
TEMPERATURE_LAG = 7 
SPEED_THRESHOLD = 15, 100










