
car
{
  name=Mercedes-AMG GT
  year=2016
  credits=Model by Ardiansyah, converted by Sergey Zimullin from vk.com\racergame, adaptation by Eholov
  comments=5980cc,_Twin-Turbo V12_SOHC,  629ps/4600~5000rpm , 1000Nm/2300~4300rpm 
  wheels=4
  id=GT
  	version=090
  skid
  {
    sample=skid.wav
  }
 
  {
    
    width=2.1
    length=4.5
	offset_z=-.1
	;intensity_dark=0.5
	;intensity_light=0.5
  }
  cg
  {
    x=0
    y=-0.25
    z=0.205
  }
  ff_factor=0.50
}


graphics
{
  	
  	{
    		model
    		{
      			file=Mercedes_GT_2016_AMG.dof
			use_shaders=0
    		}
		intensity=0.2
  	}
	generic
	{
		model0
		{
		file=Mercedes_GT_2016_AMG.dof
		}
		model1
		{
		file=бампера.dof
		}
		model2
		{
		file=lights.dof
		}
		model6
		{
		file=interior.dof
		}
		model7
		{
		file=windows2.dof
		}
		model4
		{
		file=chromplast.dof
		}
		model5
		{
		file=door1.dof
		}
		model8
		{
		file=door2.dof
		}
		model10
		{
		file=lights2.dof
		}
		model11
		{
		file=doorrr.dof
		}
		
				
	}
}

lights
{
  ; Projected lights
  light0
  {
    texture=light.tga
    ; Field of view (vertical)
    fov=55
    ; Aspect (horizontal)
    aspect=5
    ; Distance to car
    z=2
    ; Pitching with respect to car (in degrees)
    pitch=0
    ; Fall-off distance
    far=100
    ; Color (multiplied with texture)
    color=40 40 40
  }
}





body
{
  mass=1649		;kerb 1173 kg - 117 kg engine - 40 kg wheels + 80 kg driver +10 kg fuel
  inertia
  {
    x=2450
    y=2500
    z=470
  }
  model
  {
    file=Mercedes_GT_2016_AMG.dof
  }
  model_incar
  {
    file=Mercedes_GT_2016_AMG.dof
  }
 model_light_l
  {
    file=lights_on.dof
  }
  model_braking_l
  {
    file=hamowanie.dof
  }
  model_reverse_l
  {
    file=reverse.dof
  }
  width=1.96
  height=0.75
  length=4.46
  manual_box=1
}
steer
{
  x=0.45
  y=0.1
  z=0.05
  xa=15
  lock=900
  model
  {
     file=kierownica.dof
  }
}
engine
{
	x=0
	y=0
	z=0
 	mass=220
 	max_rpm=6400
	idle_method=1
	idle_throttle=0
 	idle_rpm=900
 	curve_torque=torque.crv
	braking_torque_curve=braking.crv
 	max_torque=700
 	autoclutch_rpm=1100
 	starter=1
 	starter_torque=65
 	start_stalled=1
	friction=0
 	stall_rpm=250
 	start_rpm=700
 	torque_reaction=0.5
 	shifting
 	{
  		automatic=1
		blip_throttle=0.3
		cut_throttle=1
  		shift_up_rpm=5450
 		shift_down_rpm=850
  		time_to_declutch=85
  		time_in_neutral=55
  		time_to_clutch=85
 	}
 	inertia
 	{
  		engine=0.5
 	}
 	rolling_friction_coeff=1.9
}
}
gearbox
{
 	gears=6
 	gear0
 	{
  		ratio=-3.167
  		inertia=0.9
 	}
 	gear1
 	{
  		ratio=3.6
  		inertia=0.13
 	}
 	gear2
 	{
  		ratio=2.19
  		inertia=0.09
 	}
 	gear3
 	{
  		ratio=1.41
  		inertia=0.07
 	}
 	gear4
 	{
  		ratio=1.0
  		inertia=0.05
 	}
 	gear5
 	{
  		ratio=0.83
  		inertia=0.02
 	}
	end_ratio=2.82
}


clutch
{
 	max_torque=1000
}
handbrakes
{
 	wheels=23
}
differential
{
 	type=1
 	ratio=2.65
 	inertia=0.1
 	output0=2
  	output1=3
 	locking_coeffient=350
}

