[AUDIO_VOLUME]
ENGINE_EXT = 1.25
ENGINE_INT = 1
HORN = 3
TURBO = 3
SKID_INT=2

[AUDIO_PROPERTIES]
TURBO_THROTTLE = 1   ; for turbo sound, “throttle” input, same as in engine event
ENGINE_EXT_BOOST = 1 ; for exterior engine sound, “boost” input, same as in turbo event
ENGINE_INT_BOOST = 1  ; for interior engine sound, “boost” input, same as in turbo event

[EMISSIVE_BRAKE_...] ; REAR TAILLIGHT
NAME=Taillight_LED_SUB0, Taillight_LED_SUB1
COLOR=30,0.0,0.2,2
FALLBACK_HEADLIGHTS_COLOR=30,0.0,0.5,1
LAG=0.0
SIMULATE_HEATING=0.0
LOCATION=REAR
CAST_LIGHT=1
FALLBACK_BRAKES_COLOR = 30,0.0,0.2,2
INPUT = BRAKE
INPUT_THRESHOLD = 0.99


[EMISSIVE_BRAKE_...] ; REAR TAILLIGHT
NAME=Taillight_Brake_SUB0, Taillight_Brake_SUB2
COLOR=30,0.0,0.2,4
LAG=0.0
SIMULATE_HEATING=0.0
LOCATION=REAR
CAST_LIGHT=1
FALLBACK_BRAKES_COLOR = 30,0.0,0.2,4
INPUT = BRAKE
INPUT_THRESHOLD = 0.99


[EMISSIVE_BRAKE_...] ; REAR TAILLIGHT
NAME=
COLOR=30,0.0,0.2,0.4
LAG=0.0
SIMULATE_HEATING=0.0
LOCATION=REAR
CAST_LIGHT=1
FALLBACK_BRAKES_COLOR = 30,0.0,0.2,0.4
INPUT = BRAKE
INPUT_THRESHOLD = 0.99


[EMISSIVE_BRAKE_...] ; REAR TAILLIGHT
NAME=Taillight_Brake_SUB1, Taillight_Brake_SUB3
COLOR=30,0.0,0.2,0.1
FALLBACK_HEADLIGHTS_COLOR=30,0.0,0.5,0.04
LAG=0.0
SIMULATE_HEATING=0.0
LOCATION=REAR
CAST_LIGHT=1
FALLBACK_BRAKES_COLOR =30,0.0,0.2,0.1
INPUT = BRAKE
INPUT_THRESHOLD = 0.99

[EMISSIVE_BRAKE_...] ; REAR TAILLIGHT
NAME=Taillight_SUB0, Taillight_SUB1
COLOR=30,0.0,0.2,0.04
FALLBACK_HEADLIGHTS_COLOR=30,0.0,0.5,0.04
LAG=0.0
SIMULATE_HEATING=0.0
LOCATION=REAR
CAST_LIGHT=1

[EMISSIVE_BRAKE_...] ; REAR TAILLIGHT
NAME=Sphere
COLOR=30,0.0,0.07,2
LAG=0.0
SIMULATE_HEATING=0.0
LOCATION=REAR
CAST_LIGHT=1
FALLBACK_BRAKES_COLOR = 30,0.0,0.07,2
INPUT = BRAKE
INPUT_THRESHOLD = 0.99


[EMISSIVE_BRAKE_...] ; REAR TAILLIGHT
NAME=glasschmsl_a, Plane_004_001, Cube_004_001
COLOR=30,0.0,0.4,0.25
LAG=0.0
SIMULATE_HEATING=0.0
LOCATION=REAR
CAST_LIGHT=1
FALLBACK_BRAKES_COLOR = 30,0.0,0.4,0.25
INPUT = BRAKE
INPUT_THRESHOLD = 0.99


[WIPERS]
WIND_THRESHOLDS_KMH = 90, 350 ; 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 animation2 


