[INCLUDE: pbr.ini]
[INCLUDE: refraction.ini]

[DATA]
DISABLE_LIGHTSINI=1

[INCLUDE]
INCLUDE=common/no_popup_lights.ini

[ANIMATION_0]
FILE=SIBERDACH.ksanim
TIME= 2
BIND_TO_EXTRA_A=1
INPUT_AS_PROGRESS = 0       ; set to 1 to switch to that second input-as-progress mode
LOOP_WHILE_ACTIVE = 0

---------------------------- CSP EXTRAS -------------------------------------------

[BASIC]
IS_LOW_BEAM_AVAILABLE=1
BRAKES_THRESHOLD = 0.01

[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 = 30              ; add a bit of carving, radial lines (fast for shader to compute)
CARVED_FREQUENCY = 10  ; increase to make more lines
GLOW_MULT= 3.5
GLOW_OFFSET = 1.15    ; 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
NORMAL_MASK = 0.5, 0.3
RIM_RADIUS = 0.19
RIM_HEIGHT = 0.23 
ALPHA_MASK = 0.03, 0.05
LUMINOCITY_MASK = 0.17, 0.2
ROUGHNESS = 0.1,0.3
SPECULAR = 0.8,1
WEAR_FORCE = 0.3
WEAR_MULT=1

[BRAKEDISC_FX_FRONT]
DISC_INTERNAL_RADIUS=0.1
DISC_RADIUS = 0.165

[BRAKEDISC_FX_REAR]
DISC_INTERNAL_RADIUS=0.1
DISC_RADIUS = 0.140


[PARTICLES_FX_EXHAUST_...]
POSITION = -0.60, 0.12, -2.45		; self explanatory
DIRECTION = 0, 0, -1 			; self explanatory
COLOR = 0.7, 0.75, 0.9, 1			; RGB blend - 0,0,0 is black, 1,1,1 is white
GAS_LAG=0.9
LIFE = 1.6, 1.4				; how long particles last in the air before disappearing
GROW = 1, 1
SPEED = 0.4, 1.2 				; how fast smoke particles fly from the exhaust
SPREAD = 1, 1				; initial spread of particles
STARTING_SIZE = 0.04			; initial size of particles
SPAWN_OFFSET = 0.02			; initial spawn point offset (length-wise)
INTENSITY = 0.2, 0.1			; smoke intensity
INTENSITY_MULT=1
TEMPERATURE_LAG = 1 			; engine heating up (1 to disable)
SPEED_THRESHOLD = 15, 60 		; speed at which the smoke disappears

[PARTICLES_FX_EXHAUST_...]
POSITION = 0.60, 0.12, -2.45		; self explanatory
DIRECTION = 0, 0, -1 			; self explanatory
COLOR = 0.7, 0.75, 0.9, 1			; RGB blend - 0,0,0 is black, 1,1,1 is white
GAS_LAG=0.9
LIFE = 1.6, 1.4 				; how long particles last in the air before disappearing
GROW = 1, 1
SPEED = 0.4, 1.2 				; how fast smoke particles fly from the exhaust
SPREAD = 1, 1				; initial spread of particles
STARTING_SIZE = 0.04			; initial size of particles
SPAWN_OFFSET = 0.02			; initial spawn point offset (length-wise)
INTENSITY = 0.2, 0.1			; smoke intensity
INTENSITY_MULT=1
TEMPERATURE_LAG = 1 			; engine heating up (1 to disable)
SPEED_THRESHOLD = 15, 60 		; speed at which the smoke disappears


[AUDIO_VOLUME]
WIND = 0.5
DIRT = 0.4

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

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

[SHADOWED_WHEELS]
ANGLE=9
OFFSET=0
OPACITY=1.4
WIDTH=0.13

[SHADOWED_TYRES]
ANGLE=70
OFFSET=0.07
OPACITY=0.5
WIDTH=0.08
EXTRA_AMBIENT_BRIGHTNESS=0.7

-----------------------------------------EXTERIOR EMISSIVES --------------------------------------------
[EMISSIVE_BRAKE_...]
NAME = EXT_TL_brake_glass
COLOR = 200, 0, 0, 0.3
FALLBACK_HEADLIGHTS_COLOR = 234, 13, 13, 0
LAG = 0.5
SIMULATE_HEATING = 1
LOCATION = REAR
CAST_LIGHT = 1

[EMISSIVE_BRAKE_...]
NAME = INT_third_brake_light
COLOR = 15, 0, 0, 2
FALLBACK_HEADLIGHTS_COLOR = 234, 13, 13, 0
LAG = 0.9
SIMULATE_HEATING = 1
LOCATION = REAR
CAST_LIGHT = 1

[EMISSIVE_LIGHT_...]
BIND_TO_HEADLIGHTS=1
NAME = EXT_TL_DRL_glass
COLOR = 100,10,10,0.3
LAG = 0
SIMULATE_HEATING = o
LOCATION = REAR
CAST_LIGHT = 1
CHANNEL = 0

[EMISSIVE_LIGHT_...]
BIND_TO_HEADLIGHTS=1
NAME = EXT_TL_DRL_glass
COLOR = 100,10,10,0.3
LAG = 0
SIMULATE_HEATING = o
LOCATION = REAR
CAST_LIGHT = 1
CHANNEL = 1

[EMISSIVE_REVERSE_...] 
NAME= EXT_TL_reverse_glass
COLOR=100,80,60,1
LAG=0.8
SIMULATE_HEATING=0.3
CAST_LIGHT=1

[EMISSIVE_TURNSIGNAL_LEFT_...] -LH Rear Turn
NAME=EXT_LTL_leftturn_glass
COLOR=30,15,0,0.5
LAG=0.7
SIMULATE_HEATING=0.0
LOCATION=LEFT

[EMISSIVE_TURNSIGNAL_LEFT_...] -LH Front Turn
NAME=EXT_FL_leftturn_glass
COLOR=30,15,0,1.5
LAG=0.7
SIMULATE_HEATING=0.0
LOCATION=LEFT

[EMISSIVE_TURNSIGNAL_LEFT_...] -LH Side Turn
NAME=EXT_L_sidemarker_glass
COLOR=30,15,0,0.5
LAG=0.7
SIMULATE_HEATING=0.0
LOCATION=LEFT

[EMISSIVE_TURNSIGNAL_LEFT_...] --vray interior signal
NAME=INT_cluster_plastic_vray
COLOR=0, 5, 0, 5
LAG=0
CHANNEL=1
AMBIENT_INFLUENCE = 0.6

[EMISSIVE_TURNSIGNAL_RIGHT_...] -RH Rear Turn
NAME=EXT_RTL_rightturn_glass
COLOR=30,15,0,0.5
LAG=0.7
SIMULATE_HEATING=0.0
LOCATION=RIGHT

[EMISSIVE_TURNSIGNAL_RIGHT_...] -RH Front Turn
NAME=EXT_FL_rightturn_glass
COLOR=30,15,0,1.5
LAG=0.7
SIMULATE_HEATING=0.0
LOCATION=RIGHT

[EMISSIVE_TURNSIGNAL_RIGHT_...] -RH Side Turn
NAME=EXT_R_sidemarker_glass
COLOR=30,15,0,0.5
LAG=0.7
SIMULATE_HEATING=0.0
LOCATION=RIGHT

[EMISSIVE_TURNSIGNAL_RIGHT_...] --vray interior signal
NAME=INT_cluster_plastic_vray
COLOR=0, 5, 0, 5
LAG=0
CHANNEL=2
AMBIENT_INFLUENCE = 0.6

[EMISSIVE_LIGHT_...]
BIND_TO_HEADLIGHTS=0
NAME=EXT_FL_lowbeam_glass
COLOR=9, 7, 5, 10
LAG=0.66
SIMULATE_HEATING=3
LOCATION=FRONT
CAST_LIGHT=1
CLUSTER_THRESHOLD=0.5
ACT_AS_HEADLIGHT=1

[LIGHT_HEADLIGHT_...]
AFFECTS_TRACK=1
BOUND_EMISSIVE_MAX=500
BOUND_EXP=0.2
COLOR=1, 0.95, 0.8, 10
DIFFUSE_CONCENTRATION=0.88
DIRECTION=0, -0.3, 1
EXTERIOR_ONLY=0
FADE_AT=450
FADE_SMOOTH=50
INTERIOR_ONLY=0
LOWBEAM_RANGE_MAX=190
LOWBEAM_RANGE_MULT=0.8
LOWBEAM_RANGE_ONCOMING_MULT=0.4
MIRROR=0.538526
MIRROR_DIRECTION=1
OFF_FADE_MULT=0.3
OFF_MIRROR=0.538526
OFF_MULT=0
OFF_POSITION=0, 0.568216, 1.74877
OFF_RANGE_MULT=0.3
POPUP_ENABLED=0
POSITION=0, 0.468216, 2.25
RANGE=110
RANGE_GRADIENT_OFFSET=0.8
SECOND_SPOT=100
SECOND_SPOT_INTENSITY=1
SECOND_SPOT_RANGE=50
SECOND_SPOT_SHARPNESS=0.0
SECOND_SPOT_SKIP=0.0
SPECULAR_MULT=1
SPOT=45
SPOT_EDGE=0.0922464, 0.0919776, 0.09144
SPOT_EDGE_SHARPNESS=21.2
SPOT_SHARPNESS=0
SPOT_UP=0.02, 0.999847, 0

[EMISSIVE_HIGHBEAM_...]
NAME=EXT_FL_highbeam_glass
COLOR=9,7,5,15
LAG=0.5
SIMULATE_HEATING=1
LOCATION=FRONT
CAST_LIGHT=1
CLUSTER_THRESHOLD=0.5

[EMISSIVE_HIGHBEAM_...] --vray interior highbeam cluster
NAME=INT_cluster_plastic_vray
COLOR=0, 0, 5, 8
LAG=0
CHANNEL=3
AMBIENT_INFLUENCE = 0.6

[EMISSIVE_EXTRA_A_...] --Front Fogs
BIND_TO_EXTRA_A=1
NAME=EXT_FL_fogs_glass
COLOR=9, 7, 5, 10
LAG=0.8
SIMULATE_HEATING=0.6
LOCATION=FRONT

[LIGHT_LICENSEPLATE]
ACTIVE = 1
MESHES = EXT_rear_plate
COLOR=9, 8, 9, 0.5
OFFSET = 0.03, 0.027, -0.04
RANGE = 0.35
LAYOUT = TWO_ON_TOP

[EMISSIVE_LIGHT_...] -- MAIN cluster vray
BIND_TO_HEADLIGHTS=1
NAME=INT_cluster_plastic_vray
COLOR=2, 2.3, 2, 8
LAG=0
CHANNEL=0
AMBIENT_INFLUENCE = 0.6

----------------------------------------- INTERIOR EMISSIVES ----------------------------------
;;vray
[SHADER_REPLACEMENT_...]
MATERIALS = int_cluster_vray
PROP_... = emChannelsMode, 1


[INCLUDE: common/custom_emissive.ini]

[CustomEmissiveMulti]
Meshes = INT_cluster_lights
Intensity = 1
Resolution = 256, 256

Debug = 0
@ = AlphaFromTxDiffuse
@ = CustomEmissive_UseDiffuseLuminocity, Start = "0, 0", Size = "256, 256"
@ = MultiItem, Input = TURNSIGNAL_LEFT, Start = "13, 11", Size = "36, 31"
@ = MultiItem, Input = TURNSIGNAL_RIGHT, Start = "210, 12", Size = "33, 31"
@ = MultiItem, Input = LIGHT, Start = "145, 352", Size = "124, 110"
@ = MultiItem, Input = HIGHBEAM, Start = "12, 103", Size = "43, 33"
@ = MultiItem, Input = HANDBRAKE, Start = "15, 152", Size = "47, 16"
@ = MultiItem, Role = DashWarningABS, Start = "68, 119", Size = "40, 17", Color = "0, 0, 0", Off_Color = "25, 0, 0"
@ = MultiItem, Input = EXTRA_A, Start = "306, 351", Size = "118, 117", Color = "18, 12, 0"


[LIGHT_EXTRA_...]
BOUND_TO=INT_third_brake_light
COLOR=100, 0, 0, 10
FALLBACK_HEADLIGHTS_COLOR = 234, 13, 13, 0
DIFFUSE_CONCENTRATION=0.5
EXTERIOR_ONLY=0
INTERIOR_ONLY=0
AFFECTS_TRACK=0
SIMULATE_HEATING= 0.2
LAG=0.89
FADE_AT=190
FADE_SMOOTH=43
MIRROR=0.08, 0, 0.0
POSITION=0, 0.842, -1.727
DIRECTION=5, -71, -90
RANGE=0.11
RANGE_GRADIENT_OFFSET=0.00
SPECULAR_MULT=-0
SPOT=200
SPOT_SHARPNESS=0.9
AMBIENT_INFLUENCE = 0.4

[LIGHT_EXTRA_...]
BOUND_TO=INT_third_brake_light
COLOR=100, 0, 0, 20
FALLBACK_HEADLIGHTS_COLOR = 234, 13, 13, 0
DIFFUSE_CONCENTRATION=0.5
EXTERIOR_ONLY=0
INTERIOR_ONLY=0
AFFECTS_TRACK=0
SIMULATE_HEATING= 0.2
LAG=0.89
FADE_AT=190
FADE_SMOOTH=43
MIRROR=0, 0, 0.0
POSITION=0, 0.842, -1.731
DIRECTION=5, -71, -90
RANGE=0.11
RANGE_GRADIENT_OFFSET=0.00
SPECULAR_MULT=-0
SPOT=200
SPOT_SHARPNESS=0.9
AMBIENT_INFLUENCE = 0.4

[EMISSIVE_LIGHT_...]
BIND_TO_HEADLIGHTS=1
NAME=SPEED_needle_emissive, FUEL_needle_emissive, RPM_needle_emissive, INT_needle_red_emissive
COLOR=10, 0, 0, 0.17	
LAG=0
SIMULATE_HEATING=0
CAST_LIGHT=1
CLUSTER_THRESHOLD=0.5

[EMISSIVE_LIGHT_...]
BIND_TO_HEADLIGHTS=1
NAME=INT_gauge_cluster, INT_symbols_SUB0
COLOR=5, 5, 5, 0.3	
LAG=0
SIMULATE_HEATING=0
CAST_LIGHT=1
CLUSTER_THRESHOLD=0.5

[EMISSIVE_LIGHT_...]
BIND_TO_HEADLIGHTS=1
NAME=INT_symbols_SUB2, INT_symbols_SUB4, INT_symbols_SUB10, INT_symbols_SUB5, INT_symbols_SUB6
COLOR=50, 8, 0, 0.2	
LAG=0
SIMULATE_HEATING=0
CAST_LIGHT=1
CLUSTER_THRESHOLD=0.5

[EMISSIVE_LIGHT_...]
BIND_TO_HEADLIGHTS=1
NAME=INT_digital_gauges, INT_cluster_clock, INT_climate_screen
COLOR=1, 1, 1, 0.5	
LAG=0
SIMULATE_HEATING=0
CAST_LIGHT=1
CLUSTER_THRESHOLD=0.5

-----------------------------------------ODOMETER and INSTRUMENTS---------------------------------------

[ODOMETER_MAIN]
DIGITAL_ITEM=0
DIGITAL_ITEM_NUMBER_FORMAT=6.0
UPPER_BOUND=999999
; add zero to add leading zeros

[DI_AMBIENT_TEMPERATURE_0]
DIGITAL_ITEM=1
INPUT=AMBIENT_TEMP
DIGITAL_ITEM_NUMBER_FORMAT=2.0
UPPER_BOUND=99

----------------------------------------RADIO----------------------------------------------------------
[EMISSIVE_LIGHT_...]
BIND_TO_HEADLIGHTS=1
NAME=INT_radio_screen
OFF_COLOR=0.44, 0.53, 0.5, 0.1
COLOR=0.49, 0.54, 0.53, 0.9

[CAR_STEREO_...]
MESHES = INT_radio_screen
RESOLUTION = 512, 114
DISPLAY_POS = 0, 0
DISPLAY_SIZE = 512, 128
BACKGROUND = 0.44, 0.53, 0.5, 0.8
FONT = digital_big
COLOR=0.17,0.17,0.17

TEXT_0 = "{Artist} - {Track}"
TEXT_0_NOALBUM = "{Artist} - {Track}"
TEXT_0_NOARTIST = "{Track}"
TEXT_0_FALLBACK = "FM{Random:1,4} {Random:80,120}.{Random}"
TEXT_0_ALIGN = CENTER
TEXT_0_START = 26, 16
TEXT_0_LETTER = 24, 64
TEXT_0_LETTERS_LIMIT = $" floor((512 - 26 * 2) / 24) "

TEXT_1 = "{Time:%p %I:%M}"
TEXT_1_ALIGN = CENTER
TEXT_1_START = 26, 84
TEXT_1_LETTER = 12, 28
TEXT_1_LETTERS_LIMIT = 8

ICON_0 = @SOURCE
ICON_0_FALLBACK = FM
ICON_0_START = 174, 84
ICON_0_SIZE = 17, 24

ANIMATION_0 = 10, 4
ANIMATION_0_START = 204, 80
ANIMATION_0_BLOCK = 24, 4
ANIMATION_0_MARGIN = 4, 4
ANIMATION_0_BASE_ROW = BOTTOM

----------------------------- AUDIO -----------------------------------

[AUDIO_VOLUME]
ENGINE_EXT = 1.8
ENGINE_INT = 1.3
GEAR_EXT = 0.2
GEAR_INT = 0.2
BODYWORK = 1.0
WIND = 1.0
DIRT = 1.0
DOWN_SHIFT = 1.0
HORN = 1.0
GEAR_GRIND = 1.0
BACKFIRE_EXT = 3.0
BACKFIRE_INT = 3.0
TRACTION_CONTROL_EXT = 1.0
TRACTION_CONTROL_INT = 1.0
TRANSMISSION = 0.45                   
LIMITER= 8.5
TURBO = 2.1                                                         


[AUDIO_PITCH]
ENGINE_EXT = 0.88
ENGINE_INT = 0.88
GEAR_INT = 1.5
BODYWORK = 1.0
WIND = 1.0
DIRT = 1.0
DOWN_SHIFT = 1.0
HORN = 1.0
GEAR_GRIND = 1.0
BACKFIRE_EXT = 1.0
BACKFIRE_INT = 1.0
TRACTION_CONTROL_EXT = 1.0
TRACTION_CONTROL_INT = 1.0
TRANSMISSION = 0.8
LIMITER = 1.0
TURBO = 0.94                    
HIT = 1.0
SCRAPE = 1.0
WHEEL = 1.0
SKID_EXT = 1.0
SKID_INT = 1.0

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

[AUDIO_PARAMETER_TRANSFORM]
; Originally, AC would sent 10000 to soundbank, but now it’ll send 5000 instead. Or, 
; it’ll send 2500 instead of 5000 — values in-between these points are linearly interpolated.
ENGINE_EXT_RPMS = (| 0=0 | 8000=8950 |)
ENGINE_INT_RPMS = (| 0=0 | 8000=8950 |)

[EXHAUST_FLAMES]
ANTILAG=1.0
ANTILAG_DELAY=0.05
ANTILAG_INTENSITY=10
ANTILAG_INTERVAL_MAX=10.0
ANTILAG_INTERVAL_MIN=0.0
ANTILAG_TURBO_THRESHOLD=0.4
DAMAGE=0
DAMAGE_DURATION=0.00
DAMAGE_INTENSITY=0
DAMAGE_PROBABILITY=0
DISCHARGE=1
DISCHARGE_CHARGE_TIME=0.4
DISCHARGE_DELAY=0.05
DISCHARGE_DURATION=0.05
DISCHARGE_INTENSITY=1
DISCHARGE_PROBABILITY=0.3
DISCHARGE_RPM_THRESHOLD_MAX=8500
DISCHARGE_RPM_THRESHOLD_MIN=8600
DISCHARGE_WATER_TEMPERATURE_THRESHOLD=60
FLAT_SHIFT=1
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=7800
LIMITER_DELAY=0.0
LIMITER_INTENSITY=1