;;;;;;;;; Exterior / Paint ;;;;;;;;; 
[BRAKEDISC_FX]
ACTIVE = 1             ; set to 0 to disable the whole thing if car uses ksBrakeDisc shader for something else
CERAMIC = 1            ; use ceramic look
CARVED = 1             ; add a bit of carving, radial lines (fast for shader to compute)
CARVED_FREQUENCY = 100  ; 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

; Patch guesses holes from alpha-channel of txDiffuse. Holes don’t glow or reflect stuff and look dark:
ALPHA_MASK = 0.1, 0.2  ; hole is everything with alpha below 0.1, everything with alpha above 0.2 is not a hole, in-between is a transition

; Patch can also estimate deepenings based on luminance and normal texture. Deepenings glow with a delay (but fully heated, glow more) and are a bit occluded:
LUMINOCITY_MASK = 0.01, 0.02  ; everything darker than 0.01 is a deepening
NORMAL_MASK = 0.5, 0.3        ; everything looking away more than 50% is a deepening

[INCLUDE: common/materials_carpaint.ini]
CarPaintMaterial = carpaint
CarPaintVersionAware = 2

[Material_CarPaint_Metallic]
Materials = carpaint
LocalReflectionsForce = 1

[Material_CarPaint_Metallic]
AmbientSpecular = 1

[Material_CarPaint_Metallic]
FresnelMax = 1
FresnelC = 0.1
BrightnessAdjustment = 0.9 ; compensates for ambient specular
ColoredSpecular = 0.9
AmbientSpecular = 0.6
AmbientSpecularEXP = 2.5
ClearCoatThickness = 0.10

;;;;;;;;; Exterior / Glass ;;;;;;;;; 
[INCLUDE: common/materials_glass.ini]
ExteriorGlassFilmedMaterials= 
ExteriorGlassTintedMaterials= 
ExteriorGlassHeadlightsMaterials = 

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

[Material_PhotoelasticGlass]
Meshes=
FilmIOR=0.4

;PBR GLASS
[INCLUDE: common/materials_glass.ini]
[Material_Glass]
Materials = 
ThicknessMult = 1.5
EXTRA_MASK_PASS = 1
EXTRA_MASK_PASS_OPACITY = 5
FilmIOR=2

[Material_Glass]
Materials = Windowd
ThicknessMult = 1
EXTRA_MASK_PASS = 1
EXTRA_MASK_PASS_OPACITY = 0.9
FilmIOR=2

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

;PBR GLASS
[INCLUDE: common/materials_glass.ini]
[Material_Glass]
Materials = GlassRed
ThicknessMult = 0.3
EXTRA_MASK_PASS = 1
EXTRA_MASK_PASS_OPACITY = 1
FilmIOR=1

;;;;;;;;; Interior / PBR ;;;;;;;;; 

[INCLUDE: common/materials_interior.ini]
;PBR MATERIALS EXTERIOR
[Material_Carbon]
Materials = PLASTIC
BrightnessAdjustment = 0.3
ClearCoatF0 = 0.25
DetailScale = 20

[Material_Carbon]
Materials = CSR2_Carbon1
BrightnessAdjustment = 0.2
ClearCoatF0 = 0.25
DetailScale = 400

[INCLUDE: common/materials_carpaint.ini]
[Material_InteriorPBRDetail]
Materials = 
DetailNormalTexture = common/pbr_metal_satin.dds
DetailScale = 150
ApplyTilingFix = 1
BrightnessAdjustment = 0.2
DetailNormalPBRSmoothness = 0.9
DetailNormalPBRSmoothnessGamma = 0.9
Metalness = 0.2
Reflectance = 0.15
LocalReflectionsSharpness = 0.1
DetailNormalPBRSecondaryColor = 0.6, 0, 0,1

[INCLUDE: common/materials_carpaint.ini]
[Material_Metal_v2]
Materials = RIM
BrightnessAdjustment = 0.10
DetailScale = 700
Metalness = 0.50
Reflectance = 0.30
LocalReflectionsSharpness = 0.9			ext_rim, EXT_Rim
DetailTexture = 10

[Material_Metal_v2]
Materials = CROM2 , CROM
BrightnessAdjustment = 0.10
DetailScale = 700
Metalness = 0.50
Reflectance = 0.20
LocalReflectionsSharpness = 0.9			ext_rim, EXT_Rim
DetailTexture = 1

[Material_Plastic_v2]
Materials = BLACKGLASS
BrightnessAdjustment = 0.2
DetailScale = 100

[Material_Plastic_v2]
Materials = CSR2_Light
BrightnessAdjustment = 0.1
DetailScale = 0

;INTERIOR PBR
[INCLUDE: common/materials_interior.ini]
[Material_Metal_v2]
Materials = INTCROM
BrightnessAdjustment = 0.1
DetailScale = 0
Metalness = 0.20
Reflectance = 0.10
LocalReflectionsSharpness = 0.1
DetailTexture = 1

[Material_Velvet]
Materials=alcantara
BrightnessAdjustment=0.25

[Material_Carpet]
Materials=CARPET

[Material_Leather]
Materials=LETHER, SEATSLETHER, CSR2_Grille4
BrightnessAdjustment = 0.3

[Material_Plastic]
Materials=int_plastic
BrightnessAdjustment = 0.2

[Material_Carbon]
Materials=CSR2_Carbon1M
DetailScale = 3
BrightnessAdjustment = 0.2
ClearCoatF0 = 0.15
Reflectance = 0.1

;;;;;;;;; Sound / Exhaust ;;;;;;;;; 

