[INCLUDE]
INCLUDE = common/no_popup_lights.ini

[BOUNCED_INTERIOR_LIGHT]
MULT = 1

[LIGHTING]
INTERIOR_FAKE_UPPER_SHADOW_HEIGHT = 0.04
INTERIOR_FAKE_UPPER_SHADOW_FADE = 0.05
INTERIOR_FAKE_SHADOW_OPACITY = 0.9
INTERIOR_FAKE_SHADOW_HEIGHT = -0.4
INTERIOR_FAKE_SHADOW_FADE = 0.5
EMISSIVE_PARKINGLIGHTS_MULT = 1.5
EMISSIVE_BRAKELIGHTS_MULT = 2.5
LIT_MULT=1
SPECULAR_MULT=1

[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.001
HEADLIGHTS_ARE_HEADLIGHTS=1
HORN_AS_SIREN=0
IS_LOW_BEAM_AVAILABLE=1
LIGHT_DAMAGE_SPEED_MAX=230
LIGHT_DAMAGE_SPEED_MIN=190
STOP_LODS_ADJUSTMENT=0
TURNING_LIGHTS_REPEAT=1



[BOUNCED_BRAKE_LIGHTS]
ACTIVE=1
FADE_AT=200
FADE_SMOOTH=50
FALLOFF=0.7
GRADIENT_OFFSET=0.8
MULT=1, 1, 1, 1
OFFSET=7

[BOUNCED_HEADLIGHTS]
ACTIVE=1
FADE_AT=200
FADE_SMOOTH=50
FALLOFF=0.7
GRADIENT_OFFSET=0.8
MULT=1, 1, 1, 1
OFFSET=7

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

[DATA]
DISABLE_LIGHTSINI=0
FAKE_HIGHBEAMS_INDICATOR_LED_LIGHT=1
LIGHT_HEATING_K_LED_LIGHT=1
LIGHT_HEATING_K_Light_Main=1
LIGHT_HEATING_K_Light_Rear_Central=1
LIGHT_HEATING_K_Light_extra=1
LIGHT_HEATING_K_Rear_brake=1
LIGHT_SWITCH_LAG_LED_LIGHT=1
LIGHT_SWITCH_LAG_Light_Main=1
LIGHT_SWITCH_LAG_Light_Rear_Central=1
LIGHT_SWITCH_LAG_Light_extra=1
LIGHT_SWITCH_LAG_Rear_brake=1


[INCLUDE: common/materials_carpaint.ini]
CarPaintMaterial = SKIN_00, SKIN_01
DisableDev = 1

[Material_CarPaint_Metallic]
Skins= a31
AmbientSpecular = 0.0
ColoredSpecular = 0.8
AmbientSpecularEXP = 1.0
BrightnessAdjustment = 0.75

[Material_CarPaint_Solid]
Skins= p23, w37
AmbientSpecular = 0.0
ColoredSpecular = 0.8
AmbientSpecularEXP = 1.0
BrightnessAdjustment = 0.75


[Material_CarPaint_Pearl]
Skins= a39, x42
AmbientSpecular = 0.0
ColoredSpecular = 0.8
AmbientSpecularEXP = 1.0
BrightnessAdjustment = 0.75

[ANIMATION_0]
FILE=car_door_R.ksanim
TIME=0.5
BIND_TO_EXTRA_C=1

[ANIMATION_1]
FILE=car_door_L.ksanim
TIME=0.5
BIND_TO_EXTRA_B=1



[BRAKEDISC_FX]
AMBIENT_MULT = 1.5
REFLECTION_MULT = 70
RIM_INTERNAL_RADIUS = 0.05
SIMPLIFY_NORMALS_K = 0.9
DISC_INTERNAL_RADIUS_SHARPNESS = 250

[BRAKEDISC_FX_FRONT]
DISC_INTERNAL_RADIUS = 0.112

[BRAKEDISC_FX_REAR]
DISC_INTERNAL_RADIUS = 0.112

[SHADOWED_WHEELS]
ANGLE = 16
WIDTH = 0.16
OPACITY = 1.0
EXTRA_AMBIENT_BRIGHTNESS = 0.1

[SHADOWED_TYRES]
ANGLE = 20
EXTRA_AMBIENT_BRIGHTNESS = 0.15
OFFSET = 0.01
WIDTH = 0.10
OPACITY = 1.0


[SMART_MIRROR]
VISIBLE_FIRSTPERSON=RIGHT


[INSTRUMENTS]
SPEED_LAG = 0.9

[LIGHT_FLAMES]
SPOT=300
CAR_BRIGHTNESS_MULT=0.5





[TYRES_FX]
DAMAGE_DEBUG=0                ; set it to 1 to get damaged tyres from the start
DAMAGE_FLAT_SPOT_GAIN=200.0   ; multiplier for increasing flat spot
DAMAGE_FLAT_SPOT_FADE=0.1     ; how much of flat spot (which is in 0…1 range) will be gone after 1 km driven
DAMAGE_GRAIN_GAIN=1.0         ; multiplier for increasing grain
DAMAGE_WIDTH_K=0.95           ; decrease to make damage more narrow and vise versa
DAMAGE_OFFSET_K=0.0           ; horizontal offset for visible damage; increase to move it closer to the car
DAMAGE_GRAIN_MAX=0.4          ; upper bound for grain damage, from 0 to 1

DAMAGE_SPEC_MULT=0.6          ; by how much ksSpecular should be multiplied for fully damaged areas
DAMAGE_SPEC_EXP_MULT=0.2      ; by how much ksSpecularEXP should be multiplied for fully damaged areas
DAMAGE_REFL_MULT=0.4          ; by how much fresnelMaxLevel should be multiplied for fully damaged areas
DAMAGE_OCCLUSION_MULT=0.8     ; how much of occlusion to substract from fully damaged areas
DAMAGE_NORMALS_MULT=2.0       ; normals multiplier for fully damaged areas

FLEX_SKEW_SMOOTHING=0.1       ; how fast should tyre mesh react to change in force
FLEX_MAX_SKEW_MULT=0.8        ; multiplier for maximum flex distance
FLEX_PROFILE_MULT=0.6         ; multiplier for profile size for deforming tyre
FLEX_SKEW_RANGE_MULT=2.0      ; how much of a tyre should be skewed, maximum value is 3
FLEX_MULT=1.0                 ; how far a tyre should be skewed


[LIGHT_FLAME_0]
BRIGHTNESS_MULT=0.2
CAR_BRIGHTNESS_MULT=1
CAR_RANGE_MULT=0.2
COLOR=-1, -1, -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.517
SPOT_SHARPNESS=0.8


[WIPERS_TRACE_...]
SURFACE = Body_Glass_int, Body_Glass_Ext_SUB0
WIPERS = dvorleft_SUB1, dvorright_SUB2




[EMISSIVE_HIGHBEAM_0]
NAME=front
COLOR=150,150,150
LAG=0.6
SIMULATE_HEATING=0.9
LOCATION=FRONT




[EMISSIVE_REVERSE_0]
NAME=reversinglight
COLOR=150, 150, 150
LAG=0.3
SIMULATE_HEATING=1.0



[EMISSIVE_TURNSIGNAL_LEFT_0]
NAME=indicator_lf
COLOR=100,80, 0
LAG=0.2
SIMULATE_HEATING=0.3
LOCATION=FRONT


[EMISSIVE_TURNSIGNAL_LEFT_1]
NAME=indicator_lr
COLOR=100,80, 0
LAG=0.2
SIMULATE_HEATING=0.3
LOCATION=REAR

[EMISSIVE_TURNSIGNAL_LEFT_2]
NAME=indicator_lm
COLOR=150,50, 0
CAST_LIGHT=1
LOCATION=MIDDLE

[EMISSIVE_TURNSIGNAL_RIGHT_0]
NAME=indicator_rf
COLOR=100,80, 0
LAG=0.2
SIMULATE_HEATING=0.3
LOCATION=FRONT

[EMISSIVE_TURNSIGNAL_RIGHT_1]
NAME=indicator_rr
COLOR=100,80, 0
LAG=0.2
SIMULATE_HEATING=0.3
LOCATION=REAR

[EMISSIVE_TURNSIGNAL_RIGHT_2]
NAME=indicator_rm
COLOR=150,50, 0
CAST_LIGHT=1
LOCATION=MIDDLE

[EMISSIVE_EXTRA_A_0]
BIND_TO_EXTRA_A=1 
NAME=foglight
COLOR=150,150,150,1 ;last number is for brightness
BIND_TO_HEADLIGHTS=0

[LIGHT_EXTRA_0]     ; lightcone Foglight_L for players car only
BIND_TO_EXTRA_A=1   ; if "1" on/off with "Alt+NUMPAD7" for players car only;
COLOR=100,100,100,0.1
DIFFUSE_CONCENTRATION=0.88
EXTERIOR_ONLY=0
INTERIOR_ONLY=0
FADE_AT=200;5
FADE_SMOOTH=5
MIRROR=0
POSITION=-0.8276156,0.5506927,1.940742
DIRECTION=0.1,0,1 
RANGE=350;1.25
RANGE_GRADIENT_OFFSET=0.5
SPECULAR_MULT=3
SPOT=90;120
SPOT_SHARPNESS=0


[LIGHT_EXTRA_1]    ;lightcone Foglight_R for players car only
BIND_TO_EXTRA_A=1  ; if "1" on/off with "Alt+NUMPAD_7" 
COLOR=100,100,100,0.1
DIFFUSE_CONCENTRATION=0.88
EXTERIOR_ONLY=0
INTERIOR_ONLY=0
FADE_AT=100;5
FADE_SMOOTH=5
MIRROR=0
POSITION=0.8276156,0.5506927,1.940742
DIRECTION=-0.1,0,1 
RANGE=350;1.25
RANGE_GRADIENT_OFFSET=0.5
SPECULAR_MULT=3
SPOT=90;120
SPOT_SHARPNESS=0


;;; drone
[MODEL_REPLACEMENT_0]
FILE =bk_mitsubishi_evo_ix.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"