[INCLUDE: common/custom_rims.ini]
[ReplaceRims]
File = ebonayn.kn5  ; name of KN5

OriginalRims = LF_T,RIM_LF_SUB1,RIM_LF_SUB2,LR_T,RIM_LR_SUB1,RIM_LR_SUB2,RF_T,RIM_RF_SUB1,RIM_RF_SUB2,RR_T,RIM_RR_SUB1,RIM_RR_SUB2, RIM_BLUR_LF_SUB1, RIM_BLUR_LF_SUB0, RIM_BLUR_RF_SUB1, RIM_BLUR_RF_SUB0, RIM_BLUR_RR_SUB1, RIM_BLUR_RR_SUB0, RIM_BLUR_LR_SUB1, RIM_BLUR_LR_SUB0, RIM_LF_SUB0, RIM_RF_SUB0, RIM_RR_SUB0, RIM_LR_SUB0         ; list of original rims to hide
Model = Te37sim.kn5, 0.210, 0.220    ; KN5 with a new rim, its radius and width (negative value makes rim bigger)
Offset = -0.015,-0.020; offset for front and rear wheels (negative value move rim deeper inside)

[INSTRUMENTS]
HAZARDS_G_THRESHOLD=1.1

[SHADER_REPLACEMENT_...]
MESHES=as, lowbeam, hb, failbrakw, cel
BLEND_MODE=ADD

[INCLUDE: android_auto/config.ini]
[Display_AndroidAuto]
Meshes = Plane
Resolution = 1000, 617
Size = 1000, 617
Offset = 0, 0
Scale = .85
RearCameraPosition = -0.00, 0.57, -2.58

//if need
aftermarketComponent=1


[EMISSIVE_LIGHT_18]
NAME=Plane
COLOR=2,2,2
OFF_COLOR=2,2,2
ACT_AS_HEADLIGHTS=1

[EMISSIVE_BRAKE_0]
NAME=LIGHTS_SUB15
COLOR=510,0,0
OFF_COLOR=0,0,0
FALLBACK_HEADLIGHTS_COLOR =0,0,0
CAST_LIGHT=1
ACT_AS_HEADLIGHTS=0
FALLBACK_BRAKES_COLOR = 510,0,0
INPUT = BRAKE
INPUT_THRESHOLD = 0.5
BLINK_REPEAT = 1 ; just make it blink
BLINK_FREQENCY_HZ = 3.5 ; sets frequency for blinking


[LIGHT_EXTRA_10]                                 ;(REAR)
LINE_FROM=-0.6, 0.1, -1.955                       ;position of the glow
LINE_TO=0.6, 0.1, -1.955                          ;position of the glow
BIND_TO_HEADLIGHTS=1
COLOR=30, 21, 255                                  ;more zeroes=brighter
DIFFUSE_CONCENTRATION=0.9
FADE_AT=150
FADE_SMOOTH=10
RANGE=1.0
RANGE_GRADIENT_OFFSET=0.1
SPOT=150
SPOT_SHARPNESS=0.3
SPECULAR_MULT=0
DIRECTION=0, -1, 0
SELF_LIGHTNING=1                                ;(1=glow will light up objects surrounding it)
EXTERIOR_ONLY=1                                 ;(1=only visible from outside)
INTERIOR_ONLY=0                                 ;(1=only visible from cockpit view)

[LIGHT_EXTRA_11]                                ;(Left) 
LINE_FROM=0.8, 0.1, 0.9
LINE_TO=0.8, 0.1, -0.9
BIND_TO_HEADLIGHTS=1
COLOR=30, 21, 255
DIFFUSE_CONCENTRATION=0.9
FADE_AT=150
FADE_SMOOTH=10
RANGE=0.8
RANGE_GRADIENT_OFFSET=0.1
SPOT=150
SPOT_SHARPNESS=0.0
SPECULAR_MULT=0
DIRECTION=0, -1, 0
SELF_LIGHTNING=1
EXTERIOR_ONLY=1
INTERIOR_ONLY=0

