[INCLUDE: common/materials_carpaint.ini]
CarPaintMaterial = CSR2_CarPaint
DisableDev = 1

[Material_CarPaint_Metallic]
Skins = Isle Of Man Green
FresnelMax = 1
FresnelC = 0.15
BrightnessAdjustment = 0.3 ; compensates for ambient specular
BaseSpecularColor = 0, 1, 0
SpecularBase = 5, 80
SpecularSun = 0.1, 50
SunMultiplier = 1
ClearCoatThickness = 0.15

; New car paint
[INCLUDE: common/materials_carpaint.ini]
CarPaintMaterial = smCarPaint, CSR2_Coloured.001 
CarPaintVersionAware = 2



[INCLUDE: common/materials_carpaint.ini]
CarPaintMaterial = smCarPaint, CSR2_Coloured.001
DisableDev = 1


[Material_CarPaint_Solid]
FresnelMax = 0.3
FresnelC = 0.1
FlakesK = 1
AmbientSpecular = 0.01
SpecularBase = 1.0, 300
BrightnessAdjustment = 0.8 ; compensates for ambient specular
ColoredSpecular = 0.9
AmbientSpecularEXP = 2.0
ClearCoatThickness = 0.1

[WIPERS]
WIND_THRESHOLDS_KMH = 60, 150 ; 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 = Glass_SUB2
WIPERS = WIPER4, WIPER2



[ANIMATION_0]
FILE=gps.ksanim
TIME= 0.1
BIND_TO_EXTRA_A=1



[INCLUDE]
INCLUDE=common/no_popup_lights.ini
[AUDIO_PROPERTIES]
TURBO_THROTTLE = 1




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

[BRAKEDISC_FX]
ACTIVE = 0           ; 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.7   ; 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.10
DISC_RADIUS = 0.20
ALPHA_MASK = 1.0, 0.1
LUMINOCITY_MASK = 0.16 0.2
WEAR_FORCE = 1
;GLOW_FORCE = 1

[LIGHT_BRAKEDISCS_FRONT]
AFFECTS_TRACK=1
BOUND_EMISSIVE_MAX=500
BOUND_EXP=1
COLOR=1, 0.5, 0, 1.2
DEBUG=0
DIFFUSE_CONCENTRATION=0.88
DIRECTION=1, 0, 0
EXTERIOR_ONLY=1
FADE_AT=30
FADE_SMOOTH=5
GLOW_BOUNDARY_FROM=1
GLOW_BOUNDARY_TO=10
INTERIOR_ONLY=0
MIRROR_DIRECTION=1
NO_SELF_SPECULAR=1
OFF_FADE_MULT=0.3
OFF_RANGE_MULT=0.5
POSITION=0, 0, 0
RANGE=0.65
RANGE_GRADIENT_OFFSET=0.35
SINGLE_FREQUENCY=0
SPECULAR_MULT=1
SPOT=130
SPOT_SHARPNESS=0.8

[LIGHT_BRAKEDISCS_REAR]
AFFECTS_TRACK=1
BOUND_EMISSIVE_MAX=500
BOUND_EXP=1
COLOR=1, 0.5, 0, 1.2
DEBUG=0
DIFFUSE_CONCENTRATION=0.88
DIRECTION=1, 0, 0
EXTERIOR_ONLY=1
FADE_AT=30
FADE_SMOOTH=5
GLOW_BOUNDARY_FROM=1
GLOW_BOUNDARY_TO=10
INTERIOR_ONLY=0
MIRROR_DIRECTION=1
NO_SELF_SPECULAR=1
OFF_FADE_MULT=0.3
OFF_RANGE_MULT=0.5
POSITION=0, 0, 0
RANGE=0.65
RANGE_GRADIENT_OFFSET=0.35
SINGLE_FREQUENCY=0
SPECULAR_MULT=1
SPOT=130
SPOT_SHARPNESS=0.8




