q[DATA] 
DISABLE_LIGHTSINI = 1
[INCLUDE: common/custom_emissive.ini]










############################# LIGHTS #############################




[BOUNCED_HEADLIGHTS]               ;;; bounced lights
ACTIVE=1
FADE_AT=20
FADE_SMOOTH=50
FALLOFF=0.7
GRADIENT_OFFSET=0.8
MULT=1, 1, 1, 1
OFFSET=1

[BOUNCED_INTERIOR_LIGHT]
ACTIVE=1
DIRECTION=0, 1, -2
MULT=1, 1, 1, 1
OFFSET=0, -1, 3
RANGE=3.2
RANGE_GRADIENT_OFFSET=0.9
SPOT=20
SPOT_SHARPNESS=0.9

[ANALOG_INDICATOR_...]
INPUT = TIME_MINUTES
NAME = ARROW_CLOCK
START = 0 



############################# INTERIOR LIGHTS #############################



[EMISSIVE_LIGHT_...] 
NAME=
BIND_TO_HEADLIGHTS=1
COLOR=200, 200, 200,20
LAG=0
SIMULATE_HEATING=0
CAST_LIGHT=1

[EMISSIVE_LIGHT_...] ;  cluster
NAME=
BIND_TO_HEADLIGHTS=1
COLOR=1, 1, 1,1
OFF_COLOR=1, 1, 1,1
LAG=0
SIMULATE_HEATING=0
CAST_LIGHT=1



[EMISSIVE_LIGHT_...] 
NAME=
BIND_TO_HEADLIGHTS=1
COLOR=1, 1, 1,1
OFF_COLOR=1, 1, 1,1
LAG=0
SIMULATE_HEATING=0
CAST_LIGHT=1

[EMISSIVE_LIGHT_...] 
NAME=
BIND_TO_HEADLIGHTS=1
OFF_COLOR=1, 1, 1,1
OFF_COLOR=1, 1, 1,1
LAG=0
SIMULATE_HEATING=0
CAST_LIGHT=1

[EMISSIVE_LIGHT_...] 
NAME=
BIND_TO_HEADLIGHTS=1
COLOR=2, 2, 2,4
OFF_COLOR=2, 2, 2,4
LAG=0
SIMULATE_HEATING=0
CAST_LIGHT=1

[EMISSIVE_LIGHT_...] 
NAME=
BIND_TO_HEADLIGHTS=1
COLOR=2, 2, 2,4
OFF_COLOR=2, 2, 2,4
LAG=0
SIMULATE_HEATING=0
CAST_LIGHT=1



Cluster:
[EMISSIVE_LIGHT_...] ;  
NAME=
BIND_TO_HEADLIGHTS=1
COLOR=1, 1, 1,4
OFF_COLOR=1, 1, 1,4
LAG=0
SIMULATE_HEATING=0
CAST_LIGHT=0



#############################  Cluster #############################

[EMISSIVE_LIGHT_...] ;  cluster
NAME= dashboard_panel_07, dashboard_panel_07.001, Plane.001, Plane
BIND_TO_HEADLIGHTS=1
COLOR=0, 3, 10,10
OFF_COLOR=0, 3, 10,10
LAG=0
SIMULATE_HEATING=0
CAST_LIGHT=1

[EMISSIVE_LIGHT_...] ;  cluster
NAME= dashboard_panel_05.001
BIND_TO_HEADLIGHTS=1
COLOR=1, 1, 1,3
OFF_COLOR=1, 1, 1,3
LAG=0
SIMULATE_HEATING=0
CAST_LIGHT=1



[EMISSIVE_LIGHT_...] ;  cluster
NAME= dashboard_17, console_02, console_01, console_00, console_03, door_front_right_20, door_front_right_16, door_front_left_13, dashboard_02, steering_wheel_06, dashboard_09, dashboard_08
BIND_TO_HEADLIGHTS=1
COLOR=2, 2, 2,2
LAG=0
SIMULATE_HEATING=0
CAST_LIGHT=1



[EMISSIVE_LIGHT_...] ;  cluster
NAME= dashboard_panel_01
BIND_TO_HEADLIGHTS=1
COLOR=1, 1, 1,4
OFF_COLOR=1, 1, 1,4
LAG=0
SIMULATE_HEATING=0
CAST_LIGHT=1