[LIGHT_EXTRA_12]                                ;(RIGHT) 
LINE_FROM=-0.8, 0.1, -0.9
LINE_TO=-0.8, 0.1, 0.9
BIND_TO_HEADLIGHTS=1
COLOR=30, 21, 255
DIFFUSE_CONCENTRATION=0.9
FADE_AT=150
FADE_SMOOTH=10
RANGE=0.6
RANGE_GRADIENT_OFFSET=0.1
SPOT=150
SPOT_SHARPNESS=0.0
SPECULAR_MULT=0
DIRECTION=0, -1, 0
SELF_LIGHTNING=1
EXTERIOR_ONLY=1
INTERIOR_ONLY=0

[LIGHT_EXTRA_13]                                 ;(FRONT)
LINE_FROM=-0.6, 0.25,2.065
LINE_TO=0.6, 0.25, 2.065
BIND_TO_HEADLIGHTS=1
COLOR=30, 21, 255
DIFFUSE_CONCENTRATION=0.9
FADE_AT=150
FADE_SMOOTH=10
RANGE=1
RANGE_GRADIENT_OFFSET=0.1
SPOT=150
SPOT_SHARPNESS=0.0
SPECULAR_MULT=0
DIRECTION=0, -1, 0
SELF_LIGHTNING=1
EXTERIOR_ONLY=1
INTERIOR_ONLY=0


[EMISSIVE_REVERSE_0]
NAME=LIGHTS_SUB13
COLOR=100,80,60,0.85
LAG=0.8
SIMULATE_HEATING=0.6
CAST_LIGHT=1

[EMISSIVE_EXTRA_A_0]
NAME = LIGHTS_SUB8
COLOR = 190,190,165
SIMULATE_HEATING = 0.6
CAST_LIGHT=1

[EMISSIVE_TURNSIGNAL_LEFT_0]
NAME=Signal_light_LF
COLOR=300,150,0
LAG=0.7
SIMULATE_HEATING=0.0
LOCATION=FRONT

[EMISSIVE_TURNSIGNAL_LEFT_1]
NAME=Signal_light_LR
COLOR=300,150,0
LAG=0.7
SIMULATE_HEATING=0.0
LOCATION=REAR

[EMISSIVE_TURNSIGNAL_RIGHT_0]
NAME=Signal_light_RF
COLOR=300,150,0
LAG=0.7
SIMULATE_HEATING=0.0
LOCATION=FRONT

[EMISSIVE_TURNSIGNAL_RIGHT_1]
NAME=Signal_light_RR
COLOR=300,150,0
LAG=0.7
SIMULATE_HEATING=0.0
LOCATION=REAR


[EMISSIVE_TURNSIGNAL_RIGHT_2]
lf
NAME=leftside_indicator
COLOR=10,4,0, 60  
LAG=0.1 
SIMULATE_HEATING=0 
LOCATION=SIDE


[EMISSIVE_TURNSIGNAL_RIGHT_2]
lf
NAME=rightside_indicator
COLOR=10,4,0, 60  
LAG=0.1 
SIMULATE_HEATING=0 
LOCATION=SIDE


[EMISSIVE_ABS_INACTION_0]
NAME=as
TOGGLE_VISIBILITY = 1
COLOR=40,20,4,1
OFF_COLOR=0
LAG=0.2
TOGGLE_VISIBILITY=1

[EMISSIVE_HIGHBEAM_0]
NAME=hb
ACT_AS_HEADLIGHTS=0
COLOR=0,0,30,2


[EMISSIVE_LIGHT_...]
NAME=lowbeam
COLOR=0,62,0
OFF_COLOR=0,0,0
BIND_TO_HEADLIGHTS=1
LAG=0.0
SIMULATE_HEATING=0.0
CAST_LIGHT=0
TOGGLE_VISIBILITY=0



[EMISSIVE_TURNSIGNAL_LEFT_4]
NAME=leftturnint
COLOR=0,62,0
OFF_COLOR=0,0,0
LAG=0.3
SIMULATE_HEATING=0.0
LOCATION=MIDDLE
CAST_LIGHT=0