[EMISSIVE_LIGHT_...]
NAME = gaugecluster_a_002_001
COLOR = 3,3,3,2
OFF_COLOR = 3,3,3,3.5
LAG = 0.5

[EMISSIVE_LIGHT_...]
NAME = centerstackbezels_a_001_001, centerconsolebezels_a_003_001, centerconsolebezels_a_021_001
COLOR= 1,1,1, 1    
OFF_COLOR = 1,1,1, 2
LAG=0.1
SIMULATE_HEATING=0
LOCATION=NONE
BIND_TO_EXTRA_A=0
CAST_LIGHT=1
CLUSTER_THRESHOLD=0.5

[EMISSIVE_LIGHT_...]
NAME = steeringwheel_a_006_001, steeringwheel_a_001_001, dashstructure_a_015_001, dashstructure_a, doorcardlf_a_011_001, doorcardlf_a_022_001 
COLOR = 3,3,3,1
COLOR = 3,3,3,2
LAG = 0.0

[EMISSIVE_LIGHT_...]
NAME = centerconsolebezels_a_001_001, dashstructure_a_001_001, centerconsolebezels_a_020_001, centerconsolebezels_a_016_001, centerstackbezels_a_005_001, centerstackbezels_a
COLOR = 3,3,3,1
LAG = 0.0

[EMISSIVE_LIGHT_...]
NAME = dashstructure_a_017_001
COLOR = 3,0.1,0,1
LAG = 0.0

[EMISSIVE_LIGHT_...]
NAME = headlightr_a_006_001
COLOR = 190,210,230,0.05
OFF_COLOR = 190,210,230,0.05
LAG = 0


[EMISSIVE_LIGHT_...]
NAME = blitz_led
COLOR = 190,210,230,0.05
OFF_COLOR = 190,210,230,0.05
LAG = 0


[EMISSIVE_LIGHT_...]
NAME = headlightr_a_004_001
COLOR = 190,210,230,0.4
LAG = 0.7
SIMULATE_HEATING=0.8

[EMISSIVE_LIGHT_...]
NAME = headlightr_a_009_001
COLOR = 190,210,230,2
LAG = 0.7
SIMULATE_HEATING=0.8


---------------------TURN SIGNAL------------------
[EMISSIVE_TURNSIGNAL_LEFT_1]
NAME= headlightl_a_005_001
COLOR=250,100,0,2
LAG=0.0
SIMULATE_HEATING=0.0
LOCATION=FRONT

[EMISSIVE_TURNSIGNAL_LEFT_2]
NAME= headlightl_a_003_001
COLOR=250,100,0,5
LAG=0.0
SIMULATE_HEATING=0.0
LOCATION=FRONT

[EMISSIVE_TURNSIGNAL_LEFT_3]
NAME= taillightl_a_015_001, TURN_LR
COLOR=250,100,0,0.3
LAG=0.0
SIMULATE_HEATING=0.0
LOCATION=REAR
AFFECTS_TRACK=0

[EMISSIVE_TURNSIGNAL_LEFT_4]
NAME= TURN_LR_Base
COLOR=250,100,0,0.06
LAG=0.0
SIMULATE_HEATING=0.0
LOCATION=REAR
AFFECTS_TRACK=0

[EMISSIVE_TURNSIGNAL_LEFT_5]
NAME= 123_001_001, 
COLOR=0,3,0,5
LAG=0.0
SIMULATE_HEATING=0.0
LOCATION=FRONT

[EMISSIVE_TURNSIGNAL_RIGHT_1]
NAME= headlightr_a_003_001
COLOR=250,100,0,5
LAG=0.0
SIMULATE_HEATING=0.0
LOCATION=FRONT

[EMISSIVE_TURNSIGNAL_RIGHT_2]
NAME= headlightr_a_005_001
COLOR=250,100,0,2
LAG=0.0
SIMULATE_HEATING=0.0
LOCATION=FRONT