AUDIO_PROPERTIES]
TURBO_THROTTLE = 1

[AUDIO_VOLUME]
BACKFIRE_INT=1.25
BACKFIRE_EXT=1
BODYWORK=1
DIRT=1
DOWN_SHIFT=1
ENGINE_EXT=1.5
ENGINE_INT=1.2
GEAR_EXT=1
GEAR_GRIND=1
GEAR_INT=1
HORN=1
LIMITER=1
TRACTION_CONTROL_EXT=1
TRACTION_CONTROL_INT=1
TRANSMISSION=1
TURBO=5
WIND=1
SKID_EXT = 1
SKID_INT = 1


[AUDIO_PITCH]
ENGINE_EXT = 0.9
ENGINE_INT = 0.9
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
HIT = 1
SCRAPE = 1
WHEEL = 1
SKID_EXT = 1
SKID_INT = 1

[EMISSIVE_REVERSE_0]
NAME=REVRESE
COLOR=85, 85, 85
LAG=0.0
SIMULATE_HEATING=1.0

[LIGHT_LICENSEPLATE]
; no need to specify meshes names if material is using
; Plate_D.dds and Plate_NM.dds textures
MESHES=plate_loda,front_plate01
OFFSET=0.0, 0.01, -0.15
RANGE=0.3
RANGE_GRADIENT_OFFSET=0.4
SPOT=200
SPOT_SHARPNESS=0.4
COLOR=1,1,1,3
FALLBACK_EMISSIVE=1,1,1
; other supported values: TWO_ON_TOP, ONE_ON_TOP
LAYOUT=TWO_ON_TOP

;;;;;;;;; Lights / Turn Signals ;;;;;;;;; 
[EMISSIVE_LIGHT_...] ;  Front Lights
NAME=LIGHTF
COLOR=50,50,50
LAG=0.0
SIMULATE_HEATING=0
LOCATION=FRONT
CAST_LIGHT=0
CLUSTER_THRESHOLD=0.5

[EMISSIVE_LIGHT_...] ;  Front Lights
NAME=Warning_LowBeam
COLOR=-3, 10, -3
LAG=0.0
SIMULATE_HEATING=0
LOCATION=FRONT
CAST_LIGHT=0
CLUSTER_THRESHOLD=0.5

[EMISSIVE_LIGHT_...] ;  Front Lights
NAME=REARLIGHT
COLOR=50,50,50
LAG=0.0
SIMULATE_HEATING=0
LOCATION=FRONT
CAST_LIGHT=0
CLUSTER_THRESHOLD=0.5

[EMISSIVE_HIGHBEAM_...] ; High Beam
NAME=LIGHTFH
COLOR=50,50,50,3
LAG=0.0
SIMULATE_HEATING=0
LOCATION=FRONT
CAST_LIGHT=0
CLUSTER_THRESHOLD=0.5

[EMISSIVE_HIGHBEAM_...] ; High Beam
NAME=Warning_HighBeam
COLOR=-50,-50,200
LAG=0.0
SIMULATE_HEATING=0
LOCATION=FRONT
CAST_LIGHT=0
CLUSTER_THRESHOLD=0.5

[EMISSIVE_BRAKE_...]
NAME=BRAKE,BRAKE2
COLOR=100,-100,-100
LAG=0.0
SIMULATE_HEATING=0
LOCATION=FRONT
CAST_LIGHT=1
CLUSTER_THRESHOLD=0.5

;;;;;;;;; Turn Signals ;;;;;;;;; 
[EMISSIVE_TURNSIGNAL_LEFT_0]
RANGE_PREFIX=LDRL_
RANGE_START_INDEX=0
RANGE_END_INDEX=11
RANGE_DELAY=0.01 	; to compensate for that there are more of them
COLOR=25, 12, 0,20
OFF_COLOR=25, 25, 25,5
LAG=0.0
REPEAT_FREQENCY_HZ=1.8
LOCATION=REAR
SIMULATE_HEATING=0
CAST_LIGHT=1
REPEAT_FREQENCY_HAZARDS_HZ=0


[EMISSIVE_TURNSIGNAL_LEFT_1]
RANGE_PREFIX=LLB_
RANGE_START_INDEX=0
RANGE_END_INDEX=11
RANGE_DELAY=0.01 	; to compensate for that there are more of them
COLOR=25, 12, 0,20
LAG=0.0
REPEAT_FREQENCY_HZ=1.8
LOCATION=REAR
SIMULATE_HEATING=0
CAST_LIGHT=1
REPEAT_FREQENCY_HAZARDS_HZ=0

[EMISSIVE_TURNSIGNAL_LEFT_2]
NAME=RLBLINKER_
RANGE_PREFIX=RLBLINKER_
RANGE_START_INDEX=0
RANGE_END_INDEX=12
RANGE_DELAY=0.035 	; to compensate for that there are more of them
COLOR=200, 100, 0
LAG=0.1
REPEAT_FREQENCY_HZ=1.8
LOCATION=FRONT
SIMULATE_HEATING=0
CAST_LIGHT=1
REPEAT_FREQENCY_HAZARDS_HZ=2.0

[EMISSIVE_TURNSIGNAL_LEFT_3]
NAME=LIBLINKER
COLOR=-3, 10, -3
LAG=0.1
SIMULATE_HEATING=0.0
LOCATION=FRONT
CAST_LIGHT=0

