[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
DISCHARGE_CHARGE_TIME=0.001 ; how long you have to press the throttle to "charge" the flames
DISCHARGE_DELAY=0.5 ; delay after throttle lift
DISCHARGE_DURATION=0.1 ; length of flame shooting, in seconds
DISCHARGE_PROBABILITY=0.3; chance of flame shoot on lift, 1 is guaranteed, 0 is never
DISCHARGE_INTENSITY=0.1; flame size
DISCHARGE_RPM_THRESHOLD_MAX=9000 ; 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=50 ; how much gas needs to be pressed on upshift for flame, 100 is wide open
FLAT_SHIFT_INTENSITY=15 ; flame size
FLAT_SHIFT_PROBABILITY=5 ; chance of flame shoot on upshift
FLAT_SHIFT_RPM_THRESHOLD=6000
LIMITER=0.5 ; on hitting the limiter
LIMITER_DELAY=0 ; delay, in seconds
LIMITER_INTENSITY=0.1 ; flame size
LIMITER_RPM_THRESHOLD=7000 ; limiter flames will not shoot below this rpm

[SHAKING_EXHAUST_1]
MESHES = Exhaust001
POINT_0 = 0.597, 0.49, -3.8
POINT_0_RADIUS = 1
POINT_0_EXP = 1
POINT_0_SCALE = 0.22, 0.15, 0.26

[AUDIO_PARAMETER_TRANSFORM]
; Originally, AC would sent 10000 to soundbank, but now it’ll send 5000 instead. Or, 
; it’ll send 2500 instead of 5000 — values in-between these points are linearly interpolated.
ENGINE_EXT_RPMS = (| 0=0 | 7000=7500 |)
ENGINE_INT_RPMS = (| 0=0 | 7000=7500 |)

[AUDIO_VOLUME]
BACKFIRE_INT=1
BACKFIRE_EXT=1
BODYWORK=1
DIRT=1
DOWN_SHIFT=1
ENGINE_EXT=0.7
ENGINE_INT=1
GEAR_EXT=1
GEAR_GRIND=1
GEAR_INT=1
HORN=10
LIMITER=1
TRACTION_CONTROL_EXT=1
TRACTION_CONTROL_INT=1
TRANSMISSION=1
TURBO=3
WIND=0
SKID_EXT = 1
SKID_INT = 1

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

[INCLUDE]
INCLUDE=common/no_popup_lights.ini

[WIPERS]
FRONT_0=Wiper_L01, Wiper_L002

[BASIC]
BOUNDING_SPHERE_RADIUS=3
BRAKES_THRESHOLD=0.01
ENGINE_STALLED_RPM_THRESHOLD=1
EXTERIOR_RANGE_FROM=1
EXTERIOR_RANGE_TO=1.1
HAZARD_LIGHTS_ENGINE_LIFE_THRESHOLD=0.1
LIGHT_DAMAGE_SPEED_MAX=60
LIGHT_DAMAGE_SPEED_MIN=40
TURNING_LIGHTS_REPEAT=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

[INSTRUMENTS]
FUEL_SPLASH_MULT=-0.055
SPEED_LAG=0.7
SPEED_LIMIT=270


[EMISSIVE_EXTRA_B_0]
NAME = HlightTurn_GlassL
position=-0.335, 0.595, -1.97 
COLOR = 50,0,50, 1
LAG = 0
SIMULATE_HEATING = 0.0
BLINKING_PATTERN = (|0 = 0|0.5 = 0|0.542 = 0|0.583 = 1|0.625 = 0|0.667 = 0|0.708 = 0|0.75 = 1|0.792 = 0|0.833 = 0|0.875 = 0|0.917 = 0|0.958 = 0|1 = 0|)
BLINKING_DURATION = 0.70

[EMISSIVE_EXTRA_B_1]
NAME = HlightTurn_GlassR
position=-0.335, 0.595, -1.97 
COLOR = 50,0,50, 1
LAG = 0
SIMULATE_HEATING = 0.0
BLINKING_PATTERN = (|0 = 0|0.5 = 0|0.542 = 0|0.583 = 1|0.625 = 0|0.667 = 0|0.708 = 0|0.75 = 1|0.792 = 0|0.833 = 0|0.875 = 0|0.917 = 0|0.958 = 0|1 = 0|)
BLINKING_DURATION = 0.70

[EMISSIVE_EXTRA_B_2]
NAME = Taillights_Reverse
position=-0.335, 0.595, -1.97 
COLOR = 30,10,30, 4
LAG = 0
SIMULATE_HEATING = 0.0
BLINKING_PATTERN = (|0 = 0|0.5 = 0|0.542 = 0|0.583 = 1|0.625 = 0|0.667 = 0|0.708 = 0|0.75 = 1|0.792 = 0|0.833 = 0|0.875 = 0|0.917 = 0|0.958 = 0|1 = 0|)
BLINKING_DURATION = 0.70

[LIGHT_FLAMES]
CAR_BRIGHTNESS_MULT=0,5
OFFSET_DIR=0,15
OFFSET_POS=0,25
SPOT=300

[SMART_MIRROR]
VISIBLE_FIRSTPERSON=RIGHT

[LIGHT_REVERSE_0]
OFF_MULT=0.1

[EMISSIVE_ENGINE_0]
COLOR=24, 12, 0
NAME=LED_ENGINE

[EMISSIVE_TURNSIGNAL_RIGHT_0]
NAME=Headlights_GlassCornerR,Taillights_Blinkers
COLOR=13,7,0, 10  
LAG=0.7 
SIMULATE_HEATING=3 
LOCATION=FRONT

[EMISSIVE_TURNSIGNAL_RIGHT_1]
NAME=ClusterBlinkersR
COLOR=0,10,0, 10  
LAG=0.7 
SIMULATE_HEATING=3 
LOCATION=FRONT

[EMISSIVE_TURNSIGNAL_LEFT_0]
NAME=Taillights_Blinkers01, HlightTurn_Chrome
COLOR=13,7,0, 10  
LAG=0.7 
SIMULATE_HEATING=3 
LOCATION=FRONT

[EMISSIVE_TURNSIGNAL_LEFT_1]
NAME=ClusterBlinkersL, Headlights_GlassCornerL
COLOR=13,7,0, 10  
LAG=0.7 
SIMULATE_HEATING=3 
LOCATION=FRONT

[EMISSIVE_BATTERY_0]
COLOR=35, 0, 0
NAME=LED_BATTERY

[EMISSIVE_ABS_0]
COLOR=24, 14, 5
NAME=LED_ABS

[EMISSIVE_HANDBRAKE_0]
COLOR=35, 0, 0
LAG=0.0
LOCATION=
NAME=LED_HANDBRAKE
SIMULATE_HEATING=0.0

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

[STATUS_OIL]
PRESSURE_BASE = 1.0         
PRESSURE_STEP = 1.0
PRESSURE_LAG_UP = 0.998     
PRESSURE_LAG_DOWN = 0.9985  
TEMPERATURE_MULT = 1.0         
TEMPERATURE_RPM_FACTOR = 0.03
TEMPERATURE_LAG_UP = 0.995     
TEMPERATURE_LAG_DOWN = 0.995   

[ANALOG_INDICATOR_...]
BIND_TO=OIL
NAME=ARROW_OIL_TEMP
USE_BAR=1
MIN_VALUE=2.5
MAX_VALUE=8.6
INPUT_LAG_UP=0.9
INPUT_LAG_DOWN=0.1
LUT=(2.5=90|2.9=95|3.5=100|8.5=185)

[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

[EMISSIVE_EXTRA_D_0]
BIND_TO_EXTRA_D=1
NAME= Defi_boost,Defi_oiltemp,Defi_oilpress,Defi_needle_oiltemp,Defi_needle_boost,Defi_needle_oilpress
COLOR=10,10,10
OFF_COLOR=0,0,0
LAG=0.9
SIMULATE_HEATING=3
LOCATION=FRONT
CAST_LIGHT=1
CLUSTER_THRESHOLD=0.5

[LIGHT_EXTRA_1]
BIND_TO_EXTRA_A=1
COLOR=10,10,10 1.5
DIFFUSE_CONCENTRATION=0.9
EXTERIOR_ONLY=0
INTERIOR_ONLY=0
AFFECTS_TRACK=1
FADE_AT=450
FADE_SMOOTH=100
MIRROR=0.42, 0, 0
POSITION=0, -0.1, 2.2
DIRECTION=0, -0.7, 1.1
RANGE=80
RANGE_GRADIENT_OFFSET=0.00
SPECULAR_MULT=0
SPOT=120
SPOT_SHARPNESS=0.01

[ANIMATION_0]
INPUT = TURNSIGNAL_LEFT             ; bind to reverse gear
FILE = Turn_left.ksanim   ; file name of new animation in “animations” folder
TIME = 0.3                ; animation time
INPUT_AS_PROGRESS = 0       ; set to 1 to switch to that second input-as-progress mode
LOOP_WHILE_ACTIVE = 0

[ANIMATION_1]
INPUT = TURNSIGNAL_RIGHT             ; bind to reverse gear
FILE = Turn_right.ksanim   ; file name of new animation in “animations” folder
TIME = 0.3                ; animation time
INPUT_AS_PROGRESS = 0       ; set to 1 to switch to that second input-as-progress mode
LOOP_WHILE_ACTIVE = 0

[ANIMATION_2]
INPUT = HANDBRAKE
FILE = handbrakeani.ksanim
TIME = 0.4
INPUT_AS_PROGRESS = 1
LOOP_WHILE_ACTIVE = 0
LOOP_KEEP_UNTIL_DONE = 1
TICK_TOCK_MODE = 0
AFFECTS_INTERIOR_SHAPE = 0

[ANIMATION_3]
INPUT = HAZARD            ; bind to reverse gear
FILE = hazard_button.ksanim   ; file name of new animation in “animations” folder
TIME = 0.4                 ; animation time
INPUT_AS_PROGRESS = 0      ; set to 1 to switch to that second input-as-progress mode
LOOP_WHILE_ACTIVE = 0

[LIGHT_EXTRA_2] ;underglowleft
LINE_FROM=0.55, 0.07, -1.3
LINE_TO=0.55, 0.07, 1.3
BIND_TO_EXTRA_C=1
COLOR=300,20,700, 1
DIFFUSE_CONCENTRATION=0.9
FADE_AT=150
FADE_SMOOTH=10
RANGE=0.7
RANGE_GRADIENT_OFFSET=0.1
SPOT=210
SPOT_SHARPNESS=0.75
SPECULAR_MULT=0
DIRECTION=0, -1, 0
SELF_LIGHTNING=0
EXTERIOR_ONLY=1
INTERIOR_ONLY=0
SIMULATE_HEATING=1.5

[LIGHT_EXTRA_3] ;underglow right
LINE_FROM=-0.55, 0.07, -1.3
LINE_TO=-0.55, 0.07, 1.3
BIND_TO_EXTRA_C=1
COLOR=300,20,700, 1
DIFFUSE_CONCENTRATION=0.9
FADE_AT=150
FADE_SMOOTH=10
RANGE=0.7
RANGE_GRADIENT_OFFSET=0.1
SPOT=210
SPOT_SHARPNESS=0.75
SPECULAR_MULT=0
DIRECTION=0, -1, 0
SELF_LIGHTNING=0
EXTERIOR_ONLY=1
INTERIOR_ONLY=0
SIMULATE_HEATING=1.5

[LIGHT_EXTRA_4] ;underglowrear
LINE_FROM=-0.40, 0.05, -1.8
LINE_TO=0.40, 0.05, -1.8
BIND_TO_EXTRA_C=1
COLOR=300,20,700, 1
DIFFUSE_CONCENTRATION=0.9
FADE_AT=150
FADE_SMOOTH=10
RANGE=0.7
RANGE_GRADIENT_OFFSET=0.1
SPOT=210
SPOT_SHARPNESS=0.75
SPECULAR_MULT=0
DIRECTION=0, -1, 0
SELF_LIGHTNING=0
EXTERIOR_ONLY=1
INTERIOR_ONLY=0
SIMULATE_HEATING=1.5

[LIGHT_EXTRA_5] ;underglowfront
LINE_FROM=-0.45, 0.05, 1.9
LINE_TO=0.45, 0.05, 1.9
BIND_TO_EXTRA_C=1
COLOR=300,20,700, 1
DIFFUSE_CONCENTRATION=0.9
FADE_AT=150
FADE_SMOOTH=10
RANGE=0.7
RANGE_GRADIENT_OFFSET=0.1
SPOT=210
SPOT_SHARPNESS=0.75
SPECULAR_MULT=0
DIRECTION=0, -1, 0
SELF_LIGHTNING=0
EXTERIOR_ONLY=1
INTERIOR_ONLY=0
SPECULAR_MULT=0
DIRECTION=0, -1, 0
SIMULATE_HEATING=1.5

[EMISSIVE_HIGHBEAM_0]
NAME=Headlight_Bricks2
COLOR=100,100,100
ACT_AS_HEADLIGHTS=0
LAG=0.7 
BLINK_REPEAT=0
CAST_LIGHT=1
CLUSTER_THRESHOLD=0.5
DIGITAL_INSTRUMENTS_IF_ACTIVE=0
DIGITAL_INSTRUMENTS_IF_ACTIVE_INVERSE=0
INPUT_LAG_DOWN=0
INPUT_LAG_UP=0
INPUT_MOD=0
INPUT_ROUND=0
INPUT_STALLED_LAG=0
INPUT_STALLED_VALUE=nan
INPUT_THRESHOLD_INVERSE=0
OFF_COLOR=0, 0, 0
ONLY_WITH_HEADLIGHTS=0
SIMULATE_HEATING=0.4
SYNC_BLINKING=0
TOGGLE_VISIBILITY=0
TOGGLE_VISIBILITY_INVERSE=0
USE_SMOOTH_TRANSITION=0

[SHADER_REPLACEMENT_0]
MESHES = Under_Chassis, s13_wing_roof_dmax01
CULL_MODE = DOUBLESIDED

----Wipers----

[WIPERS_TRACE_...]
SURFACE = Glass_Ext
WIPERS = wipers_a_SUB1, wipers_a_SUB1.001

[ANIMATED_WIPER_...]
MESHES = wipers_a_SUB0, wipers_a_SUB0.001, wipers_a_SUB1, wipers_a_SUB1.001
UNDERLYING_SURFACE = Glass_Ext
DEBUG = 1 ; remove when everything is ready

[MESH_ADJUSTMENT_...]
MESHES = wipers_a_SUB0, wipers_a_SUB0.001, wipers_a_SUB1, wipers_a_SUB1.001
MOVE_TO = modelRoot:y

[BASIC]
DISABLE_WIPER_KSANIM = 1

[ANIMATED_WIPER_0]
DEBUG = 1
MESHES = wipers_a_SUB0, wipers_a_SUB0.001, wipers_a_SUB1, wipers_a_SUB1.001
UNDERLYING_SURFACE = Glass_Ext
GROUP_0 = 'wipers_a_SUB0@A=*', 'wipers_a_SUB1@A=*'
GROUP_0_ANGLE_TO = -82.6
GROUP_0_AXIS = 0, 0.70710677, 0.70710677
GROUP_0_AXIS_OFFSET_0 = 0, 0.70710677, 0.70710677
GROUP_0_AXIS_OFFSET_1 = 0, 0.70710677, 0.70710677
GROUP_0_END = 0.032067865, 0.759951, 0.8740917
GROUP_0_PIVOT = -0.6455618, 0.70942223, 0.80140567
GROUP_0_SCALE_LUT = '(|0.000=1.000|0.994=1.106|)'
GROUP_1 = 'wipers_a_SUB1.001@A=*', 'wipers_a_SUB0.001@A=*'
GROUP_1_ANGLE_TO = -94.7
GROUP_1_AXIS = 0, 0.70710677, 0.70710677
GROUP_1_AXIS_OFFSET_0 = 0, 0.70710677, 0.70710677
GROUP_1_AXIS_OFFSET_1 = 0, 0.70710677, 0.70710677
GROUP_1_END = 0.5861542, 0.7631634, 0.7699872
GROUP_1_PIVOT = -0.10237214, 0.70640105, 0.92664003
GROUP_1_SCALE_LUT = '(|0.000=1.000|1.012=1.116|)'





[HEAD_MOVEMENT]
FILTER=0.05 ; AMOUNT OF FILTERING APPLIED TO THE G VALUES. 0=no movement, do not use. Low values=high filter, high values=low filter
MAX_G=2.0 ; Max G level allowed. G above this value will be clamped
ROLL_MAX_DEG=-12.0 ; Head roll vs lateral G. Max rotation at MAX_G lateral G
PITCH_MAX_DEG=-15 ; Same as above but for head pitch vs longitudinal G (braking)
YAW_MAX_DEG=-142 ; Same as above for head yaw vs lateral G