[EMISSIVE_TURNSIGNAL_RIGHT_4]
NAME=rightturnint
COLOR=0,62,0
OFF_COLOR=0,0,0
LAG=0.3
SIMULATE_HEATING=0.0
CAST_LIGHT=0



[LIGHT_EXTRA_...]
BIND_TO_HEADLIGHTS=1
COLOR=8,8,9
DIFFUSE_CONCENTRATION=0.88
EXTERIOR_ONLY=0
INTERIOR_ONLY=0
FADE_AT=5
FADE_SMOOTH=5
MIRROR=0
POSITION=0.32, 0.77, 0.7
DIRECTION=0,0,-0.9
RANGE=0.85;1.25
RANGE_GRADIENT_OFFSET=0.3
SPECULAR_MULT=0
SPOT=50
SPOT_SHARPNESS=0.3



[LIGHT_EXTRA_...]
BIND_TO_HEADLIGHTS=1
COLOR=5,5,6
DIFFUSE_CONCENTRATION=0.88
EXTERIOR_ONLY=0
INTERIOR_ONLY=0
FADE_AT=5
FADE_SMOOTH=5
MIRROR=0
POSITION=0.0, 0.5, 0.8
DIRECTION=0,0.5,-0.9
RANGE=0.85;1.25
RANGE_GRADIENT_OFFSET=0.3
SPECULAR_MULT=0
SPOT=131
SPOT_SHARPNESS=0.3


;Engine Damage Dash Light;
[EMISSIVE_ENGINE_DAMAGE_0]
NAME=cel
ENGINE_LIFE_THRESHOLD=750kj
ACT_AS_HEADLIGHTS=0
COLOR=1.3,1,0,4
OFF_COLOR=0,0,0
CAST_LIGHT=0
LAG=0.0
TOGGLE_VISIBILITY=1

;HandBrake Dash Light;
[EMISSIVE_HANDBRAKE_0]
NAME=failbrakw
ACT_AS_HEADLIGHTS=0
COLOR=1,0,0,6
OFF_COLOR=0,0,0
CAST_LIGHT=0
LAG=0.0
TOGGLE_VISIBILITY=1

;PBR GLASS
[INCLUDE: common/materials_glass.ini]
[Material_Glass]
Materials = window
ThicknessMult = 02.5
EXTRA_MASK_PASS = 0
EXTRA_MASK_PASS_OPACITY = 5
FilmIOR=2.0


[EMISSIVE_LIGHT_14]
NAME=COCKPIT_HR_SUB0
COLOR=2,0.9,0.2, 1.5
LAG=0.3
SIMULATE_HEATING=0.3
LOCATION=NONE
CAST_LIGHT=0
CLUSTER_THRESHOLD=0

[EMISSIVE_LIGHT_10]
NAME=COCKPIT_HR_SUB6
BIND_TO_HEADLIGHTS=1
COLOR=2,0.9,0.2, 4.5
OFF_COLOR=2,2,2, 0.6
LAG=0.3
SIMULATE_HEATING=0.3
LOCATION=NONE
CAST_LIGHT=0
CLUSTER_THRESHOLD=0

[EMISSIVE_LIGHT_11]
NAME=ARROW_RPM_SUB0, ARROW_SPEED_SUB0, ARROW_TURBO_SUB0, ARROW_FUEL_SUB0, 
BIND_TO_HEADLIGHTS=1
COLOR=2,0.9,0.2, 4.5
OFF_COLOR=2,2,2, 0.4
LAG=0.3
SIMULATE_HEATING=0.3
LOCATION=NONE
CAST_LIGHT=0
CLUSTER_THRESHOLD=0

[EMISSIVE_LIGHT_12]
NAME=GAUGE_LIGHTING 
BIND_TO_HEADLIGHTS=1
COLOR=2,0.9,0.2, 3.5
OFF_COLOR=2,2,2, 0.4
LAG=0.3
SIMULATE_HEATING=0.3
LOCATION=NONE
CAST_LIGHT=0
CLUSTER_THRESHOLD=0