[EMISSIVE_TURNSIGNAL_RIGHT_0]
RANGE_PREFIX=RDRL_
RANGE_START_INDEX=0
RANGE_END_INDEX=11
RANGE_DELAY=0.01 	; to compensate for that there are more of them
COLOR=25, 12, 0,20
OFF_COLOR=25, 25, 25,5
LAG=0.0
REPEAT_FREQENCY_HZ=1.8
LOCATION=REAR
SIMULATE_HEATING=0
CAST_LIGHT=1
REPEAT_FREQENCY_HAZARDS_HZ=0

[EMISSIVE_TURNSIGNAL_RIGHT_1]
RANGE_PREFIX=RLB_
RANGE_START_INDEX=0
RANGE_END_INDEX=11
RANGE_DELAY=0.01 	; to compensate for that there are more of them
COLOR=25, 12, 0,20
LAG=0.0
REPEAT_FREQENCY_HZ=1.8
LOCATION=REAR
SIMULATE_HEATING=0
CAST_LIGHT=1
REPEAT_FREQENCY_HAZARDS_HZ=0

[EMISSIVE_TURNSIGNAL_RIGHT_2]
NAME=RRBLINKER_0
RANGE_PREFIX=RRBLINKER_
RANGE_START_INDEX=0
RANGE_END_INDEX=12
RANGE_DELAY=0.035 	; to compensate for that there are more of them
COLOR=200, 100, 0
LAG=0.1
REPEAT_FREQENCY_HZ=1.8
LOCATION=FRONT
SIMULATE_HEATING=0
CAST_LIGHT=1
REPEAT_FREQENCY_HAZARDS_HZ=2.0

[EMISSIVE_TURNSIGNAL_RIGHT_3]
NAME=RIBLINKER
COLOR=-3, 10, -3
LAG=0.1
SIMULATE_HEATING=0.0
LOCATION=FRONT
CAST_LIGHT=0

;;;;;;;;; Interior / Lighting ;;;;;;;;; 
[EMISSIVE_LIGHT_...] ; Cluster
NAME=CLUSTER,LCD2
COLOR=1,1,1,1.5
OFF_COLOR=1,1,1,3
LAG=0.0
SIMULATE_HEATING=0
LOCATION=FRONT
CAST_LIGHT=0
CLUSTER_THRESHOLD=0.5

[EMISSIVE_LIGHT_...]    ; Instrument Cluster
NAME=InteriorEmissive002
COLOR=1,1,1,2
OFF_COLOR=1,1,1,3
LAG=0.0
SIMULATE_HEATING=0
LOCATION=FRONT
CAST_LIGHT=0
CLUSTER_THRESHOLD=0.5

[EMISSIVE_LIGHT_...]    ; Gauge Needles
NAME=rpm,turbo,speed,fuel
COLOR=1,1,1
LAG=0.0
SIMULATE_HEATING=0
LOCATION=FRONT
CAST_LIGHT=0
CLUSTER_THRESHOLD=0.5

[EMISSIVE_LIGHT_...]    ; Interior Lighting
NAME=WHEELBOTOES,BOTOES4,BOTOES2,BOTOES5,BOTOES
COLOR=10,10,10
LAG=0.7
SIMULATE_HEATING=1
LOCATION=FRONT
CAST_LIGHT=0
CLUSTER_THRESHOLD=0.5

[EMISSIVE_LIGHT_...]    ; Interior Lighting
NAME=InteriorAmbientLights_001, InteriorAmbientLights_002, InteriorAmbientLights_003, InteriorAmbientLights_004
COLOR=20,0,0
LAG=0.5
SIMULATE_HEATING=1
LOCATION=FRONT
CAST_LIGHT=1
CLUSTER_THRESHOLD=0.5

[EMISSIVE_LIGHT_...]    ; Interior Lighting
NAME=InteriorAmbientLights
COLOR=50,0,0
LAG=0.0
SIMULATE_HEATING=0
LOCATION=FRONT
CAST_LIGHT=1

;;;;;;;;; Self-Lighting / Lighting ;;;;;;;;; 
[INCLUDE: common/selflighting.ini]

[SelfLight_Headlights]
MIRROR = 0.693
DIRECTION = 0.0, 0.0, 0.2
POSITION = 0.0, 0.69, 1.73
AFFECTS_TRACK = 1
DIFFUSE_CONCENTRATION = 1
BOUND_TO =  LIGHTF
SPOT_SHARPNESS = 0.6
SPOT = 120
COLOR =14,14,16,10
SPECULAR_MULT = 0
RANGE = 0.6	

[SelfLight_Headlights]
MIRROR = 0.921
DIRECTION = 0.0, 0.0, 0.2
POSITION = 0.0, 0.972, 0.58
AFFECTS_TRACK = 1
DIFFUSE_CONCENTRATION = 1
BOUND_TO =  LLB_1
SPOT_SHARPNESS = 0.6
SPOT = 120
COLOR =14,14,16
SPECULAR_MULT = 0
RANGE = 0.6	

;;;;;;;;; Lights / Config ;;;;;;;;; 
[LIGHT_HEADLIGHT_0]
BIND_TO_HEADLIGHTS=1
AFFECTS_TRACK=1
BOUND_EMISSIVE_MAX=400
BOUND_EXP=1
COLOR=1.0, 1.0, 1.0,20
DIFFUSE_CONCENTRATION=0.0
DIRECTION=-0.1, -0.05, 1.1
EXTERIOR_ONLY=0
FADE_AT=500
FADE_SMOOTH=120
INTERIOR_ONLY=0
LOWBEAM_RANGE_MAX=500
LOWBEAM_RANGE_MULT=0.9
LOWBEAM_RANGE_ONCOMING_MULT=0.9
MIRROR=1
MIRROR_DIRECTION=0
POPUP_ENABLED=1
POSITION=0, 0.68, 2.0
RANGE=400
RANGE_GRADIENT_OFFSET=0
SINGLE_FREQUENCY=0
SPECULAR_MULT=0