[EMISSIVE_LIGHT_...] ;  nav
NAME= screen2, dashboard_panel_08
BIND_TO_HEADLIGHTS=1
COLOR=1, 1, 1,4
OFF_COLOR=1, 1, 1,4
LAG=0
SIMULATE_HEATING=0
CAST_LIGHT=1

[EXTRA_FX_EMISSIVE_...]
MESHES =dashboard_panel_07
RANGE = 0.15
COLOR = 0.05
DIRECTED = 1
INTERIOR_ONLY = 0
EXTERIOR_ONLY = 0
EMISSIVE_TWEAK = 0
MIP_BIAS = 0
IGNORE_TEXTURE_COLOR = 1
COVERAGE = 10
SAMPLES_LIMIT = 400
SPLIT_ELEMENTS = 1
NORMAL_SHIFT = 0






#############################  Lic Plate Lights #############################




[LIGHT_LICENSEPLATE]
MESHES=plate01_002 
OFFSET=0.00, 0.07, -0.01
RANGE=0.5
RANGE_GRADIENT_OFFSET=0.3
SPOT=200
SPOT_SHARPNESS=0.5
COLOR=5,5,5,5
FALLBACK_EMISSIVE=2.55,1.73,0.94,0.3
FADE_AT=50
LAYOUT=TWO_ON_TOP

[EMISSIVE_LIGHT_...] ;  plate
NAME= plate_lamp
BIND_TO_HEADLIGHTS=1
COLOR=5,5,5,2
LAG=0
SIMULATE_HEATING=0
CAST_LIGHT=1

######################## LIGHTS SETUP ##################################


[LIGHT_HEADLIGHTS]
COLOR=2,2,2,5
POSITION=0, 0.3, 2        ; position, relative to car, without X component
MIRROR=0.622                  ; and here is X: if non-zero, lights merge with distance
DIRECTION=0,-0.04, 3          ; direction for spotlight
RANGE_FIRSTPERSON=790.0       ; range when car is close to camera
RANGE_CARS_NEARBY=270.0        ; range when car is nearby, to avoid blinding
RANGE_CARS_DISTANT=190.0      ; range when car is far away
RANGE_GRADIENT_OFFSET=0.0     ; increase to move gradient further from the camera
FADE_FROM=l0.0               ; when to fade until full deactivation, from
FADE_TO=990.0                 ; when to fade, to
SPOT=98.0                     ; angle of spotlight, in degress
SPOT_SHARPNESS=0.1          ; how sharp should be spotlight
SPOT_EDGE=0.14, 0.14, 0.14    ; at what point of vertical axis (0 1, where 1 is fully vertical), light should stop
                              ; three numbers are for three color channels, for cheap chromatic abberations effectlllSPOT_EDGE_SHARPNESS=5.0      ; how sharp should be this limitation
SECOND_SPOT=89.0             ; second spotlight, to lit up areas nearby
SECOND_SPOT_SHARPNESS=0.1     ; how sharp second spotlight should be
SECOND_SPOT_SKIP=0.2         ; that s the cheapest move, but you can make it ignore areas nearby to kind of imitate shadows
SECOND_SPOT_RANGE=93.0        ; range of second spotlight
SECOND_SPOT_INTENSITY=0.4    ; intensity of second spotlight



[LIGHT_BRAKE_0]
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, -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


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






############################# EXTERIOR LIGHTS #############################




[INCLUDE]
INCLUDE=common/no_popup_lights.ini


[EMISSIVE_LIGHT_...]      ;; headlights
NAME=body_part_29
AFFECTS_TRACK=1
COLOR=70,50,50,10
LAG=0.2
CAST_LIGHT=1
LOCATION=FRONT
SIMULATE_HEATING=0.2

[EMISSIVE_LIGHT_...]      ;; headlights
NAME=body_part_14
AFFECTS_TRACK=1
COLOR=50,50,50,10
LAG=0.2
CAST_LIGHT=1
LOCATION=FRONT
SIMULATE_HEATING=0.2

[EMISSIVE_EXTRA_A_...]
BIND_TO_EXTRA_A=1
NAME=body_part_41, body_part_41.001, body_part_83
COLOR=10,10,10,5
LAG=0.6
SIMULATE_HEATING=0.2
LOCATION=FRONT
CAST_LIGHT=1