[PARTICLES_FX]
SMOKE_BLOCK_START=0.4
SMOKE_BLOCK_END=0.6

[LIGHTING]
INTERIOR_FAKE_UPPER_SHADOW_HEIGHT=0.04
INTERIOR_FAKE_UPPER_SHADOW_FADE=0.05

[BOUNCED_INTERIOR_LIGHT]
MULT=1,1,1,2


[INSTRUMENTS]
SPEED_LAG=0.7
SPEED_LIMIT=270
[EMISSIVE_LIGHT_3]
NAME=ekran
COLOR=0.5,0.5,0.5
LAG=0.7
SIMULATE_HEATING=0

[EMISSIVE_LIGHT_2]
NAME=intemissiveon,platelight,plakaisik, 
COLOR=2,2,2
LAG=0.7
SIMULATE_HEATING=0

[EMISSIVE_REVERSE_0]
NAME=reverselights
COLOR=25, 25, 25,10
LAG=0.8
SIMULATE_HEATING=0.3

[EMISSIVE_HAZARD_0]
NAME=HAZARD
COLOR=2, 0, 0
LAG=0.0
SIMULATE_HEATING=0.0

[EMISSIVE_TURNSIGNAL_LEFT_0]
NAME=indicator_lm
COLOR=25, 12, 0,8
LAG=0.9
SIMULATE_HEATING=0.0
LOCATION=FRONT

[EMISSIVE_TURNSIGNAL_LEFT_1]
NAME=indicator_lr
COLOR=25, 12, 0,8
LAG=0.3
SIMULATE_HEATING=0.0
LOCATION=REAR

[EMISSIVE_TURNSIGNAL_LEFT_2]
NAME=ind_lf
COLOR=25,12, 0, 8
OFF_COLOR=20,20,20
LAG=0.2
SIMULATE_HEATING=0.0
LOCATION=FRONT


[EMISSIVE_TURNSIGNAL_RIGHT_0]
NAME=indicator_rr
COLOR=25, 12, 0, 8
LAG=0.3
SIMULATE_HEATING=0
LOCATION=REAR

[EMISSIVE_TURNSIGNAL_RIGHT_1]
NAME=indicator_rm
COLOR=25, 12, 0,8
LAG=0.9
SIMULATE_HEATING=0.0
LOCATION=FRONT

[EMISSIVE_TURNSIGNAL_RIGHT_2]
NAME=ind_rf
COLOR=25,12, 0, 8
OFF_COLOR=20,20,20
LAG=0.2
SIMULATE_HEATING=0.0
LOCATION=FRONT

[EMISSIVE_LIGHT_...]
NAME=onled
COLOR=20,20,20
OFF_COLOR=20,20,20
LAG=0.0
SIMULATE_HEATING=0.0
CAST_LIGHT=0
TOGGLE_VISIBILITY=0

[EMISSIVE_LIGHT_...]
NAME=taillightson
COLOR=150,20,0
OFF_COLOR=30,1,0
LAG=0.0
SIMULATE_HEATING=0.0
CAST_LIGHT=0
TOGGLE_VISIBILITY=0

[EMISSIVE_LIGHT_...]
NAME=group001
COLOR=250,250,270
OFF_COLOR=0,0,0
LAG=0.0
SIMULATE_HEATING=0.0
CAST_LIGHT=0
TOGGLE_VISIBILITY=0

[INCLUDE: common/selflighting.ini]

[SelfLight_Headlights]
MIRROR = 0.64
DIRECTION = 0.2, 0.8, 1.9
POSITION = 0, 0.6, 1.96
AFFECTS_TRACK = 1
DIFFUSE_CONCENTRATION = 1
BOUND_TO = onled
SPOT_SHARPNESS = 0.1
SPOT = 131
COLOR =14,14,19,15
SPECULAR_MULT = 0
RANGE = 1