[LIGHT_HEADLIGHT_1]
AFFECTS_TRACK=1
BOUND_EMISSIVE_MAX=500
BOUND_EXP=1
COLOR=1, 0.181034, 0,1
DIFFUSE_CONCENTRATION=0.88
DIRECTION=0, 0, -1
EXTERIOR_ONLY=1
FADE_AT=120
FADE_SMOOTH=30
INTERIOR_ONLY=0
MIRROR=0.655593
MIRROR_DIRECTION=0
POSITION=0, 0.825127, -1.9
RANGE=5
RANGE_GRADIENT_OFFSET=0.25
SINGLE_FREQUENCY=1
SPECULAR_MULT=1
SPOT=60
SPOT_EDGE=0.12, 0.12, 0.12
SPOT_EDGE_SHARPNESS=10
SPOT_SHARPNESS=0.4

[LIGHT_BRAKE_0]
AFFECTS_TRACK=1
BOUND_EMISSIVE_MAX=500
BOUND_EXP=1
COLOR=1, 0.181034, 0, 3
DIFFUSE_CONCENTRATION=0.88
DIRECTION=0, 0, -1
EXTERIOR_ONLY=1
FADE_AT=120
FADE_SMOOTH=30
INTERIOR_ONLY=0
MIRROR=0.655593
MIRROR_DIRECTION=0
POSITION=0, 0.825127, -2.77
RANGE=2
RANGE_GRADIENT_OFFSET=0.25
SINGLE_FREQUENCY=1
SPECULAR_MULT=1
SPOT=155
SPOT_EDGE=0.12, 0.12, 0.12
SPOT_EDGE_SHARPNESS=10
SPOT_SHARPNESS=0.4

[LIGHTING]
EMISSIVE_BRAKELIGHTS_MULT=1
EMISSIVE_HEADLIGHTS_MULT=1
EMISSIVE_MULT=1
EMISSIVE_PARKINGLIGHTS_MULT=1
INTERIOR_FAKE_SHADOW_FADE=0.2
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


;;;;;;;;;;;;;;;;;;;;;;;   Cluster / Heads up Display   ;;;;;;;;;;;;;;;;;;;;

[ODOMETER_MAIN]
DIGITAL_ITEM=10
DIGITAL_ITEM_NUMBER_FORMAT=04.0
UPPER_BOUND=99

[ODOMETER_TRIP]
DIGITAL_ITEM=5
DIGITAL_ITEM_NUMBER_FORMAT=03.0
UPPER_BOUND=999

[INCLUDE: common/navigators.ini]
[Navigator_StyleModernDark]
Meshes = Object1775
Resolution = 840, 500
Offset = 0, 30
Size = 840, 500
SmallButtonSize = 55
POS_OFFSET_START = 0.0, 0, -0.0 position offset for the minimum value
POS_OFFSET_END = -0.06, 0.0, -0.0

[EMISSIVE_OIL_TEMP_0]
INPUT=OIL_TEMP
INPUT_THRESHOLD=70
NAME=Warning_OilTemp
COLOR=0,0,0
OFF_COLOR=20,10,-10,0.5
LAG=0.0
SIMULATE_HEATING=0
TOGGLE_VISIBILITY=1

[EMISSIVE_FUEL_0]
INPUT=FUEL
INPUT_THRESHOLD=15
NAME=Warning_ABS001
OFF_COLOR=20,2,-10
LAG=0.0
SIMULATE_HEATING=0
TOGGLE_VISIBILITY= 1

[EMISSIVE_...]
NAME=Warning_SeatBeltL
TOGGLE_VISIBILITY = 0
COLOR=60,12,0.2,1
BIND_TO=SUSP_DAMAGE
THRESHOLD=10
LAG=0.0

[EMISSIVE_HAZARD_0]
COLOR=40,-4,-4 
NAME=Hazards
LAG=0.0
TOGGLE_VISIBILITY = 1

[EMISSIVE_ABS_INACTION_0]
NAME=Warning_ABS
TOGGLE_VISIBILITY = 1
COLOR=10,2.6,-4
OFF_COLOR=0
REPEAT_FREQENCY_HZ=5
LAG=0.0

[EMISSIVE_ABS_0]
NAME=Warning_HazardsCluster
TOGGLE_VISIBILITY = 1
COLOR=0,0,0
OFF_COLOR=10,5.6,-4
LAG=0.2

[EMISSIVE_TRACTIONCONTROL_0]
NAME=Warning_TCActive,Warning_Engine
TOGGLE_VISIBILITY = 1
COLOR=0
OFF_COLOR=40,15,-10
LAG=0.2

[EMISSIVE_HANDBRAKE_0]
NAME=Warning_Handbrake,Warning_TC_OFF
TOGGLE_VISIBILITY = 1
COLOR=60,2,0.2,1
LAG=0.2

[EMISSIVE_...]
NAME=
TOGGLE_VISIBILITY = 1
COLOR=60,12,0.2,1
INPUT=ENGINE_LIFE
INPUT_THRESHOLD = 800
INPUT_THRESHOLD_INVERSE = 1
LAG=0.2

[EMISSIVE_EXTRA_B_0]
BIND_TO_EXTRA_B=1
TOGGLE_VISIBILITY = 1
NAME = Warning_FogLampRear
COLOR = 20,-200,-200
LAG = 0.5
SIMULATE_HEATING = 0.3

