[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=

[INSTRUMENTS]
RPM_VINTAGE =1 ; set to 1 to enable the whole thing
RPM_VINTAGE_ROUND_TO = 0 ; to what RPMs needle should snap
RPM_VINTAGE_DELAY = 0.11 ; delay between updates
RPM_VINTAGE_SPEED_LAG = 0.80 ; inertia value, from 0 to 1 (needle won’t move with 1)
RPM_VINTAGE_LIMIT = 0 ; set to some

;;;;;;;;; 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 = bmwx7_headlightglass_R , bmwx7_headlightglass_R , bmwx7_bumper_F_a.003

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

[SHADER_REPLACEMENT_...] ; Cluster
MATERIALS = Material #25 , hud_cifra
PROP_... = ksAmbient, 0.2
PROP_... = ksDiffuse, 0.2
PROP_... = fresnelEXP, 5.0
PROP_... = fresnelMaxLevel, 0.05
PROP_... = fresnelC, 0.02
PROP_... = ksSpecularEXP, 320
PROP_... = ksSpecular, 0.0
DOUBLE_FACE_SHADOW_BIASED = 1

[SHADER_REPLACEMENT_...] ; Cluster
MATERIALS =cluster_lights
PROP_... = ksAmbient, 0.2
PROP_... = ksDiffuse, 0.0
PROP_... = fresnelEXP, 5.0
PROP_... = fresnelMaxLevel, 0.05
PROP_... = fresnelC, 0.02
PROP_... = ksSpecularEXP, 320
PROP_... = ksSpecular, 0.0
DOUBLE_FACE_SHADOW_BIASED = 1

[Material_Glass] ; Windows
Materials = ExtWindows
FilmIOR = 2.3
ExtraLightsAdjustment = .2
BrightnessAdjustment = .3
Refraction = 1
Desaturate = 00
ThicknessMult = 1
EXTRA_MASK_PASS = 1
EXTRA_MASK_PASS_OPACITY = 1
MaskPassColor=20,20,20

[Material_PhotoelasticGlass] ; Headlights
Materials = ExtGlass
FilmIOR = 2.0
PhotoelasticityMult = 0.15  ; doesn’t look good if too high
ThicknessMult = 1.0
BrightnessAdjustment = 0.3
ExtraLightsAdjustment = 0.35
; 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
; instead
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

[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=6200 ; 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=6000
LIMITER=1 ; on hitting the limiter
LIMITER_DELAY=0.2 ; delay, in seconds
LIMITER_INTENSITY=1 ; flame size
LIMITER_RPM_THRESHOLD=6300 ; limiter flames will not shoot below this rpm

;;;;;;;;; Exterior Lights / By TGN Modding | Nell ;;;;;;;;; 
[EMISSIVE_LIGHT_...] ; Lowbeam 1 
NAME=bmwx7_headlight_L.005 , bmwx7_headlight_R.001 , bmwx7_bumper_F_a.005
COLOR=120,120,120
LAG=0.1
SIMULATE_HEATING=0
LOCATION=FRONT
CAST_LIGHT=1
CLUSTER_THRESHOLD=0.5

[EMISSIVE_HIGHBEAM_...] ; High Beam
NAME=bmwx7_headlight_R.005 , bmwx7_headlight_L.004
COLOR=120,120,120,3
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=bmwx7_taillight_R.004 , bmwx7_tailgatelight_R.002 , bmwx7_taillight_L.004 , bmwx7_tailgatelight_L.002
COLOR=50, 2, 0,5
LAG=0.1
SIMULATE_HEATING=0
LOCATION=REAR
CAST_LIGHT=1
CLUSTER_THRESHOLD=0.5

[EMISSIVE_BRAKE_...] ; Emergency Flash
NAME=Object005
COLOR=50, 2, -10 , 4
FALLBACK_HEADLIGHTS_COLOR =0,0,0
CAST_LIGHT=1
ACT_AS_HEADLIGHTS=0
FALLBACK_BRAKES_COLOR =50, 2, -10, 3 
INPUT = BRAKE
INPUT_THRESHOLD = 0.95
BLINK_REPEAT = 1 ; just make it blink
BLINK_FREQENCY_HZ = 4 ; sets frequency for blinking

[EMISSIVE_BRAKE_...] ; Emergency Flash2
NAME=3rdbrakelight
COLOR=50, 0, -10 , 80
FALLBACK_HEADLIGHTS_COLOR =0,0,0
CAST_LIGHT=1
ACT_AS_HEADLIGHTS=0
FALLBACK_BRAKES_COLOR =50, 0, -10, 80
INPUT = BRAKE
INPUT_THRESHOLD = 0.95
BLINK_REPEAT = 1 ; just make it blink
BLINK_FREQENCY_HZ = 4 ; sets frequency for blinking

[EMISSIVE_REVERSE_...] ; Reverse Lights
NAME = bmwx7_taillight_R.003 ,bmwx7_taillight_L.003  ; 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= plate_r
OFFSET=-0.05, 0.1, 0.0
RANGE=0.5
RANGE_GRADIENT_OFFSET=0.4
SPOT=80
SPOT_SHARPNESS=0.2
COLOR=3,2,2,5
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=bmwx7_headlight_L
COLOR=100,20,0,5
LAG=0.1
REPEAT_FREQENCY_HZ=2.6
SIMULATE_HEATING=0
LOCATION=FRONT
CAST_LIGHT=1
CLUSTER_THRESHOLD=0.5

[EMISSIVE_TURNSIGNAL_LEFT_...] ; Left Mid Turnsignal
NAME=leftmirror
COLOR=100,20,0,5
FALLBACK_HEADLIGHTS_COLOR=4,4,5,5
LAG=0.1
REPEAT_FREQENCY_HZ=2.6
SIMULATE_HEATING=0
LOCATION=MIDDLE
CAST_LIGHT=1
CLUSTER_THRESHOLD=0.5

[EMISSIVE_TURNSIGNAL_LEFT_...] ; Rear Left Turnsignal 
NAME=bmwx7_taillight_L , bmwx7_tailgatelight_L
COLOR=100,20,0,5
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=bmwx7_headlight_R
COLOR=100,20,0,5
LAG=0.1
REPEAT_FREQENCY_HZ=2.6
SIMULATE_HEATING=0
LOCATION=FRONT
CAST_LIGHT=1
CLUSTER_THRESHOLD=0.5

[EMISSIVE_TURNSIGNAL_RIGHT_...] ; Mid Right Turnsignal
NAME=rightmirror
COLOR=100,20,0,5
FALLBACK_HEADLIGHTS_COLOR=4,4,5,5
LAG=0.1
REPEAT_FREQENCY_HZ=2.6
SIMULATE_HEATING=0
LOCATION=MIDDLE
CAST_LIGHT=1
CLUSTER_THRESHOLD=0.5

[EMISSIVE_TURNSIGNAL_RIGHT_...] ; Rear Right Turnsignal 
NAME=bmwx7_tailgatelight_R , bmwx7_taillight_R
COLOR=100,20,0,5
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=Interior_SUB4121
COLOR=2,2,2,3
OFF_COLOR=1,1,1,5L
LAG=0.2
SIMULATE_HEATING=0
LOCATION=INTERIOR
CAST_LIGHT=1
CLUSTER_THRESHOLD=0

[EMISSIVE_LIGHT_...] ; Cluster Light
NAME=object_mat_m3_g80_034 ,object_mat_m3_g80_036
COLOR=2,2,2
OFF_COLOR=1,1,1.2
LAG=0.2
SIMULATE_HEATING=0
LOCATION=INTERIOR
CAST_LIGHT=1
CLUSTER_THRESHOLD=0

[EMISSIVE_LIGHT_...] ; Arrows Light
NAME=SPEED_0,SPEED_1,SPEED_2,SPEED_3,SPEED_4,SPEED_5,SPEED_6,SPEED_7,SPEED_8,SPEED_9,SPEED_10,SPEED_11,SPEED_12,SPEED_13,SPEED_14,SPEED_15,SPEED_16,SPEED_17,SPEED_18,SPEED_19,SPEED_20,SPEED_21,SPEED_22,SPEED_23,SPEED_24,SPEED_25,SPEED_26,SPEED_27,SPEED_28,SPEED_29,SPEED_30,SPEED_31,RPM_0,RPM_1,RPM_2,RPM_3,RPM_4,RPM_5,RPM_6,RPM_7,RPM_8,RPM_9,RPM_10,RPM_11,RPM_12,RPM_13,RPM_14,RPM_15,RPM_16,RPM_17,RPM_18,RPM_19,RPM_20,RPM_21,RPM_22,RPM_23,RPM_24,RPM_25,RPM_26,RPM_27,RPM_28,RPM_29,RPM_30,RPM_31
COLOR=5,0,20,0.9
OFF_COLOR=31,0,88,.2
LAG=0.2
SIMULATE_HEATING=0
LOCATION=INTERIOR
CAST_LIGHT=1
CLUSTER_THRESHOLD=0

[EMISSIVE_LIGHT_...] ; Navigation Light
NAME=intlight , intlighttttt , intlightingpa , intlightdoor , intdoor
COLOR=20,0,50,2
LAG=0.2
SIMULATE_HEATING=0
LOCATION=INTERIOR
CAST_LIGHT=1
CLUSTER_THRESHOLD=0

[EMISSIVE_LIGHT_...] ; Buttons Light
NAME=Interiorx7x7x7x.012 , bmwx7_emission,steeringwheel_SUB3,mbuttom,bmwx7_dash
COLOR=2,2,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.0 ; X Position
DIRECTION = 0, 0,1
POSITION = 0, 0.0, 0.0
AFFECTS_TRACK = 0
DIFFUSE_CONCENTRATION = 0.9
BOUND_TO = 
SPOT_SHARPNESS =0.0
SPOT = 60
COLOR=130,120,120,2
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_...] ; Interior Ambient Lighting (Cluster, Doors, Pedals, Navigation, Rear Seats)
BIND_TO_EXTRA_A=0
BIND_TO_HEADLIGHTS=1
COLOR=10,00,30,30
DIFFUSE_CONCENTRATION=0.9
EXTERIOR_ONLY=0
INTERIOR_ONLY=1
FADE_AT=1.5
FADE_SMOOTH=5
MIRROR=0.0
POSITION=0.375, 0.69, 0.68
DIRECTION=0,0,-1
RANGE=.35
RANGE_GRADIENT_OFFSET=0.0
SPECULAR_MULT=1
SPOT=120
SPOT_SHARPNESS=0

[LIGHT_EXTRA_...] ; Interio2r Ambient Lighting (Cluster, Doors, Pedals, Navigation, Rear Seats)
BIND_TO_EXTRA_A=0
BIND_TO_HEADLIGHTS=1
COLOR=10,10,10,10
DIFFUSE_CONCENTRATION=0.9
EXTERIOR_ONLY=0	
FADE_AT=1.5
FADE_SMOOTH=5
MIRROR=0.0
POSITION=0.364, 1.1, 0.6
DIRECTION=0,0,-1
RANGE=.35
RANGE_GRADIENT_OFFSET=0.0
SPECULAR_MULT=1
SPOT=120
SPOT_SHARPNESS=0

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


;;;;;;;;; Cluster Config / By TGN Modding | Nell ;;;;;;;;; 
[CustomEmissiveMulti] ; Emissive Warning Lights
Meshes = WarningLights
Resolution = 812, 812
UseEmissive0AsFallback = 1
;Debug = 1 ; uncomment me to see the areas nicely
@ = MultiItem, Role = TURNSIGNAL_LEFT, Start = "62, 434", Size = "84, 104" , Color = "-10, 10,-10 " ,
@ = MultiItem, Role = TURNSIGNAL_RIGHT, Start = "163, 433", Size = "71, 100" , Color = "-10, 10,-10 " ,
@ = MultiItem, Role = ABS_INACTION, Start = "323.1, 422.7", Size = "91.1, 79.9", Color = "60,30,0",
@ = MultiItem, Role = DashWarningABS, Start = "500, 193", Size = "127, 54", Color = "60,30,0",
@ = MultiItem, Role = DashWarningEngine, Start = "585, 265", Size = "86, 72" , Color = "60,30,0",
@ = MultiItem, Role = HANDBRAKE, Start = "670, 184", Size = "123, 68", Color = "80, 0, 0",
@ = MultiItem, Role = HIGHBEAM, Start = "67, 259", Size = "85, 71", Color = "0, 0, 100",
@ = MultiItem, Role = LIGHT, Start = "677, 360", Size = "85, 45", Color = "-10, 10, -10",
@ = MultiItem, Role = TC_INACTION , Start = "418, 429", Size = "72, 75", Color = "10, 3, -50",
@ = MultiItem, Role = DashWarningTC, Start = "502, 428", Size = "74, 83", Color = "10, 3, -50",
@ = MultiItem, Role = DashWarningTC, Start = "201, 184", Size = "110, 71", Color = "10, 3, -50",
@ = MultiItem, Role = TYRE_PRESSURE, Start = "681, 438", Size = "68, 61", Color = "10, 3, -50", InputThreshold = 32, InputSelector = MAX , InputSelectorPivot=5 , Lag=0.2 
@ = MultiItem, Role = DashWarningSeatbelt, Start = "161, 346", Size = "65, 76" , Color = "80, 0, 0",
@ = MultiItem, Role = DashWarningAirbag, Start = "240, 346", Size = "81, 80" , Color = "80, 0, 0",
@ = MultiItem, Role = FUEL, Start = "670, 519", Size = "104, 110",  InputThreshold=11 ,InputInverse=1 , Lag=0.2, Color = "70,5,0", 

[EMISSIVE_TURNSIGNAL_LEFT_...] ; Interior Left Turnsignal
NAME=
COLOR=0,10,0,3
LAG=0.1
REPEAT_FREQENCY_HZ=2.6
SIMULATE_HEATING=0
LOCATION=NONE
CAST_LIGHT=0
CLUSTER_THRESHOLD=0.5

[EMISSIVE_TURNSIGNAL_RIGHT_...] ; Interior Right Turnsignal
NAME=
COLOR=0,10,0,3
LAG=0.1
REPEAT_FREQENCY_HZ=2.6
SIMULATE_HEATING=0
LOCATION=NONE
CAST_LIGHT=0
CLUSTER_THRESHOLD=0.5

[EMISSIVE_HIGHBEAM_...] ; High Beam
NAME=
COLOR=0,0,10,5
LAG=0.1
SIMULATE_HEATING=0
LOCATION=NONE
CAST_LIGHT=0
CLUSTER_THRESHOLD=0.5

[EMISSIVE_LIGHT_...] ; Lowbeam 2 - Leave Blank Unless Used
NAME=
COLOR=0,10,0,5
LAG=0.1
SIMULATE_HEATING=0
LOCATION=NONE
CAST_LIGHT=0
CLUSTER_THRESHOLD=0.5

[EMISSIVE_HAZARD_0]
COLOR=40,4,4,1
NAME=
FALLBACK_HEADLIGHTS_COLOR=40,4,4,0.7
LAG=0.2

[EMISSIVE_ABS_INACTION_0] ; Warning ABS Inaction
NAME=
TOGGLE_VISIBILITY = 0
COLOR=20,4,0.1,3.5
LAG=0.2

[EMISSIVE_ABS_0] ; Warning ABS Off
NAME=
TOGGLE_VISIBILITY = 0
COLOR=0,0,0
OFF_COLOR=10,5.6,-4
LAG=0.2

[EMISSIVE_TRACTIONCONTROL_0] ; Warning Traction Off 1
NAME=
TOGGLE_VISIBILITY = 0
COLOR=0
OFF_COLOR=20,6,0.1,3.5
LAG=0.2

[EMISSIVE_TRACTIONCONTROL_1] ; Warning Traction Off 2
NAME=
TOGGLE_VISIBILITY = 0
OFF_COLOR=10,3.1,0.1,3
COLOR=0
LAG=0.2

[EMISSIVE_TRACTIONCONTROL_INACTION_0] Warning Traction In Action
COLOR=20,4,0.1,3.5
NAME=
TOGGLE_VISIBILITY = 0
LAG=0.2

[EMISSIVE_HANDBRAKE_0] ; Warning Handbrake
NAME=
TOGGLE_VISIBILITY = 0
COLOR=45,0.7,0, 1.8
LAG=0.25

[EMISSIVE_...] ; Warning Suspension
NAME=
TOGGLE_VISIBILITY = 0
COLOR=20,4,0.1,3.5
BIND_TO=SUSP_DAMAGE
THRESHOLD=10
LAG=0.2
 
[EMISSIVE_...] ; Warning Engine
NAME=
TOGGLE_VISIBILITY = 0
COLOR=20,4,0.1,3.5
INPUT=ENGINE_LIFE
INPUT_THRESHOLD = 700
INPUT_THRESHOLD_INVERSE = 1
LAG=0.2

[EMISSIVE_...] ; Warning Tyre Pressure
NAME=
TOGGLE_VISIBILITY = 0
COLOR=20,4,0.1,3.5
INPUT=TYRE_PRESSURE
INPUT_THRESHOLD = 38
INPUT_SELECTOR=MAX
INPUT_SELECTOR_PIVOT=5
LAG=0.2

[EMISSIVE_...] ; Warning Fuel
NAME=
TOGGLE_VISIBILITY = 0
COLOR=20,3.5,0.1,35
INPUT=FUEL
INPUT_THRESHOLD = 12
INPUT_THRESHOLD_INVERSE = 1
LAG=0.2

[EMISSIVE_...] ; Stalled Manual Only
NAME=
BIND_TO=STALLED 
TOGGLE_VISIBILITY = 0
COLOR=20,4,0.1,3.5
LAG=0.3

[EMISSIVE_...] ; Stalled Manual Only
NAME=warning_seatbelt, warning_airbag
BIND_TO=STALLED 
TOGGLE_VISIBILITY = 0
COLOR=5,0 ,0 , 3.5
LAG=0.3

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

[ODOMETER_TRIP]
DIGITAL_ITEM=21
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

"[ITEM_] ; This Goes Into Your Digital_Instruments.ini
VERSION=2
PARENT=
POSITION=-0.133,0.082,0.035
TYPE=PLACE_HOLDER
SIZE=0.017
COLOR=255,255,255,255
INTENSITY=3
FONT=e92_big
ALIGN=CENTER
UNITS=KML

[ITEM_] ; Odometer Main
PARENT=
TYPE=PLACE_HOLDER
TEXT=05448
POSITION=-0.0078, -0.0365, 0.00
SIZE=0.008
COLOR=300,300,300,300
INTENSITY=3.0
FONT=e92_mid
VERSION=2
ALIGN=LEFT

[ITEM_] ; Odometer Trip
PARENT=
TYPE=PLACE_HOLDER
TEXT=829.8
POSITION=0.000, -0.0365, 0.00
SIZE=0.008
COLOR=300,300,300,300
INTENSITY=3.0
FONT=e92_mid
VERSION=2
ALIGN=RIGHT

[TURBO_BOOST_SERIE_] ; Dynamic Boost Range
PREFIX=
START_INDEX=
END_INDEX=
BOOST_START=-0.0
BOOST_END=1.1

[RPM_SERIE_] ; Digital RPM Gauge
PREFIX=
START_INDEX=0
END_INDEX=25
RPM_START=0
RPM_END=

[LED_] ; RPM Blink LED
OBJECT_NAME=
RPM_SWITCH=6500
EMISSIVE=15,15,0
DIFFUSE=0.3" 

;;;;;;;;; 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 = bmwx7_dash  ; display mesh
Resolution = 1024, 548   ; texture resolution
Size = 1024, 548           ; size of the screen area
Offset = 5, 5              ; left top corner of screen area
Scale = 1                  ; might need adjusting to get the scale right
RearCameraPosition = 0, 0.75, -2.5  ; position of rear view camera
aftermarketComponent=1

------------------------------- CSP Wipers (Ram) -------------------------------------

[ANIMATED_WIPER_0]
ANIMATION_CURVE_EXP = 2.200000
ANIMATION_CURVE_X = 0.300000
DEBUG = 0
MESHES = bmwx7_wipers, bmwx7_wipers.001
UNDERLYING_SURFACE = bmwx7_tailgateglass.003
GROUP_0 = 'bmwx7_wipers.001@A=*'
GROUP_0_ANGLE_TO = 81.000000
GROUP_0_AXIS = -0.000458, -0.532084, 0.846691
GROUP_0_AXIS_OFFSET_0 = 0.000229, -0.485744, 0.874101
GROUP_0_AXIS_OFFSET_1 = 0.000229, -0.485744, 0.874101
GROUP_0_BENDING_FROM = -0.015000
GROUP_0_BENDING_TO = 0.185000
GROUP_0_END = -0.127819, -0.945071, 1.178693
GROUP_0_PIVOT = 0.672737, -0.889435, 1.118042
GROUP_0_RUBBER_FROM = 0.528065, -0.861588, 1.140213
GROUP_0_RUBBER_OFFSET_AMOUNT = 0.015900
GROUP_0_RUBBER_OFFSET_EXP = 3.000000
GROUP_0_RUBBER_TO = -0.123177, -0.939499, 1.173218
GROUP_0_SCALE_LUT = '(|0.010=0.845|0.939=0.845|)'
GROUP_0_BASE_AXIS = -0.000458, -0.532084, 0.846691
GROUP_0_BASE_PIVOT = 0.672737, -0.889435, 1.118042
GROUP_1 = 'bmwx7_wipers@A=2'
GROUP_1_ANGLE_FROM = -1.000000
GROUP_1_ANGLE_TO = 82.599998
GROUP_1_ARM = 'bmwx7_wipers@A=1'
GROUP_1_AXIS = -0.001853, -0.640002, 0.768371
GROUP_1_AXIS_OFFSET_0 = -0.000266, -0.656715, 0.754139
GROUP_1_AXIS_OFFSET_1 = -0.000266, -0.656715, 0.754139
GROUP_1_BENDING_FROM = -0.100000
GROUP_1_BENDING_TO = 0.100000
GROUP_1_END = -0.676794, -0.777252, 1.207400
GROUP_1_PIVOT = 0.215759, -1.003664, 1.119017
GROUP_1_RUBBER_FROM = -0.237549, -0.886345, 1.178867
GROUP_1_RUBBER_OFFSET_AMOUNT = 0.019000
GROUP_1_RUBBER_OFFSET_EXP = 3.000000
GROUP_1_RUBBER_TO = -0.679176, -0.776188, 1.191097
GROUP_1_SCALE_LUT = '(|0.001=0.980|0.977=0.749|)'
GROUP_1_BASE_AXIS = -0.001853, -0.640002, 0.768371
GROUP_1_BASE_PIVOT = 0.215759, -1.003664, 1.119017

[BASIC]
DISABLE_WIPER_KSANIM = 1