===============navi=========================


[INCLUDE: common/navigators.ini]

[Navigator_StyleModernDark]
Meshes = navi_002
@ = Navigator_Size, Resolution = "800, 400", Size = "900, 470", Offset = "-60, 0", Scale = 1.1
Brightness = 0.5
UPCOMING_TURN_DISTANCE_ROUND_TO = 100

[INCLUDE: common/materials_interior.ini]
DisableDev = 1

[Material_DigitalScreen]
Meshes = navi
MatrixType = TN
ScreenScale = 800
ScreenAspectRatio = 0.5
UseTextureCoordinates = 1

==================else===================
[INCLUDE]
INCLUDE=common/no_popup_lights.ini
DisableDev = 0

[DATA] 
DISABLE_LIGHTSINI=0

[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


---------------------------------------------------
---------------------------------------------------
                       PBR
---------------------------------------------------
---------------------------------------------------	

[Material_Metal_v2]
Materials = ash_ao
Metalness = 1
BrightnessAdjustment = 0.01
DetailNormalBlend = 0
DetailScale = 0
Smoothness = 1
[Material_Metal_v2]
Materials = rim,tormoznoy
Metalness = 0.4
BrightnessAdjustment = 0.4
DetailScale = 0
Reflectance = 1
Smoothness = 1
DetailNormalBlend = 0

[Material_Leather]
Materials = door_ao
Reflectance = 0.1
DetailScale = 70
Smoothness = 0.6
BrightnessAdjustment = 0.3
DetailNormalBlend = 0.9
ApplyTilingFix = 1
[Material_Leather]
Materials = seat_ao
Reflectance = 0.07
DetailScale = 70
BrightnessAdjustment = 0.4
DetailNormalBlend = 0.7
ApplyTilingFix = 1
[Material_Leather]
Materials = lack_ao2
Reflectance = 0.08
DetailScale = 70
BrightnessAdjustment = 0.33
DetailNormalBlend = 0.3
ApplyTilingFix = 1
[Material_Leather]
Materials = teer_ao
Reflectance = 0.08
DetailScale = 70
BrightnessAdjustment = 0.47
DetailNormalBlend = 0.8
ApplyTilingFix =0
[Material_Leather]
Materials = alcantara_a_light
Reflectance = 0.05
DetailScale = 70
BrightnessAdjustment = 0.4
DetailNormalBlend = 0.15
ApplyTilingFix = 1
[Material_Leather]
Materials = aterial #165
Reflectance = 0.05
DetailScale = 70
BrightnessAdjustment = 0.4
DetailNormalBlend = 0.15
ApplyTilingFix = 1
[Material_Leather]
Materials = carpet_black
Reflectance = 0.05
DetailScale = 70
BrightnessAdjustment = 0.4
DetailNormalBlend = 0.15
ApplyTilingFix = 1

[Material_InteriorPBRDetail]
Materials=metall,b,steering,black_ao,grille,carbon2,
Metalness = 0.9
Reflectance = 0.8
BrightnessAdjustment = 0.4
DetailNormalTexture = common/pbr_metal.dds
DetailNormalPBRSecondaryColor = 0, 0, 0, 0
DetailScale = 0
DetailNormalBlend = 0
DetailNormalPBRSmoothnessGamma = 5
Smoothness = 0.95

;--------------------------------------------------------------------------------------------------------------------;
;                                                   sssss                                                          ;


[LIGHTING]
INTERIOR_FAKE_UPPER_SHADOW_HEIGHT=-0.02
INTERIOR_FAKE_UPPER_SHADOW_FADE=0.02
EMISSIVE_HEADLIGHTS_MULT=0.7
EMISSIVE_PARKINGLIGHTS_MULT=1.5
EMISSIVE_BRAKELIGHTS_MULT=0.2

[BRAKEDISC_FX_FRONT]
AMBIENT_MULT=1.6
DISC_INTERNAL_RADIUS=0.12
DISC_INTERNAL_RADIUS_SHARPNESS=100
REFLECTION_MULT=2
RIM_INTERNAL_RADIUS=0.08
SIMPLIFY_NORMALS_K=0

[BRAKEDISC_FX_REAR]
AMBIENT_MULT=1.6
DISC_INTERNAL_RADIUS=0.12
DISC_INTERNAL_RADIUS_SHARPNESS=100
REFLECTION_MULT=2
RIM_INTERNAL_RADIUS=0.08
SIMPLIFY_NORMALS_K=0

[TYRES_FX]
BROKEN_TYRES_DYNAMIC=1
COOKTORRANCE_FRESNEL_REFLECTANCE=0.2
COOKTORRANCE_IOR=0.1
COOKTORRANCE_LAMBERT_FACTOR=5
COOKTORRANCE_ROUGHNESS=0.5
DAMAGE_FLAT_SPOT_DEBUG=0
DAMAGE_FLAT_SPOT_FADE=0.1
DAMAGE_FLAT_SPOT_GAIN=10
DAMAGE_GRAIN_DEBUG=0
DAMAGE_GRAIN_GAIN=10
DAMAGE_GRAIN_MAX=0.8
DAMAGE_NORMALS_MULT=2
DAMAGE_OCCLUSION_MULT=0.2
DAMAGE_OFFSET_K=0
DAMAGE_REFL_MULT=0.8
DAMAGE_SPEC_EXP_MULT=0.2
DAMAGE_SPEC_MULT=0.6
DAMAGE_WIDTH_K=1.2
DIRT_ACCUMULATION=1000
DIRT_DIRT_DEBUG=0
DIRT_FADE=100
DIRT_GRASS_DEBUG=0
DIRT_WIDTH_K=1
ENABLED=1
FLEX_MAX_SKEW_MULT=0.8
FLEX_MULT=1
FLEX_PROFILE_MULT=0.45
FLEX_SKEW_RANGE_MULT=3
FLEX_SKEW_SMOOTHING=0.1
FLEX_SQUASH_SMOOTHING=0.1
NOFX_DISTANCE_SWITCH=16
VISIBLE_IN_INTERIOR_CAM=0


=====================turnsignal================

[EMISSIVE_TURNSIGNAL_LEFT_0]
RANGE_PREFIX=lr_
RANGE_START_INDEX=8
RANGE_END_INDEX=1
RANGE_DELAY=0.03 ; to compensate for that there are more of them
COLOR=230,120,0,8
OFF_COLOR=0,0,0
LAG=0.3
REPEAT_FREQENCY_HZ=2
LOCATION=REAR
SIMULATE_HEATING=0
CAST_LIGHT=1
REPEAT_FREQENCY_HAZARDS_HZ=2

[EMISSIVE_TURNSIGNAL_LEFT_1]
RANGE_PREFIX=f_
RANGE_START_INDEX=1
RANGE_END_INDEX=8
RANGE_DELAY=0.03 ; to compensate for that there are more of them
COLOR=230,120,0,8
OFF_COLOR=0,0,0
LAG=0.3
REPEAT_FREQENCY_HZ=2
LOCATION=REAR
SIMULATE_HEATING=0
CAST_LIGHT=1
REPEAT_FREQENCY_HAZARDS_HZ=2

[EMISSIVE_TURNSIGNAL_LEFT_2]  
NAME=LB

COLOR=0,9,0
OFF_COLOR=0,0,0
LAG=0.2
SIMULATE_HEATING=0
TOGGLE_VISIBILITY=1
CAST_LIGHT=0

[EMISSIVE_TURNSIGNAL_LEFT_3]  
NAME=misc_f_SUB1

COLOR=9,9,0
OFF_COLOR=0,0,0
LAG=0.2
SIMULATE_HEATING=0
TOGGLE_VISIBILITY=1
CAST_LIGHT=0



[EMISSIVE_TURNSIGNAL_RIGHT_0]
RANGE_PREFIX=rr_
RANGE_START_INDEX=1
RANGE_END_INDEX=8
RANGE_DELAY=0.03 ; to compensate for that there are more of them
COLOR=230,120,0,8
OFF_COLOR=0,0,0
LAG=0.3
REPEAT_FREQENCY_HZ=2
LOCATION=REAR
SIMULATE_HEATING=0
CAST_LIGHT=1
REPEAT_FREQENCY_HAZARDS_HZ=2

[EMISSIVE_TURNSIGNAL_RIGHT_1]
RANGE_PREFIX=s_
RANGE_START_INDEX=1
RANGE_END_INDEX=6
RANGE_DELAY=0.03 ; to compensate for that there are more of them
COLOR=230,120,0,8
OFF_COLOR=0,0,0
LAG=0.3
REPEAT_FREQENCY_HZ=2
LOCATION=REAR
SIMULATE_HEATING=0
CAST_LIGHT=1
REPEAT_FREQENCY_HAZARDS_HZ=2

[EMISSIVE_TURNSIGNAL_RIGHT_2]  
NAME=RB

COLOR=0,9,0
OFF_COLOR=0,0,0
LAG=0.2
SIMULATE_HEATING=0
TOGGLE_VISIBILITY=1
CAST_LIGHT=0

[EMISSIVE_TURNSIGNAL_RIGHT_3]  
NAME=misc_e_SUB1

COLOR=9,9,0
OFF_COLOR=0,0,0
LAG=0.2
SIMULATE_HEATING=0
TOGGLE_VISIBILITY=1
CAST_LIGHT=0

[LIGHT_HEADLIGHT_0]
AFFECTS_TRACK=1
BOUND_EMISSIVE_MAX=500
BOUND_EXP=1
COLOR=15, 15, 15, 3
DIFFUSE_CONCENTRATION=0.88
DIRECTION=0, -0.2, 1
EXTERIOR_ONLY=0
FADE_AT=450
FADE_SMOOTH=50
INTERIOR_ONLY=0
LOWBEAM_RANGE_MAX=170
LOWBEAM_RANGE_MULT=0.8
LOWBEAM_RANGE_ONCOMING_MULT=0.4
MIRROR=0.660717
MIRROR_DIRECTION=0
NO_SELF_SPECULAR=1
OFF_COLOR=0, 0,0, 0
OFF_FADE_MULT=0.612379
OFF_MIRROR=0.646549
OFF_MULT=0
OFF_POSITION=0, 0.694678, 2.17753
OFF_RANGE_MULT=0.180782
POSITION=0, 0.728471, 2.87753
RANGE=2940
RANGE_GRADIENT_OFFSET=0
SECOND_SPOT=128
SECOND_SPOT_INTENSITY=2.0
SECOND_SPOT_RANGE=25
SECOND_SPOT_SHARPNESS=0
SECOND_SPOT_SKIP=0.3
SINGLE_FREQUENCY=0
SPECULAR_MULT=1
SPOT=48
SPOT_EDGE=0.040704, 0.039936, 0.0384
SPOT_EDGE_SHARPNESS=42
SPOT_SHARPNESS=0
SPOT_UP=0.0499376, 0.998752, 0


================shadowed==================


[SHADOWED_WHEELS]
DISTANCE=3
WIDTH=0.12
OPACITY=0.5
EXTRA_AMBIENT_BRIGHTNESS=0.05

[SHADOWED_WHEELS_FRONT]
ANGLE=15
OFFSET=0.07

[SHADOWED_WHEELS_REAR]
ANGLE=15
OFFSET=0.06

[SHADOWED_TYRES]
ANGLE = 10
EXTRA_AMBIENT_BRIGHTNESS = 0.15
OFFSET = 0.01
WIDTH = 0.1
OPACITY = 2.0

==============AUDIO==============


[AUDIO_VOLUME]
ENGINE_EXT = 0.5
ENGINE_INT = 0.3
GEAR_EXT = 2.5
GEAR_INT = 0.4
BODYWORK = 0.5
WIND = 0.4
DIRT = 0.4
DOWN_SHIFT = 0.4
HORN = 0.5
GEAR_GRIND = 0.5
BACKFIRE_EXT = 0.5
BACKFIRE_INT = 0.4
TRACTION_CONTROL_EXT = 0.5
TRACTION_CONTROL_INT = 0.4
TRANSMISSION = 0.4
LIMITER = 0.5
TURBO = 0.5


============== New glass=====================
[INCLUDE: common/materials_glass.ini]
ExteriorGlassHeadlightsMaterials = glass, 

[Material_PhotoelasticGlass]
Meshes = headlight_l_SUB1,  headlight_r_SUB1, 
PhotoelasticityBaseScale = 4      ; this parameter alters scale in general
PhotoelasticityNoiseScale = 0.04  ; deeply affects randomization process, careful with it
PhotoelasticitySpotsScale = 0.5   ; spots for limiting effect to some areas
PhotoelasticitySpotsOffset = 0.2  ; offset for spots, to try and fit effect nice on existing meshes
PhotoelasticityStripesScale = 4   ; how many stripes are there
ProfileFix = 0.02

===============dash=================

[ANALOG_INDICATOR_...]
INPUT=OIL_TEMP         
INPUT_LUT = (|0=0|24=0|30=0|)
NAME=dash_led_10
UPPER_BOUND = 0  
INPUT_LAG=0
RANGE=0
INPUT_STALLED_VALUE=0
INPUT_STALLED_LAG=0
SPEED_LAG = 0.00             ; lag for speed, adding inertia of movement
G_FACTOR = -0.0, -0.00, -0.0                ; maximum input value for arrow to move with
START = 0
POS_OFFSET_END = 0, 0.0006, 0.009
POS_OFFSET_START = -0.0, 0.006, 0.009

[EMISSIVE_TYRES_...]
PRESSURE_THRESHOLD=20
NAME=dash_led_13
COLOR=8,5,0
OFF_COLOR=0,0,0

[EMISSIVE_TRACTIONCONTROL_...]
NAME=dash_led_16
OFF_COLOR=8,5,0
COLOR=0,0,0
TOGGLE_VISIBILITY_INVERSE=1

[EMISSIVE_TRACTIONCONTROL_INACTION_...]
NAME=dash_led_11
COLOR=8,5,0
OFF_COLOR=0,0,0
TOGGLE_VISIBILITY=1

[EMISSIVE_ABS_...]
NAME=dash_led_18
OFF_COLOR=8,5,0
COLOR=0,0,0
TOGGLE_VISIBILITY_INVERSE=1

[EMISSIVE_OIL_TEMP_...]
INPUT=OIL_TEMP
INPUT_LUT=(|0=1|25=1|35=0|48=0|53.9=0|166=0|)
NAME=dash_led_12

COLOR=3,0,0,3
OFF_COLOR=0,0,0,0
LAG=0.1
SIMULATE_HEATING=0.1
TOGGLE_VISIBILITY=1
TOGGLE_VISIBILITY_INVERSE=0
BLINKING_PATTERN=(|0=1|1=0|2=1|3=0|4=1|5=0|)
BLINKING_DURATION=1


===========light==============

[EMISSIVE_ENGINE_0]
NAME=dash_led_20
TOGGLE_VISIBILITY = 1
COLOR=15, 8, 0

==========new=================

[DI_GEAR_...]
DIGITAL_ITEM = 7
DIGITAL_ITEM_NUMBER_FORMAT=GEAR,R,P,1,2,3,4,5,6


[DI_GEAR_...]
DIGITAL_ITEM = 9
DIGITAL_ITEM_NUMBER_FORMAT = GEAR_AUTO, , , S

[EMISSIVE_...]
NAME=compteur , navi_002
INPUT=RPM
INPUT_THRESHOLD=10
COLOR=3,3,3


[MODEL_REPLACEMENT_...]
FILE = audi_r8_performance_2020.kn5  ; name of KN5 to work with (to distinguish between LODs or track KN5s)
SKINS = MFG      ; list of skins to use replacement with (only for cars)

; To remove certain meshes or whole nodes containing meshes (optional): 
HIDE = geo_plate_001_002 ; meshes or nodes to hide (no protected meshes)

; To insert a new 3D model (optional; but when using this, you need either INSERT_AFTER or INSERT_IN):
INSERT = plate_front.kn5       ; name of KN5 to insert, should be located next to config file
INSERT_AFTER = bumper_f_SUB1 ; node/meshmesh, after which new KN5 will be inserted

; Options to transform inserted model:
SCALE = 1, 1, 1     ; change size: X, Y and Z axis (for car, X is left-right, Y and up-down)
ROTATION =0, -80, 180  ; rotate: heading, pitch and roll, in degress
OFFSET = 0, 0.0997,-0.158    ; move: X, Y and Z axis, in meters


[MODEL_REPLACEMENT_...]
FILE = audi_r8_performance_2020.kn5  ; name of KN5 to work with (to distinguish between LODs or track KN5s)
SKINS = MFG      ; list of skins to use replacement with (only for cars)

; To remove certain meshes or whole nodes containing meshes (optional): 
HIDE = geo_plate_002 ; meshes or nodes to hide (no protected meshes)

; To insert a new 3D model (optional; but when using this, you need either INSERT_AFTER or INSERT_IN):
INSERT = plate_rear.kn5       ; name of KN5 to insert, should be located next to config file
INSERT_AFTER = bumper_f_SUB1 ; node/meshmesh, after which new KN5 will be inserted

; Options to transform inserted model:
SCALE = 1, 1, 1     ; change size: X, Y and Z axis (for car, X is left-right, Y and up-down)
ROTATION = 0, -80, 180  ; rotate: heading, pitch and roll, in degress
OFFSET =  0,-0.142 ,0.590    ; move: X, Y and Z axis, in meters

[MODEL_REPLACEMENT_...]
FILE = audi_r8_performance_2020.kn5  ; name of KN5 to work with (to distinguish between LODs or track KN5s)
SKINS = MFG      ; list of skins to use replacement with (only for cars)

; To insert a new 3D model (optional; but when using this, you need either INSERT_AFTER or INSERT_IN):
INSERT = mfg_pass.kn5       ; name of KN5 to insert, should be located next to config file
INSERT_AFTER = bumper_f_SUB1 ; node/meshmesh, after which new KN5 will be inserted

; Options to transform inserted model:
SCALE = 1, 1, 1     ; change size: X, Y and Z axis (for car, X is left-right, Y and up-down)
ROTATION = 0, -93, 180  ; rotate: heading, pitch and roll, in degress
OFFSET =  0,0.065 ,-0.105    ; move: X, Y and Z axis, in meters


;;; drone
[MODEL_REPLACEMENT_0]
FILE =audi_r8_performance_2020.kn5
INSERT = MFG_DRONE.kn5
INSERT_AFTER = WHEEL_RR

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