[SelfLight_Headlights]
MIRROR = 0.64
DIRECTION = 0.2, 0.8, 1.9
POSITION = 0, 0.6, 1.96
AFFECTS_TRACK = 1
DIFFUSE_CONCENTRATION = 1
BOUND_TO = onfaralt
SPOT_SHARPNESS = 0.1
SPOT = 131
COLOR =14,14,19,15
SPECULAR_MULT = 0
RANGE = 1	

[SelfLight_Headlights]
MIRROR = 0.73
DIRECTION = 0.2, 0.8, 1.9
POSITION = 0, 0.6, 1.75
AFFECTS_TRACK = 1
DIFFUSE_CONCENTRATION = 1
BOUND_TO = onled
SPOT_SHARPNESS = 0.1
SPOT = 131
COLOR =14,14,19,20
SPECULAR_MULT = 0
RANGE = 1


[SelfLight_Headlights]
MIRROR = 0.73
DIRECTION = 0.2, 0.8, 1.9
POSITION = 0, 0.67, 1.8
AFFECTS_TRACK = 1
DIFFUSE_CONCENTRATION = 1
BOUND_TO = onfarust_001_001
SPOT_SHARPNESS = 0.1
SPOT = 131
COLOR =14,14,19,5
SPECULAR_MULT = 0
RANGE = 1

[SelfLight_Headlights]
MIRROR = 0.57
DIRECTION = 0.2, 0.8, 1.9
POSITION = 0, 0.65, 2.01
AFFECTS_TRACK = 1
DIFFUSE_CONCENTRATION = 1
BOUND_TO = group001
SPOT_SHARPNESS = 0.5
SPOT = 131
COLOR =14,14,19,7
SPECULAR_MULT = 0
RANGE = 1


[SelfLight_Headlights]
MIRROR = 0.57
DIRECTION = 0.2, 0.8, 1.9
POSITION = 0, 0.65, 2.01
AFFECTS_TRACK = 1
DIFFUSE_CONCENTRATION = 1
BOUND_TO = onfaralt
SPOT_SHARPNESS = 0.5
SPOT = 131
COLOR =14,14,19,7
SPECULAR_MULT = 0
RANGE = 1



[SelfLight_Headlights]
MIRROR = 0.55
DIRECTION = 0.2, 0.8, 1.9
POSITION = 0, 0.67, 1.9
AFFECTS_TRACK = 1
DIFFUSE_CONCENTRATION = 1
BOUND_TO = onfarust_001_001
SPOT_SHARPNESS = 0.1
SPOT = 131
COLOR =14,14,19,5
SPECULAR_MULT = 0
RANGE = 1

[EMISSIVE_HIGHBEAM_...]
NAME=onfaralt
BOUND_TO= LOW_BEAM
COLOR=480,480,680 
LAG=0.0
SIMULATE_HEATING=0
LOCATION=FRONT
CAST_LIGHT=1
CLUSTER_THRESHOLD=0.5
LOCATION=MIDDLE

[LIGHT_LICENSEPLATE]
; no need to specify meshes names if material is using
; Plate_D.dds and Plate_NM.dds textures
MESHES=platelight
OFFSET=0.04, 0.05,0
RANGE=0.35
RANGE_GRADIENT_OFFSET=0.3
SPOT=150
SPOT_SHARPNESS=0.1
COLOR=5,5,5,5


[Material_DigitalScreen]
Materials=intemissiveon
MatrixType = IPS           ; valid values: IPS, TN
UseTextureCoordinates = 1  ; with 0, vertex coordinates will be used. sometimes it’s better, sometimes it’s buggier
ScreenScale = 480          ; amount of pixels horizontally
ScreenAspectRatio = 0.25   ; aspect ratio, height/width
Emissive = 10              ; screen brightness
FlipXY = 0                 ; rotate display 90°

[INCLUDE: common/materials_glass.ini]
ExteriorGlassTintedMaterials=Window,glassmtl