[Material_PhotoelasticGlass]
Meshes =Headlight_glass_LF, Headlight_glass_RF, Brakelight_Stock_Lightglass
PhotoelasticityBaseScale=4        ; this parameter alters scale in general
PhotoelasticityNoiseScale=0.4    ; deeply affects randomization process, careful with it
PhotoelasticitySpotsScale=0.009     ; spots for limiting effect to some areas
PhotoelasticitySpotsOffset=0.3   ; offset for spots, to try and fit effect nice on existing meshes
PhotoelasticityStripesScale=1.7   ; how many stripes are there
ProfileFix=0.01
FilmIOR=3.5
ThicknessMult=2.0
Desaturate=1
EXTRA_MASK_PASS=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=3
DIGITAL_ITEM_NUMBER_FORMAT=06.1
UPPER_BOUND=9999

[INCLUDE: common/materials_interior.ini]

[Material_Carbon]
Meshes = [INCLUDE: common/materials_interior.ini]

[Material_Carbon]
Meshes = Hood_Voltex_Body, Splitter_VoltexCyberVersion_Body
BrightnessAdjustment=0.35
DetailScale=250
ClearCoatF0 = 0.10
DetailScale = 400
ApplyTilingFix = 0

BrightnessAdjustment=0.35
DetailScale=250
ClearCoatF0 = 0.10
DetailScale = 400
ApplyTilingFix = 0