[EMISSIVE_EXTRA_B_2]
BIND_TO_EXTRA_B=1
TOGGLE_VISIBILITY = 1
NAME = Warning_FogLampFront
COLOR = -200,20,-200
LAG = 0.5
SIMULATE_HEATING = 0.3

[LIGHT_EXTRA_...]
BIND_TO_EXTRA_C=1
BIND_TO_HEADLIGHTS=0
COLOR=5,-5,-5, 3
DIFFUSE_CONCENTRATION=0.88
EXTERIOR_ONLY=0
INTERIOR_ONLY=1
AFFECTS_TRACK=0
FADE_AT=90
FADE_SMOOTH=20
POSITION=0.00, 0.70, 0.50
DIRECTION=-0.0, -0.25, 0.05
RANGE=1.2
RANGE_GRADIENT_OFFSET=0.05
SPECULAR_MULT=0.5
SPOT=250
SPOT_SHARPNESS=0.10

[LIGHT_EXTRA_...]
BIND_TO_EXTRA_C=1
BIND_TO_HEADLIGHTS=0
COLOR=5,-5,-5, 3
DIFFUSE_CONCENTRATION=0.88
EXTERIOR_ONLY=0
INTERIOR_ONLY=1
AFFECTS_TRACK=0
FADE_AT=90
FADE_SMOOTH=20
POSITION=-0.4, 0.70, 0.50
DIRECTION=0.05, -0.25, 0.05
RANGE=1.2
RANGE_GRADIENT_OFFSET=0.05
SPECULAR_MULT=0.5
SPOT=250
SPOT_SHARPNESS=0.10

[LIGHT_EXTRA_...]
BIND_TO_EXTRA_C=1
BIND_TO_HEADLIGHTS=0
COLOR=5,-5,-5, 3
DIFFUSE_CONCENTRATION=0.88
EXTERIOR_ONLY=0
INTERIOR_ONLY=1
AFFECTS_TRACK=0
FADE_AT=90
FADE_SMOOTH=20
POSITION=0.4, 0.70, 0.50
DIRECTION=-0.05, -0.25, 0.05
RANGE=1.2
RANGE_GRADIENT_OFFSET=0.05
SPECULAR_MULT=0.5
SPOT=250
SPOT_SHARPNESS=0.10

[STATUS_OIL]
; similar thing, overly simplified estimation for instruments
PRESSURE_BASE = 1.0         ; base oil pressure for idling engine
PRESSURE_STEP = 0.9         ; oil pressure increase for each 1000 RPM
PRESSURE_LAG_UP = 0.998   ; oil pressure increase lag
PRESSURE_LAG_DOWN = 0.999  ; oil pressure decrease lag

TEMPERATURE_MULT = 0.88     ; relation of oil temperature to water temperature
TEMPERATURE_RPM_FACTOR = 5  ; extra increase of oil temperature for each 1000 RPM
TEMPERATURE_LAG_UP =0.9985 ; oil temperature increase lag
TEMPERATURE_LAG_DOWN = 0.9992  ; oil temperature decrease lag

;;;;;;;;;;;;;;;;;;;;;;;   Exterior Effects   ;;;;;;;;;;;;;;;;;;;;
----------------------------------------------------
--               EXHAUST               --
----------------------------------------------------

[INCLUDE: common/gt3_exhaust_glow.ini]
[EMISSIVE_WATER_TEMP_0_EXHAUST_GLOW]
MESHES = 
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 = 3

[BASIC]
DIESEL_ENGINE = 0 		; or 1

[PARTICLES_FX_EXHAUST_1]
POSITION = 0.558, 0.271, -2.33		; 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.685, 0.271, -2.29		; 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.558, 0.271, -2.33		; 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.685, 0.271, -2.29		; 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.2 ; how long after antilag trigger do flames start, in seconds
ANTILAG_INTENSITY=1 ; flame size
ANTILAG_INTERVAL_MAX=7000
ANTILAG_INTERVAL_MIN=4000
ANTILAG_TURBO_THRESHOLD=0.2
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.3 ; 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.1; chance of flame shoot on lift, 1 is guaranteed, 0 is never
DISCHARGE_INTENSITY=1; flame size
DISCHARGE_RPM_THRESHOLD_MAX=8900 ; self explanatory
DISCHARGE_RPM_THRESHOLD_MIN=5000 ; 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=70 ; how much gas needs to be pressed on upshift for flame, 100 is wide open
FLAT_SHIFT_INTENSITY=1 ; 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=166767 ; delay, in seconds
LIMITER_INTENSITY=1 ; flame size
LIMITER_RPM_THRESHOLD=7000 ; limiter flames will not shoot below this rpm


;;;;;;POLICE LIGHTS;;;;;;;;


[EMISSIVE_EXTRA_A_1] dash
NAME=dash_blue_2
COLOR=0,0,500,10
LAG=0
SIMULATE_HEATING=0
BLINKING_PATTERN=(|0=0|0.49=0|0.5=3|0.55=0|0.59=0| 0.6=3|0.65=0|0.69=0|0.70=3|0.75=0|0.80=3|0.94=3|0.95=0|1=0)
BLINKING_DURATION=0.8
CAST_LIGHT=1