[EMISSIVE_TURNSIGNAL_RIGHT_3]
NAME= taillightl_a_005_001, TURN_RR
COLOR=250,100,0,0.3
LAG=0.0
SIMULATE_HEATING=0.0
LOCATION=REAR
AFFECTS_TRACK=0

[EMISSIVE_TURNSIGNAL_RIGHT_4]
NAME= TURN_RR_Base
COLOR=250,100,0,0.06
LAG=0.0
SIMULATE_HEATING=0.0
LOCATION=REAR
AFFECTS_TRACK=0

[EMISSIVE_TURNSIGNAL_RIGHT_5]
NAME= 453
COLOR=0,3,0,5
LAG=0.0
SIMULATE_HEATING=0.0
LOCATION=FRONT



[INCLUDE: android_auto/config.ini]
[Display_AndroidAuto]
Meshes =centerstackbezels_a_001_001
Resolution = 1280, 720
Size = 1280, 720
Offset = 0, 0
Scale = 0.8
aftermarketComponent = 1
RearCameraPosition = 0, 0.5, -2.5

[INCLUDE: common/materials_interior.ini]
[Material_DigitalScreen]  ; set digital screen material
Materials = Android
ScreenScale = 1280
ScreenAspectRatio = 0.2
MatrixType = IPS


[LIGHT_HEADLIGHT_0] ; HEADLIGHT CONFIG
AFFECTS_TRACK=1
BOUND_TO=headlightr_a_004_001
BOUND_EMISSIVE_MAX=50
BOUND_EXP=1
COLOR=190,190,190,0.075
DIFFUSE_CONCENTRATION=1
DIRECTION=0, 0.0000000,0.1
EXTERIOR_ONLY=0
FADE_FROM=1
FADE_TO=400
INTERIOR_ONLY=0
LOWBEAM_RANGE_MAX=400
LOWBEAM_RANGE_MULT=4
LOWBEAM_RANGE_ONCOMING_MULT=0.8
MIRROR=0.65
MIRROR_DIRECTION=0
POPUP_ENABLED=1
POSITION=0, 0.65, 1.7
RANGE=400
RANGE_GRADIENT_OFFSET=0
SECOND_SPOT=65
SECOND_SPOT_INTENSITY=0.05
SECOND_SPOT_RANGE=500
SECOND_SPOT_SHARPNESS=0.58
SECOND_SPOT_SKIP=0.3
SINGLE_FREQUENCY=0
SPECULAR_MULT=0.1
SPOT=75
SPOT_EDGE=0.021, 0.0231, 0.0252
SPOT_EDGE_SHARPNESS=12
SPOT_SHARPNESS=0.7
SPOT_UP=0.0499376, 20.998752, -0.5

[LIGHT_BRAKE_...]
AFFECTS_TRACK=1
BOUND_EMISSIVE_MAX=500
BOUND_EXP=1
COLOR=25, 0, 0, 0.0.7
DIFFUSE_CONCENTRATION=0.88
DIRECTION=0, 0, -1
EXTERIOR_ONLY=1
FADE_AT=120
FADE_SMOOTH=30
INTERIOR_ONLY=0
MIRROR=0.5
MIRROR_DIRECTION=0
NO_SELF_SPECULAR=1
OFF_COLOR=0.5, 0.2, 3, 0
OFF_FADE_MULT=0.615
OFF_MIRROR=0.5
OFF_MULT=0.1
OFF_POSITION=0, 0.976202, -2
OFF_RANGE_MULT=0.725
POSITION=0, 0.7, -2.5
PREFER_FRONT=-1
RANGE=3
RANGE_GRADIENT_OFFSET=0.3
SINGLE_FREQUENCY=0
SPECULAR_MULT=1
SPOT=220
SPOT_EDGE=0.12, 0.12, 0.12
SPOT_EDGE_SHARPNESS=10
SPOT_SHARPNESS=0.4