[INCLUDE: common/navigators.ini]
[Navigator_StyleModernDark]
Meshes = ekran ; here, use the name of that mesh
Brightness = 1 ; adjust brightness later so it wouldn’t shine too much
@ = Navigator_Size 
Resolution = 1200,600
Offset = 0, 0 
Size = 1200,600
Scale = 0.5 


[INCLUDE: common/materials_glass.ini]
ExteriorGlassFilmedMaterials= 
ExteriorGlassTintedMaterials= 
ExteriorGlassHeadlightsMaterials = 
[Material_PhotoelasticGlass]
Meshes= 



;PBR GLASS
[INCLUDE: common/materials_glass.ini]
[Material_Glass]
Materials = WindowDark, Window, glassfront1, GlassClear2
ThicknessMult = 2.5
EXTRA_MASK_PASS = 0
EXTRA_MASK_PASS_OPACITY = 5
FilmIOR=2.5

[INCLUDE: common/materials_interior.ini]
;PBR MATERIALS EXTERIOR
[Material_Carbon]
Materials = CSR2_Carbon2
BrightnessAdjustment = 0.10
ClearCoatF0 = 0.25
DetailScale = 100

[INCLUDE: common/materials_interior.ini]
;PBR MATERIALS EXTERIOR
[Material_Carbon]
Materials = CSR2_Carbon3
BrightnessAdjustment = 0.10
ClearCoatF0 = 0.1
DetailScale = 2000

[INCLUDE: common/materials_carpaint.ini]
[Material_InteriorPBRDetail]
Materials = CSR2_Light2
DetailNormalTexture = common/pbr_metal_satin.dds
DetailScale = 15
ApplyTilingFix = 1
BrightnessAdjustment = 0.01
DetailNormalPBRSmoothness = 0.8
DetailNormalPBRSmoothnessGamma = 1
Metalness = 0.2
Reflectance = 0.1
LocalReflectionsSharpness = 0.1
DetailNormalPBRSecondaryColor = 0, 0, 0, 1

[INCLUDE: common/materials_carpaint.ini]
[Material_Metal_v2]
Materials = chrome
BrightnessAdjustment = 0.1
DetailScale = 700
Metalness = 0.50
Reflectance = 0.20
LocalReflectionsSharpness = 0.9			ext_rim, EXT_Rim
DetailTexture = 1


[INCLUDE: common/materials_carpaint.ini]
[Material_Metal_v2]
Materials = BMW_M4CoupeMPerformance_2021Coloured_Material
BrightnessAdjustment = 0.01
DetailScale = 5
Metalness = 0.20
Reflectance = 0.10
LocalReflectionsSharpness = 0.2
DetailTexture = 1

[Material_Plastic_v2]
Materials = CSR2_Grille7, BMW_M4CoupeMPerformance_2021Coloured_Material2
BrightnessAdjustment = 0.4
DetailScale = 100

;INTERIOR PBR
[INCLUDE: common/materials_interior.ini]
[Material_Metal_v2]
Materials = intmetal
BrightnessAdjustment = 0.05
DetailScale = 0
Metalness = 0.20
Reflectance = 0.10
LocalReflectionsSharpness = 0.1
DetailTexture = 1
[Material_Velvet]
Materials=roofint, CSR2_Colouredb
BrightnessAdjustment=0.2
[Material_Carpet]
Materials=carpet
BrightnessAdjustment=0.3
[Material_Leather]
Materials=leathertop, leatherseat2, CSR2_Grille6, leatherseat1, leatherst
BrightnessAdjustment=0.2
[Material_Plastic]
Materials=intplastic,
BrightnessAdjustment = 0.25
[Material_Plastic]
Materials=CSR2_Grille7
BrightnessAdjustment = 0.01
[Material_Carbon]
Materials=CSR2_Carbon1
DetailScale = 200
BrightnessAdjustment = 0.30
ClearCoatF0 = 0.15
Reflectance = 0.1