[EMISSIVE_EXTRA_A_2] dash
NAME=dash_blue_1
COLOR=0,0,500,10
LAG=0
SIMULATE_HEATING=0
BLINKING_PATTERN=(|0=3|0.05=0|0.1=3|0.15=0|0.19=0|0.2=3|0.25=0|0.29=0| 0.3=3|0.44=3|0.45=0|0.9=0|1=0)
BLINKING_DURATION=0.8
CAST_LIGHT=1

[EMISSIVE_EXTRA_A_3] Upper Grille
NAME=ref_light.001
COLOR=0,0,1000,10
LAG=0
SIMULATE_HEATING=0
BLINKING_PATTERN=(|0=3|0.05=0|0.1=3|0.15=0|0.19=0|0.2=3|0.25=0|0.29=0| 0.3=3|0.35=0|0.9=0|1=0)
BLINKING_DURATION=0.8
CAST_LIGHT=1

[EMISSIVE_EXTRA_A_4] Upper Grille
NAME=ref_light
COLOR=0,0,1000,10
LAG=0
SIMULATE_HEATING=0
BLINKING_PATTERN=(|0=0|0.49=0|0.5=3|0.55=0|0.59=0| 0.6=3|0.65=0|0.69=0|0.70=3|0.75=0|0.80=3|0.85=0|1=0)
BLINKING_DURATION=0.8
CAST_LIGHT=1

[EMISSIVE_EXTRA_A_5] Lower Grille
NAME=ref_light006
COLOR=0,0,500,10
LAG=0
SIMULATE_HEATING=0
BLINKING_PATTERN=(|0=3|0.05=0|0.1=3|0.15=0|0.19=0|0.2=3|0.25=0|0.29=0| 0.3=3|0.35=0|0.9=0|1=0)
BLINKING_DURATION=0.8
TOGGLE_VISIBILITY=1
CAST_LIGHT=1

[EMISSIVE_EXTRA_A_6] Lower Grille
NAME=ref_light.007
COLOR=0,0,500,10
LAG=0
SIMULATE_HEATING=0
BLINKING_PATTERN=(|0=0|0.49=0|0.5=3|0.55=0|0.59=0| 0.6=3|0.65=0|0.69=0|0.70=3|0.75=0|0.80=3|0.85=0|1=0)
BLINKING_DURATION=0.8
TOGGLE_VISIBILITY=1
CAST_LIGHT=1

[EMISSIVE_EXTRA_A_7] Upper Grille
NAME=ref_light.006
COLOR=600,600,600,2
LAG=0
SIMULATE_HEATING=0
BLINKING_PATTERN=(|0=0|0.49=0|0.5=3|0.55=0|0.59=0| 0.6=3|0.65=0|0.69=0|0.70=3|0.75=0|0.80=3|0.85=0|1=0)
BLINKING_DURATION=1
CAST_LIGHT=1

[EMISSIVE_EXTRA_A_8] Upper Grille
NAME=ref_light005
COLOR=600,600,600,2
LAG=0
SIMULATE_HEATING=0
BLINKING_PATTERN=(|0=3|0.05=0|0.1=3|0.15=0|0.19=0|0.2=3|0.25=0|0.29=0| 0.3=3|0.35=0|0.9=0|1=0)
BLINKING_DURATION=1
CAST_LIGHT=1

[EMISSIVE_EXTRA_A_9] Numberplate
NAME=ref_light.008
COLOR=0,0,100,20
LAG=0
SIMULATE_HEATING=0
BLINKING_PATTERN=(|0=3|0.05=0|0.1=3|0.15=0|0.19=0|0.2=3|0.25=0|0.29=0| 0.3=3|0.35=0|0.9=0|1=0)
BLINKING_DURATION=0.75
CAST_LIGHT=1

[EMISSIVE_EXTRA_A_10] Numberplate
NAME=ref_light_on003
COLOR=0,0,100,20
LAG=0
SIMULATE_HEATING=0
BLINKING_PATTERN=(|0=0|0.49=0|0.5=3|0.55=0|0.59=0| 0.6=3|0.65=0|0.69=0|0.70=3|0.75=0|0.80=3|0.85=0|1=0)
BLINKING_DURATION=0.75
CAST_LIGHT=1

[EMISSIVE_EXTRA_A_11] TAIL CLUSTER
NAME=rear_blues
COLOR=0,0,500,20
LAG=0
SIMULATE_HEATING=0
BLINKING_PATTERN=(|0=3|0.05=0|0.1=3|0.15=0|0.19=0|0.2=3|0.25=0|0.29=0| 0.3=3|0.35=0|0.9=0|1=0)
BLINKING_DURATION=0.75
TOGGLE_VISIBILITY=1
CAST_LIGHT=1

[EMISSIVE_EXTRA_A_12] TAIL CLUSTER
NAME=rear_blues001
COLOR=0,0,500,20
LAG=0
SIMULATE_HEATING=0
BLINKING_PATTERN=(|0=0|0.49=0|0.5=3|0.55=0|0.59=0| 0.6=3|0.65=0|0.69=0|0.70=3|0.75=0|0.80=3|0.85=0|1=0)
BLINKING_DURATION=0.75
TOGGLE_VISIBILITY=1
CAST_LIGHT=1

[EMISSIVE_EXTRA_A_13] Rear Window
NAME=ref_light003_rr
COLOR=0,0,200,20
LAG=0
SIMULATE_HEATING=0
BLINKING_PATTERN=(|0=3|0.05=0|0.1=3|0.15=0|0.19=0|0.2=3|0.25=0|0.29=0| 0.3=3|0.35=0|0.9=0|1=0)
BLINKING_DURATION=0.75
CAST_LIGHT=1