aero
{
  body
  {
    center=0 0 0
    cx=0.33		;sourced
    area=2.06		;measured
  }
  wings=1
  wing0
  {
    name=overall body lift
    span=1
    cord=1
    coeff_drag=0
    coeff_down=-5.3	;18kg lift @ 200 km/h
    center=0 0 0.0
    angle=0
    angle_offset=1
  }
}

antirollbar
{
 	count=2
 	arb0
 	{
  		susp_left=0
  		susp_right=1
  		k=40000
 	}
 	arb1
 	{
  		susp_left=2
  		susp_right=3
  		k=27000
 	}
}
susp_front
{
  y=-0.1
  z=1.53
  minlen=0.15
  restlen=0.33			
  maxlen=0.45
  k=85000
  bump_rate=3100
  rebound_rate=6500
  bump_function=0
  ;bump_max=1755
  rebound_function=3
  anti_pitch=0.14
  camber_change_per_m=0
  roll_center
  {
    x=0
    y=-0.55
    z=0
  }
}
susp_rear
{
  y=-0.1
  z=-1.35
  minlen=0.15
  restlen=0.33				
  maxlen=0.45								
  k=85000		
  bump_rate=3100
  rebound_rate=6500
  bump_function=3
  ;bump_max=2250
  rebound_function=0
  anti_pitch=0.08
  camber_change_per_m=0.05
  roll_center
  {
    x=0
    y=-0.55
    z=0
  }
}
susp0~susp_front
  {
    x=0.87
    toe_change_per_m=0.029	
    camber_change_steering=0.1062
    caster_offset=-0.01
  }
susp1~susp_front
  {
    x=-0.90
    toe_change_per_m=-0.029
    camber_change_steering=-0.1062
    caster_offset=-.01
  }
susp2~susp_rear
  {
    x=0.93
    toe_change_per_m=0.019
  }
susp3~susp_rear
  {
    x=-0.90
    toe_change_per_m=-0.019	
  }
tire_model_front
{
  damping_predict_lat=0
  damping_predict_long=0
}
tire_model_rear
{
  damping_predict_lat=0
  damping_predict_long=0
}
pacejka
{
   ; Lateral force
   a0=1.37
   a1=-13
   a2=1350
   a3=2230
   a4=8.65 ;12
   a5=0.000 ;0.0
   a6=0 ;-0.04 ;0
   a7=0.7
   a8=0 ;0.003
   a9=0 ;-0.002
   a10=0 ;0.16
   a111=0
   a112=0 ;0.045
   a12=0 ;0.17
   a13=0 ;-23.5
   ; Longitudinal force
   b0=1.47
   b1=-15
   b2=1530
   b3=9.8
   b4=350
   b5=0
   b6=0
   b7=0
   b8=0
   b9=0
   b10=0
   b11=0
   b12=0
   ; Aligning moment
   c0=0.83
   c1=-2.2
   c2=9.39
   c3=0.219
   c4=-8.6
   c5=0.025
   c6=0.0
   c7=0.044
   c8=-0.58
   c9=0.18
   c10=0 ;0.043
   c11=0 ;0.048
   c12=0 ;-0.0035
   c13=0 ;-0.18
   c14=0 ;0.14
   c15=0 ;-1.029
   c16=0 ;0.27
   c17=0 ;-1.1
   optimal_slipratio=0.179
   optimal_slipangle=0.179
}

skidding_default
{
  long_start=0.1
  long_max=1.0
  long_start_n=0.1
  long_max_n=1.0
  lat_start=0.1
  lat_max=1.0
}

wheel_front
{
	camber=-3.2
  steering=1
  lock=85
  mass=20
  inertia=1.5
  radius=0.37
  camber=5.5
  rolling_coeff=0.0180
  friction_road=1
  max_braking=6000
  braking_factor=1
  tire_rate=265000
  pacejka~pacejka
  {
  }
}
wheel_rear
{
	camber=0
  steering=0
  mass=20
  inertia=1.5
  radius=0.37
  camber=5.5
  rolling_coeff=0.0205
  friction_road=1
  max_braking=3000
  max_handbrake_torque=10000
  braking_factor=1
  tire_rate=265000
  pacejka~pacejka
  {
  }
}
wheel0~wheel_front
{
  x=0
  ackerman=1.2247
  toe=0.015
  model
  {
    file=left.dof
  }
  model_brake
  {
    file=caliper_left.dof
  }
}
wheel1~wheel_front
{
  x=0
  ackerman=-1.2247
  toe=0.16
  model
  {
    file=right.dof
  }
  model_brake
  {
    file=caliper_right.dof
  }
}
wheel2~wheel_rear
{
  x=0
  toe=0.16
  model
  {
    file=left.dof
  }
  model_brake
  {
    file=caliper_left1.dof
  }
}
wheel3~wheel_rear
{
  x=0
  toe=0.16
  model
  {
    file=right.dof
  }
  model_brake
  {
    file=caliper_right1.dof
  }
}