[INCLUDE: common/materials_carpaint.ini]
[INCLUDE: common/materials_glass.ini]




[PARTICLES_FX_EXHAUST_1]
POSITION = 0.179, 0.249, -2.38		; 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 = 1, 2 				; 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.04			; initial size of particles
SPAWN_OFFSET = 0.02			; initial spawn point offset (length-wise)
INTENSITY = 0.2, 0.3			; smoke intensity
TEMPERATURE_LAG = 1 			; engine heating up (1 to disable)
SPEED_THRESHOLD = 15, 100 		; speed at which the smoke disappears
	

[PARTICLES_FX_EXHAUST_2]
POSITION = -0.179, 0.249, -2.38		; 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 = 1, 2 				; 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.04			; initial size of particles
SPAWN_OFFSET = 0.02			; initial spawn point offset (length-wise)
INTENSITY = 0.2, 0.3			; smoke intensity
TEMPERATURE_LAG = 1 			; engine heating up (1 to disable)
SPEED_THRESHOLD = 15, 100 		; speed at which the smoke disappears


[PARTICLES_FX_EXHAUST_3]
POSITION = 0.0937, 0.304, -2.38		; 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 = 1, 2 				; 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.04			; initial size of particles
SPAWN_OFFSET = 0.02			; initial spawn point offset (length-wise)
INTENSITY = 0.2, 0.3			; smoke intensity
TEMPERATURE_LAG = 1 			; engine heating up (1 to disable)
SPEED_THRESHOLD = 15, 100 		; speed at which the smoke disappears
	

[PARTICLES_FX_EXHAUST_4]
POSITION = -0.0937, 0.304, -2.38		; 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 = 1, 2 				; 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.04			; initial size of particles
SPAWN_OFFSET = 0.02			; initial spawn point offset (length-wise)
INTENSITY = 0.2, 0.3			; smoke intensity
TEMPERATURE_LAG = 1 			; engine heating up (1 to disable)
SPEED_THRESHOLD = 15, 100 		; speed at which the smoke disappears



[LIGHT_FLAME_0]
BRIGHTNESS_MULT=1
CAR_BRIGHTNESS_MULT=1.8
CAR_RANGE_MULT=0.2
COLOR=5,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.8

[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=40 ; flame size
ANTILAG_INTERVAL_MAX=9000
ANTILAG_INTERVAL_MIN=2000
ANTILAG_TURBO_THRESHOLD=0.5
DAMAGE=0 ; engine damage? idk
DAMAGE_DURATION=0.00
DAMAGE_INTENSITY=0
DAMAGE_PROBABILITY=0
DISCHARGE=1 ; lifting off the throttle
DI3CHARGE_CHARGE_TIME=0.001 ; how long you have to press the throttle to "charge" the flames
DISCHARGE_DELAY=0.1 ; delay after throttle lift
DISCHARGE_DURATION=3.1 ; length of flame shooting, in seconds
DISCHARGE_PROBABILITY=1; chance of flame shoot on lift, 1 is guaranteed, 0 is never
DISCHARGE_INTENSITY=5; flame size
DISCHARGE_RPM_THRESHOLD_MAX=9000 ; 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=5 ; length of flame shooting, in seconds
FLAT_SHIFT_GAS_THRESHOLD=80 ; how much gas needs to be pressed on upshift for flame, 100 is wide open
FLAT_SHIFT_INTENSITY=5 ; flame size
FLAT_SHIFT_PROBABILITY=1 ; chance of flame shoot on upshift
FLAT_SHIFT_RPM_THRESHOLD=8500
LIMITER=1 ; on hitting the limiter
LIMITER_DELAY=0 ; delay, in seconds
LIMITER_INTENSITY=5 ; flame size
LIMITER_RPM_THRESHOLD=2000 ; limiter flames will not shoot below this rpm