[EMISSIVE_EXTRA_A_14] Rear Window
NAME=ref_light004
COLOR=0,0,200,20
LAG=0
SIMULATE_HEATING=0
BLINKING_PATTERN=(|0=0|0.49=0|0.5=3|0.55=0|0.59=0| 0.6=3|0.65=0|0.69=0|0.70=3|0.75=0|0.80=3|0.85=0|1=0)
BLINKING_DURATION=0.75
CAST_LIGHT=1

[EMISSIVE_EXTRA_A_15] Quarter Window
NAME=ref_light.009
COLOR=0,0,200,20
LAG=0
SIMULATE_HEATING=0
BLINKING_PATTERN=(|0=3|0.05=0|0.1=3|0.15=0|0.19=0|0.2=3|0.25=0|0.29=0| 0.3=3|0.35=0|0.9=0|1=0)
BLINKING_DURATION=0.75
CAST_LIGHT=1

[EMISSIVE_EXTRA_A_16] Quarter Window
NAME=ref_light007
COLOR=0,0,200,20
LAG=0
SIMULATE_HEATING=0
BLINKING_PATTERN=(|0=0|0.49=0|0.5=3|0.55=0|0.59=0| 0.6=3|0.65=0|0.69=0|0.70=3|0.75=0|0.80=3|0.85=0|1=0)
BLINKING_DURATION=0.75
CAST_LIGHT=1

[EMISSIVE_EXTRA_A_17]
NAME=switch_blue
COLOR=0,0,100,3
CAST_LIGHT=1

[EMISSIVE_EXTRA_A_18] Beacon
NAME=glass
COLOR=0,0,100,10
LAG=0
SIMULATE_HEATING=0
BLINKING_PATTERN=(|0=3|0.05=0|0.1=3|0.15=0|0.19=0|0.2=3|0.25=0|0.29=0| 0.3=3|0.35=0|0.49=0|0.5=3|0.55=0|0.59=0| 0.6=3|0.65=0|0.69=0|0.70=3|0.75=0|0.80=3|0.85=0|1=0)
BLINKING_DURATION=0.9
CAST_LIGHT=1

[EMISSIVE_EXTRA_C_0]
BIND_TO_EXTRA_C=1
NAME=CROM
COLOR=7,7,7,2 ;last number is for brightness
BIND_TO_HEADLIGHTS=0


[EMISSIVE_EXTRA_F_0]
BIND_TO_EXTRA_F=1
NAME=
COLOR=0,2,7,0.2 ;last number is for brightness
BIND_TO_HEADLIGHTS=0

[ANIMATION_0]
INPUT = EXTRA_D           ; bind to reverse gear
FILE = beacon.ksanim    ; file name of new animation in “animations” folder
TIME = 2.0                  ; animation time
INPUT_AS_PROGRESS = 0       ; set to 1 to switch to that second input-as-progress mode
LOOP_WHILE_ACTIVE = 0       ; if set to 0, animation would go to 0% if not triggered, and 
                            ; to 100% otherwise; if set to 1, animation would play in 
                            ; a loop if triggered and stop otherwise
LOOP_KEEP_UNTIL_DONE = 1    ; only for “LOOP_WHILE_ACTIVE”: set to 1 to make animation 
                            ; go to 0% if stopped (like wipers would do, for example)
TICK_TOCK_MODE = 0          ; only for “LOOP_WHILE_ACTIVE”: loop as 0% → 100% → 0% instead 
                            ; of jumping from 100% to 0%
AFFECTS_INTERIOR_SHAPE = 1  ; force to update interior reflections mask if animation is 
                            ; playing (slower)


[ANIMATION_1]
INPUT = EXTRA_D           ; bind to reverse gear
FILE = window.ksanim    ; file name of new animation in “animations” folder
TIME = 2.0                  ; animation time
INPUT_AS_PROGRESS = 0       ; set to 1 to switch to that second input-as-progress mode
LOOP_WHILE_ACTIVE = 0       ; if set to 0, animation would go to 0% if not triggered, and 
                            ; to 100% otherwise; if set to 1, animation would play in 
                            ; a loop if triggered and stop otherwise
LOOP_KEEP_UNTIL_DONE = 1    ; only for “LOOP_WHILE_ACTIVE”: set to 1 to make animation 
                            ; go to 0% if stopped (like wipers would do, for example)
TICK_TOCK_MODE = 0          ; only for “LOOP_WHILE_ACTIVE”: loop as 0% → 100% → 0% instead 
                            ; of jumping from 100% to 0%
AFFECTS_INTERIOR_SHAPE = 1  ; force to update interior reflections mask if animation is 
                            ; playing (slower)


[LIGHT_EXTRA_8]     ; lightcone Foglight_L for players car only
BIND_TO_EXTRA_A=1   ; if "1" on/off with "Alt+NUMPAD7" for players car only;
COLOR=0,0,8,0.1
DIFFUSE_CONCENTRATION=0.98
EXTERIOR_ONLY=0
INTERIOR_ONLY=0
FADE_AT=20;5
FADE_SMOOTH=1
MIRROR=0
POSITION=0,1.522284,-0.15
DIRECTION=1,0,0
RANGE=300;1.25
RANGE_GRADIENT_OFFSET=0.51
SPECULAR_MULT=1
SPOT=240;120
SPOT_SHARPNESS=0.5
BLINKING_DURATION=2
TOGGLE_VISIBILITY=1
TOGGLE_VISIBILITY_INVERSE=0
CAST_LIGHT=1
CAST_SHADOW=1
CAST_SHADOWS=1
BLINKING_PATTERN=(|0=0|0.05=0|0.1=3|0.15=0|0.19=0|0.2=3|0.25=0|0.29=0| 0.3=3|0.35=0|0.49=0|0.5=1|0.55=0|0.59=0| 0.6=1|0.65=0|0.69=0|0.70=1|0.75=0|0.80=1|0.85=0| 1=0)
BLINKING_DURATION=2