[EMISSIVE_HIGHBEAM_...]   ;;highbeam
NAME=body_part_31
COLOR=30,50,50,50
LAG=0.0
SIMULATE_HEATING=0
LOCATION=FRONT
CAST_LIGHT=1
CLUSTER_THRESHOLD=0.5

[EMISSIVE_LIGHT_...]      ;; headlights
NAME=sidelight_bulbs
AFFECTS_TRACK=1
COLOR=20,50,50,1
LAG=0.2
CAST_LIGHT=1
LOCATION=FRONT
SIMULATE_HEATING=0.2


[EMISSIVE_LIGHT_...]   ;; tailights
NAME=Object157
TOGGLE_VISIBILITY = 0
COLOR=5,0,0,30
FALLBACK_BRAKES_COLOR=30,0,0,30
FALLBACK_BRAKES_COLOR_HIGHER = 1
LAG=0.1
LOCATION=REAR
CAST_LIGHT=1

[EMISSIVE_REVERSE_...]
NAME=body_part_66
COLOR=5,5,5,50 
LAG=0.8
BLINK_FREQENCY_HZ=1.4  
SIMULATE_HEATING=3
LOCATION=REAR 






############################# INDICATORS #############################


 






[EMISSIVE_TURNSIGNAL_LEFT_0]
NAME=Object159
COLOR=20, 8, 0,50
LAG=0.5
BLINK_FREQENCY_HZ = 1.1 ; sets frequency for blinking
LOCATION=REAR
SIMULATE_HEATING=0
CAST_LIGHT=1
BLINK_FREQENCY_HAZARDS_HZ = 1.1


[EMISSIVE_TURNSIGNAL_LEFT_1]
NAME= body_part_28.001
COLOR=20, 7, 0,50
LAG=0.5
BLINK_FREQENCY_HZ = 1.1 ; sets frequency for blinking
LOCATION=REAR
SIMULATE_HEATING=0
CAST_LIGHT=1
BLINK_FREQENCY_HAZARDS_HZ = 1.1


[EMISSIVE_TURNSIGNAL_LEFT_2]
NAME= door_front_left_06
TOGGLE_VISIBILITY = 1
COLOR=20, 7, 0,50
LAG=0
REPEAT_FREQENCY_HZ=2.2
REPEAT_FREQENCY_HAZARDS_HZ=0


[EMISSIVE_TURNSIGNAL_RIGHT_0]
NAME=Object158
COLOR=20, 8, 0,50
LAG=0
BLINK_FREQENCY_HZ = 1. ; sets frequency for blinking
BLINK_FREQENCY_HAZARDS_HZ = 1
LOCATION=REAR
SIMULATE_HEATING=0
CAST_LIGHT=1

[EMISSIVE_TURNSIGNAL_RIGHT_1]
NAME= body_part_28
COLOR=20, 7, 0,50
LAG=0
BLINK_FREQENCY_HZ = 1. ; sets frequency for blinking
BLINK_FREQENCY_HAZARDS_HZ = 1
LOCATION=REAR
SIMULATE_HEATING=0
CAST_LIGHT=1


[EMISSIVE_TURNSIGNAL_RIGHT_2]
NAME=door_front_right_03
TOGGLE_VISIBILITY = 1
COLOR=20, 7, 0,50
LAG=0
REPEAT_FREQENCY_HZ=2.2
REPEAT_FREQENCY_HAZARDS_HZ=0

[EMISSIVE_...]
MESHES = reverse
INPUT = GEAR
INPUT_LUT = (|-1=1|0=0|1=0|2=0|3=0|4=0|5=0|6=0|)
COLOR = 255,0,0,255

[EMISSIVE_...]
MESHES = handbrake
INPUT = HANDBRAKE
INPUT_LUT = (|0=0|0.5=1|1=1|)
COLOR = 255,0,0,255

[EMISSIVE_...]
MESHES = neutral
INPUT = GEAR
INPUT_LUT = (|-1=0|0=1|1=0|2=0|3=0|4=0|5=0|6=0|)
COLOR = 255,0,0,255

[EMISSIVE_...]
MESHES = drive
INPUT = GEAR
INPUT_LUT = (|-1=0|0=0|1=1|2=1|3=1|4=1|5=1|6=1|)
COLOR = 255,0,0,255