camera0
{
  name=Driver
  fov=70
  model=0
  wheels=1
  view=1
  offset
  {
    x=0.355
    y=0.4
    z=-0.1
  }
  offset_to
  {
    x=0.43
    y=-0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.3
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera1
{
  name=Driver, left
  fov=60
  model=0
  wheels=1
  view=1
  offset
  {
    x=0.325
    y=0.4
    z=-0.18
  }
  offset_to
  {
    x=10.43
    y=0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.3
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera2
{
  name=Driver, right
  fov=60
  model=0
  wheels=0
  view=0
  offset
  {
    x=0.325
    y=0.4
    z=-0.18
  }
  offset_to
  {
    x=-9.57
    y=0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.3
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera3
{
  name=Driver, rear
  fov=-65
  model=0
  wheels=0
  view=0
  offset
  {
    x=0.100
    y=0.4
    z=-0.18
  }
  offset_to
  {
    x=-1
    y=0.5
    z=-10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.3
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera4
{
  name=Chase
  fov=60
  model=0
  wheels=0
  view=0
  offset
  {
    x=0
    y=-0.5
    z=-5
  }
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  angle
  {
    x=15
    y=180
    z=0
  }
}
camera5
{
  name=Chase rear
  fov=60
  model=0
  wheels=0
  view=0
  offset
  {
    x=0
    y=-0.5
    z=-5
  }
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  angle
  {
    x=15
    y=0
    z=0
  }
}
camera6
{
  name=Free exterior
  fov=60
  model=0
  wheels=0
  view=0
  offset
  {
    x=0
    y=-0.5
    z=-5
  }
  follow
  {
    pitch=0
    yaw=0
    roll=0
  }
  angle
  {
    x=10
    y=180
    z=0
  }
}
camera7
{
	name=Side
	fov=60
	model=0
	wheels=0
	view=0
	offset
	{
		x=1.267185
		y=0.129164
		z=-2.6
	}
	angle
	{
		x=1.361085
		y=-165.972626
		z=1.298599
	}
	follow
	{
		pitch=0
		yaw=1
		roll=1
	}

}
camera8
{
  name=Far
  fov=20
  model=0
  view=0
  wheels=0
  follow
  {
    pitch=0
    yaw=0
    roll=0
  }
  offset
  {
    x=0
    y=-0.5
    z=-20
  }
  angle
  {
    x=10
    y=50
    z=0
  }
}
camera9
{
	name=Bonnet
	fov=60
	model=0
	wheels=0
	view=0
	offset
	{
		x=0.356
    		y=-0.8
    		z=-0.2
	}
	follow
	{
		pitch=1
		yaw=1
		roll=1
	}
	angle
	{
		x=5
		y=180
		z=0
	}
}
;------------audio------------
audio
{
   skid
   {
      volume=1
      sample=skid.wav
   }

   acc_all
   {
      attack=1000
      decay=1000
   }

   accelerate_in
   {
      smp0
      {
         sample=IDLE - IN.wav
         volume=1
         min=300
         max=900
         natural=750
         decay=800
      }
      smp1
      {
         sample=LUGGING - IN.wav
         volume=3
         min=800
         max=2000
         natural=1600
         decay=700
      }
      smp2~audio.acc_all
      {
         sample=2000 - ACC - IN.wav
         volume=1
         min=2000
         max=3200
         natural=2000
         decay=1000
         attack=1000
      }
      smp3
      {
         sample=4000 - ACC - IN.wav
         volume=1.5
         min=3200
         max=5000
         natural=4000
         decay=800
         attack=1000
      }
      smp4
      {
         sample=6000 - ACC - IN.wav
         volume=0.9
         min=5300
         max=6800
         natural=6000
         attack=1500
         decay=800
      }
      smp5
      {
         sample=LIMITER - IN.wav
         volume=1
         min=7200
         max=20000
         natural=7500
         attack=300
      }
      smp6
      {
         sample=turbo.wav
         volume=0.2
         min=2200
         max=20000
         natural=7500
         attack=1300
      }
   }

   decelerate_in
   {
      smp0
      {
         volume=1
         sample=IDLE - IN.wav
         min=100
         max=900
         natural=750
         attack=500
         ;      decay=0
      }
      smp1
      {
         sample=2000 - DEC - IN.wav
         volume=1
         min=900
         max=2800
         natural=1500
         attack=1000
         decay=500
      }
      smp2~audio.acc_all
      {
         sample=4000 - DEC - IN.wav
         volume=.7
         min=2800
         max=4700
         natural=3500
         attack=1000
         decay=1000
      }
      smp3~audio.acc_all
      {
         sample=6000 - DEC - IN.wav
         volume=0.6
         min=4700
         max=8000
         natural=6000
         attack=1000
         decay=1000
      }
      smp4
      {
         sample=LIMITER - IN.wav
         volume=.7
         min=8000
         max=20000
         natural=7500
         decay=100
      }
      smp5
      {
         sample=turbo.wav
         volume=0.2
         min=2200
         max=20000
         natural=7500
         attack=1300
      }
   }

   accelerate_out
   {
      smp0
      {
         sample=IDLE - OUT.wav
         volume=1
         min=500
         max=1000
         natural=780
       
      }
      smp1
      {
         sample=LUGGING - OUT.wav
         volume=1
         min=1000
         max=2000
         natural=1600
         decay=500
      }
      smp2
      {
         sample=2000 - ACC - OUT.wav
         volume=1
         min=2000
         max=3500
         natural=2000
         decay=1000
         attack=1700
      }
      smp3~audio.acc_all
      {
         sample=4000 - ACC - OUT.wav
         volume=.7
         min=3500
         max=5000
         natural=3000
         decay=1000
         attack=1000
      }
      smp4
      {
         sample=6000 - ACC - OUT.wav
         volume=.6
         min=5000
         max=7000
         natural=5000
         attack=1000
         decay=10
      }
      smp5
      {
         sample=LIMITER - OUT.wav
         volume=.5
         min=7000
         max=20000
         natural=7000
         attack=10
      }
      smp6
      {
         sample=turbo.wav
         volume=0.3
         min=2200
         max=20000
         natural=7500
         attack=1300
      }
   }

   decelerate_out
   {
      smp0
      {
         volume=1
         sample=IDLE - OUT.wav
         min=100
         max=1000
         natural=750
         attack=100
         decay=1000
      }
      smp1~audio.acc_all
      {
         sample=1500 - DEC - OUT.wav
         volume=1
         min=1000
         max=3000
         natural=1500
         attack=1000
         decay=1000
      }
      smp2~audio.acc_all
      {
         sample=3000 - DEC - OUT.wav
         volume=1
         min=3000
         max=4000
         natural=3000
         attack=1000
         decay=1000
      }
      smp3~audio.acc_all
      {
         sample=6000 - DEC - OUT.wav
         volume=.6
         min=4000
         max=8000
         natural=6500
         attack=1000
         decay=1000
      }
      smp4
      {
         sample=LIMITER - OUT.wav
         volume=0.4
         min=8000
         max=20000
         natural=7500
         decay=100
      }
      smp5
      {
         sample=turbo.wav
         volume=0.3
         min=2200
         max=20000
         natural=7500
         attack=1300
      }
   }
   wind
   {
      smp0
      {
         volume=2
         sample=wind1.wav
         pitch_scale=2
         pitch_offset=2
         ; Speeds in m/s
         min=.5
         max=9999
         natural=20
      }
      smp1
      {
         volume=.5
         sample=driveshaft.wav
         pitch_scale=.5
         pitch_offset=.7
         ; Speeds in m/s
         min=.5
         max=9999
         natural=22
      }
   }
}

abs
{
  enable=1
  max_velocity_ratio=1.09 
  min_velocity_ratio=1.08
  min_velocity=1
}
traction_control
{
  	enable=1
  	min_velocity=3
  	max_velocity_ratio=1.050
  	min_velocity_ratio=1.300

}