[LIGHT_REVERSE_...]
AFFECTS_TRACK=1
BOUND_EMISSIVE_MAX=500
BOUND_EXP=1
COLOR=10, 10, 10, 0.1
DIFFUSE_CONCENTRATION=0.88
DIRECTION=0, 0, -1
EXTERIOR_ONLY=1
FADE_AT=60
FADE_SMOOTH=30
INTERIOR_ONLY=0
MIRROR=1.10
MIRROR_DIRECTION=0
NO_SELF_SPECULAR=1
OFF_FADE_MULT=0.3
OFF_MIRROR=1.10
OFF_MULT=0.1
OFF_POSITION=0, 0.976202, -2
OFF_RANGE_MULT=0.5
POSITION=0, 0.976202, -2
PREFER_FRONT=-1
RANGE=3
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

----------------------------------------------------------------
----------------------------------------------------------------


;================================================

;                REVERSE LIGHTS

;================================================

[EMISSIVE_REVERSE_0]
NAME =taillightc_a
COLOR = 15, 15, 15, 5
OFF_COLOR = 0, 0, 0
LAG = 0.1
SIMULATE_HEATING = 0.01
LOCATION = REAR
ACT_AS_HEADLIGHTS = 0

[SHAKING_EXHAUST_...]
MESHES =exhaust_a,exhaust_a.001,SpecularTint
POINT_0 = 1, 1, 1
POINT_0_RADIUS = 1
POINT_0_EXP = 1




[INCLUDE: common/selflighting.ini]

[SelfLight_Headlights]
POSITION = 0, 0.645, 1.6
MIRROR = 0.65
DIRECTION = 0, -0.1, 1
AFFECTS_TRACK = 1
DIFFUSE_CONCENTRATION = 0.2
BOUND_TO =headlightr_a_004_001
SPOT_SHARPNESS = 0
SPOT = 65
COLOR = 190,210,220,0.3
SPECULAR_MULT = 10
RANGE = 0.25

[SelfLight_Headlights]
POSITION = 0, 0.60, 1.66
MIRROR = 0.56
DIRECTION = 0, -0.5, 1
AFFECTS_TRACK = 1
DIFFUSE_CONCENTRATION = 0.2
BOUND_TO =headlightr_a_004_001
SPOT_SHARPNESS = 0
SPOT = 85
COLOR = 190,210,220,0.07
SPECULAR_MULT = 10
RANGE = 0.30

[SelfLight_Headlights]
POSITION = -0.538, 0.69, 1.79
MIRROR = 0
DIRECTION = 0, -0.5, 0.1
AFFECTS_TRACK = 0
DIFFUSE_CONCENTRATION = 0.6
BOUND_TO =headlightr_a_005_001
SPOT_SHARPNESS = 0
SPOT = 85
COLOR = 250,120,0,2
SPECULAR_MULT = 10
RANGE = 0.15

[SelfLight_Headlights]
POSITION = 0.538, 0.69, 1.79
MIRROR = 0
DIRECTION = 0, -0.5, 0
AFFECTS_TRACK = 0
DIFFUSE_CONCENTRATION = 0.6
BOUND_TO =headlightl_a_005_001
SPOT_SHARPNESS = 0
SPOT = 85
COLOR = 250,120,0,2
SPECULAR_MULT = 10
RANGE = 0.15

[ANIMATED_WIPER_...]
MESHES = wipers_r,wipers_l
UNDERLYING_SURFACE = glassf_a

[MESH_ADJUSTMENT_...]
MESHES = wipers_r,wipers_l
MOVE_TO = modelRoot:y