[LIGHT_EXTRA_9]     ; lightcone Foglight_L for players car only
BIND_TO_EXTRA_A=1   ; if "1" on/off with "Alt+NUMPAD7" for players car only;
COLOR=0,0,8,0.1
DIFFUSE_CONCENTRATION=0.98
EXTERIOR_ONLY=0
INTERIOR_ONLY=0
FADE_AT=20;5
FADE_SMOOTH=1
MIRROR=0
POSITION=0,1.522284,-0.15
DIRECTION=-1,0,0
RANGE=300;1.25
RANGE_GRADIENT_OFFSET=0.51
SPECULAR_MULT=1
SPOT=240;120
SPOT_SHARPNESS=0.5
BLINKING_DURATION=2
TOGGLE_VISIBILITY=1
TOGGLE_VISIBILITY_INVERSE=0
CAST_LIGHT=1
CAST_SHADOW=1
CAST_SHADOWS=1
BLINKING_PATTERN=(|0=0|0.05=0|0.1=3|0.15=0|0.19=0|0.2=3|0.25=0|0.29=0| 0.3=3|0.35=0|0.49=0|0.5=1|0.55=0|0.59=0| 0.6=1|0.65=0|0.69=0|0.70=1|0.75=0|0.80=1|0.85=0| 1=0)
BLINKING_DURATION=2


[LIGHT_EXTRA_10]     ; lightcone Foglight_L for players car only
BIND_TO_EXTRA_A=1   ; if "1" on/off with "Alt+NUMPAD7" for players car only;
COLOR=0,0,8,0.4
DIFFUSE_CONCENTRATION=0.98
EXTERIOR_ONLY=0
INTERIOR_ONLY=0
FADE_AT=20;5
FADE_SMOOTH=1
MIRROR=0
POSITION=-0.156864,0.7192423,2.653621
DIRECTION=0.0,-0.0,1
RANGE=300;1.25
RANGE_GRADIENT_OFFSET=0.51
SPECULAR_MULT=1
SPOT=120;120
SPOT_SHARPNESS=0.5
BLINKING_DURATION=2
TOGGLE_VISIBILITY=1
TOGGLE_VISIBILITY_INVERSE=0
CAST_LIGHT=1
CAST_SHADOW=1
CAST_SHADOWS=1
BLINKING_PATTERN=(|0=0|0.1=3|0.15=0|0.19=0|0.2=3|0.25=0|0.29=0| 0.3=3|0.35=0|0.9=0||1=0)
BLINKING_DURATION=0.8

[LIGHT_EXTRA_11]     ; lightcone Foglight_L for players car only
BIND_TO_EXTRA_A=1   ; if "1" on/off with "Alt+NUMPAD7" for players car only;
COLOR=0,0,8,0.4
DIFFUSE_CONCENTRATION=0.98
EXTERIOR_ONLY=0
INTERIOR_ONLY=0
FADE_AT=20;5
FADE_SMOOTH=1
MIRROR=0
POSITION=0.156864,0.7192423,2.653621
DIRECTION=-0.0,-0.0,1
RANGE=300;1.25
RANGE_GRADIENT_OFFSET=0.5
SPECULAR_MULT=1
SPOT=120;120
SPOT_SHARPNESS=0.6
SIMULATE_HEATING=0
CAST_LIGHT=1
CAST_SHADOW=1
CAST_SHADOWS=1
LAG=0
BLINKING_PATTERN=(|0=0|0.1=3|0.15=0|0.19=0|0.2=3|0.25=0|0.29=0| 0.3=3|0.35=0|0.9=0||1=0)
BLINKING_DURATION=1

REDS

[EMISSIVE_EXTRA_B_1]
NAME=ref_light004_rr
COLOR=2000,0,0
LAG=0
SIMULATE_HEATING=0
BLINKING_PATTERN=(|0=3|0.05=0|0.1=3|0.15=0|0.19=0|0.2=3|0.25=0|0.29=0| 0.3=3|0.35=0|0.9=0|1=0)
BLINKING_DURATION=0.75
TOGGLE_VISIBILITY=1
CAST_LIGHT=1

[EMISSIVE_EXTRA_B_2]
NAME=ref_light003
COLOR=2000,0,0
LAG=0
SIMULATE_HEATING=0
BLINKING_PATTERN=(|0=0|0.49=0|0.5=3|0.55=0|0.59=0| 0.6=3|0.65=0|0.69=0|0.70=3|0.75=0|0.80=3|0.85=0|1=0)
BLINKING_DURATION=0.75
TOGGLE_VISIBILITY=1
CAST_LIGHT=1


[EMISSIVE_EXTRA_B_3] Cluster
NAME=RFOG
COLOR=100,0,0,3
LAG=0.2
SIMULATE_HEATING=1
BLINKING_PATTERN=(|0=3|0.05=0|0.1=3|0.2=3|0.25=0|0.39=0|0.4=3|0.6=3|0.65=0|0.9=0|1=0)
BLINKING_DURATION=1
TOGGLE_VISIBILITY=1
CAST_LIGHT=1



[EMISSIVE_EXTRA_B_4]
NAME=switch_red
COLOR=100,0,0,3
CAST_LIGHT=1