[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=1 ; flame size
ANTILAG_INTERVAL_MAX=6000
ANTILAG_INTERVAL_MIN=0
ANTILAG_TURBO_THRESHOLD=0
DAMAGE=0 ; engine damage? idk
DAMAGE_DURATION=1.00
DAMAGE_INTENSITY=1
DAMAGE_PROBABILITY=1
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 ; delay after throttle lift
DISCHARGE_DURATION=1 ; length of flame shooting, in seconds
DISCHARGE_PROBABILITY=0.7; chance of flame shoot on lift, 1 is guaranteed, 0 is never
DISCHARGE_INTENSITY=50; flame size
DISCHARGE_RPM_THRESHOLD_MAX=8100 ; self explanatory
DISCHARGE_RPM_THRESHOLD_MIN=4000 ; self explanatory
DISCHARGE_WATER_TEMPERATURE_THRESHOLD=50
FLAT_SHIFT=1 ; on upshift
FLAT_SHIFT_COOLDOWN=0 ; after upshift
FLAT_SHIFT_DURATION=1 ; length of flame shooting, in seconds
FLAT_SHIFT_GAS_THRESHOLD=1 ; how much gas needs to be pressed on upshift for flame, 100 is wide open
FLAT_SHIFT_INTENSITY=10 ; flame size
FLAT_SHIFT_PROBABILITY=1 ; chance of flame shoot on upshift
FLAT_SHIFT_RPM_THRESHOLD=7000
LIMITER=1 ; on hitting the limiter
LIMITER_DELAY=0 ; delay, in seconds
LIMITER_INTENSITY=5 ; flame size
LIMITER_RPM_THRESHOLD=6000 ; limiter flames will not shoot below this rpm


[PARTICLES_FX_EXHAUST_0]
POSITION = -0.42, 0.075, -2.1	; self explanatory
DIRECTION = 0, 0.3, -1 			; self explanatory
COLOR = 0.75,0.8,1 			; RGB blend - 0,0,0 is black, 1,1,1 is white
LIFE = 2, 4 				; how long particles last in the air before disappearing
SPEED = 0.5, 1 				; how fast smoke particles fly from the exhaust
SPREAD = 0.25				; initial spread of particles
STARTING_SIZE = 0.12			; initial size of particles
SPAWN_OFFSET = 0.05			; initial spawn point offset (length-wise)
INTENSITY = 0.05, 0.2			; smoke intensity
TEMPERATURE_LAG = 1 			; engine heating up (1 to disable)
SPEED_THRESHOLD = 15, 100 		; speed at which the smoke disappears


[SHAKING_EXHAUST_...]
MESHES = Object-01
POINT_0 = -0.34, 0.05, -0.200
POINT_0_RADIUS = 1
POINT_0_EXP = 0.002


[AUDIO_PROPERTIES]
TURBO_THROTTLE = 1

[AUDIO_VOLUME]
ENGINE_EXT = 1.1
ENGINE_INT = 1.1
BACKFIRE_INT=2
BACKFIRE_EXT=5
BODYWORK=1
WIND = 1.0
DIRT = 1.0
DOWN_SHIFT=1
GEAR_EXT=1
GEAR_GRIND=1
GEAR_INT=1
HORN=1
LIMITER=10
TRACTION_CONTROL_EXT=1
TRACTION_CONTROL_INT=1
TRANSMISSION=0
WIND=.5
SKID_EXT = 1
SKID_INT = 1
TURBO= 5


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

[ANIMATED_WIPER_...]
MESHES = wiper_l_SUB0, wiper_r_SUB0
UNDERLYING_SURFACE = CENTERGLASS
DEBUG = 1 ; remove when everything is ready

[MESH_ADJUSTMENT_...]
MESHES = wiper_l_SUB0, wiper_r_SUB0
MOVE_TO = modelRoot:y

[BASIC]
DISABLE_WIPER_KSANIM = 1

[ANIMATED_WIPER_0]
DEBUG = 1
MESHES = wiper_l_SUB0, wiper_r_SUB0
UNDERLYING_SURFACE = CENTERGLASS
GROUP_0 = -
GROUP_0_ANGLE_TO = -78.500000
GROUP_0_ARM = 'wiper_r_SUB0@A=*'
GROUP_0_AXIS = 0.000000, 0.707107, 0.707107
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.069214, 0.920654, 1.072205
GROUP_0_PIVOT = -0.645507, 0.869041, 1.050605
GROUP_0_SCALE_LUT = '(|0.000=1.000|0.153=1.239|0.400=1.261|0.545=1.328|0.686=1.320|0.789=1.284|0.862=1.215|0.915=1.187|0.965=1.154|1.000=1.105|1.007=1.276|)'
GROUP_0_BASE_AXIS = 0.000000, 0.707107, 0.707107
GROUP_0_BASE_PIVOT = -0.645507, 0.869041, 1.050605
GROUP_1 = -
GROUP_1_ANGLE_TO = -87.400002
GROUP_1_ARM = 'wiper_l_SUB0@A=*'
GROUP_1_AXIS = 0.066194, 0.724795, 0.685778
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.066284, 1.799580, 0.719116
GROUP_1_PIVOT = -0.008441, 0.821605, 1.105262
GROUP_1_RUBBER_FROM = 0.223785, 0.926933, 1.014214
GROUP_1_RUBBER_OFFSET_AMOUNT = 0.006800
GROUP_1_RUBBER_OFFSET_POS = 0.657000
GROUP_1_RUBBER_TO = 0.492535, 0.919137, 0.988495
GROUP_1_SCALE_LUT = '(|-0.018=1.251|0.001=1.202|0.045=1.199|0.137=1.161|0.158=1.159|0.173=1.179|0.279=1.190|0.990=1.039|)'
GROUP_1_SCALE_LUT_CUBIC = 1
GROUP_1_BASE_ANGLE_TO = -132.000000
GROUP_1_BASE_AXIS = 0.103315, 0.856755, 0.505269
GROUP_1_BASE_PIVOT = -0.008441, 0.821605, 1.105262


[INCLUDE: common/gt3_exhaust_glow.ini]
[EMISSIVE_WATER_TEMP_0_EXHAUST_GLOW]
MESHES = Object-01,hoodexhaust
COLOR = 25, 3, 0, 3
USE_SMOOTH_TRANSITION = 1
INPUT_MIN = 82
INPUT_MAX = 100
INPUT_LUT = (| 84 = 0 | 95 = 1 |)
AFFECTS_TRACK = 1
SPECULAR_MULT = 5