[BASIC]
DISABLE_WIPER_KSANIM = 1  
[ANIMATED_WIPER_0]
DEBUG = 1
MESHES = wipers_r, wipers_l
UNDERLYING_SURFACE = glassf_a
GROUP_0 = 'wipers_l@A=*'
GROUP_0_ANGLE_TO = -70
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.68954897, 0.88018095, 0.6459427
GROUP_0_PIVOT = -0.1351452, 0.79078543, 0.9126427
GROUP_0_RUBBER_FROM = 0.19656415, 0.8658717, 0.8193113
GROUP_0_RUBBER_OFFSET_AMOUNT = 0.01
GROUP_0_RUBBER_TO = 0.685687, 0.87362283, 0.64285195
GROUP_0_SCALE_LUT = '(|0.000=1.000|0.999=0.905|)'
GROUP_1 = 'wipers_r@A=*'
GROUP_1_ANGLE_TO = -80
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.15799549, 0.88170856, 0.81841093
GROUP_1_PIVOT = -0.6445936, 0.7645527, 0.77732944
GROUP_1_RUBBER_FROM = -0.34949505, 0.88716394, 0.75175744
GROUP_1_RUBBER_OFFSET_AMOUNT = 0.012999999
GROUP_1_RUBBER_OFFSET_POS = 0.35
GROUP_1_RUBBER_TO = 0.15603638, 0.87563914, 0.81338793
GROUP_1_SCALE_LUT = '(|0.000=1.000|1.000=0.905|)' 


;;; drone
[MODEL_REPLACEMENT_0]
FILE =toyota_gr86_blitz.kn5
INSERT = MFG_DRONE.kn5
INSERT_AFTER = DRONE_COORD

[WOBBLY_BIT_0]
NAME=mfgd_jjj ; name of the node to move
CONNECTED_TO=0,-30,12 ; point to which node is attached to, and around which it will rotate
MAX_RANGE=35 ; max range node can move from its original position
DAMPENING_LAG=0.997  ; think of it as usual AC lag value, trying to zero node's speed
G_GAIN= 3.6 ; how much G-forces affect node's speed
GRAVITY_GAIN=1.6; how much gravity affects node's speed
OFFSET_GAIN= 5.1 ; how strong is returning force
STIFF_AXIS=0,0.3,0.4 ; optional higher stiffness axis to reduce movement along it
STIFF_AXIS_STIFFNESS=0.7 ; now stiff is optional stiffness axis
G_FILTER=0.29 ; temporal filter for G-forces
DEFAULT_GRAVITY_INCLUDED_ALREADY=1 ; either 0 or 1; set it to 1 if you don't want gravity to skew your stuff when car is in neutral position

[ANIMATION_...]
FILE=spin.ksanim
TIME=0.04
LOOP_WHILE_ACTIVE=1

[ANIMATION_...]
FILE=forward.ksanim
TIME=2.0
INPUT=EXTRA_A
LOOP_WHILE_ACTIVE=0

[ANIMATION_...]
FILE=forward.ksanim
TIME=2.0
INPUT=EXTRA_B
LOOP_WHILE_ACTIVE=0

[EMISSIVE_EXTRA_A_0]
NAME = indicator
COLOR = 0,0,120, 160
LAG = 0
SIMULATE_HEATING = 1.0
BLINKING_PATTERN = (|0 = 0|0.5=1|1.5=0|2=0)
BLINKING_DURATION =0.85
LOCATION = REAR

[EMISSIVE_EXTRA_B_0]
NAME = indicator2
COLOR = 60,60,0, 80
LAG = 0
SIMULATE_HEATING = 1.0
BLINKING_PATTERN = (|0 = 0|0.5=1|1.5=0|2=0)
BLINKING_DURATION =0.85
LOCATION = REAR


[SCRIPT_...]
SCRIPT="
local drone = ui.MediaPlayer()
drone:setSource('./drone.wav')
drone:setLooping(true)
drone:setVolume(0)
drone:play()
local multiplier = 1
local distance = 0

function update(dt)
  if ac.getCar().isCameraOnBoard then
    multiplier = 0.1
  else
    multiplier = 1
  end

  distance = ac.getCar().distanceToCamera

  if distance < 10 then
    drone:setVolume(multiplier)
  elseif distance < 20 then
    drone:setVolume((1 - (distance - 10) / 10) * multiplier)
  else
    drone:setVolume(0)
  end

end"