car
{
  name=Mercedes-Benz W212 E63 AMG
  year=2014
  credits=Converted by Priban from GTA San Andreas.
  comments=V8/5461cm3. 550cv/5750rpm. 720Nm/1750-5000rpm
  id=e63
  version=0655
  wheels=4
 
 shadow
  {
    texture=shadow.tga
    width=2.5
    length=5.2
    offset_z=-0.1
  }
 cg
 {
  x=0
  y=-0.14
  z=0.212
 }
ff_factor=0.42
}
graphics 
{
  shadow 
  {
    texture=shadow.tga
    model
    {
      file=w212.dof
    }
  }

	generic
	{
		model0
		{
		file=
		{
   		  x=0
  		  y=0
  		  z=0
  		}		
		}
		model1
		{
		file=
		{
   		  x=0
  		  y=0
  		  z=0
  		}
		}
		model2
		{
		file=
		{
   		  x=0
  		  y=0
  		  z=0
  		}
		}
		model3
		{
		file=
		}
    		model4
    		{
      		file=
    		}
    		model5
    		{
      		file=
    		}
    		model6
    		{
      		file=
    		}
    		model7
    		{
      		file=
    		}
    		model8
    		{
      		file=
    		}
    		model9
    		{
      		file=
    		}
    		model10
    		{
      		file=
    		}
    		model11
    		{
      		file=
    		}
    		model12
    		{
      		file=
    		}
    		model13
    		{
      		file=
    		}
    		model14
    		{
      		;file=
    		}
    		model15
    		{
      		;file=
    		}
    		model16
    		{
      		;file=
    		}

	}
}
;flarers:------------------------------------------------

flares
{
  ; Front lights
  flare0
  {
    pos=-0.719 0.55 2.08
    color=1.0 0.8 1.8
	normal=0.05 0 1
	z_offset=-2500
	size_factor=0.85
	intensity=1
        hor_scale=1.8
  }
  flare1
  {
    pos=0.715 0.55 2.08
    color=1.0 0.8 1.8
	normal=0.05 0 1
	z_offset=-2500
	size_factor=0.85
	intensity=0.7
        hor_scale=1.8
  }
  flare2
  {
    pos=-0.719 0.55 2.08
    color=1.0 0.8 1.8
	normal=0.05 0 1
	z_offset=-2500
	size_factor=0.85
	intensity=0.7
        hor_scale=1.8
  }
  flare3
  {
    pos=0.715 0.55 2.08
    color=1.0 0.8 1.8
	normal=0.05 0 1
	z_offset=-2500
	size_factor=0.85
	intensity=0.7
        hor_scale=1.8
  }
}

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
  }
  OLD_light0
  {
    texture=light.tga
    ; Field of view (vertical)
    fov=25.0
    ; Aspect (horizontal)
    aspect=4.0
    ; Distance to car
    z=2
    ; Pitching with respect to car (in degrees)
    pitch=10
  }
}

;Body------------------------------------------------

body
{
  mass=1770 
  inertia
  {
    x=2970
    y=3200
    z=620
  }
  model
  {
    file=w212.dof
  }
  model_incar
  {
    file=w212.dof
  }
  model_light_l
  {
    file=
  }
  model_braking_l
  {
    file=brake.dof
  }
  model_lightroad_l
  {
  file=svetla.dof
  }
  width=1.79
  height=1.2
  length=4.92
  manual_box=0
}

;Steer------------------------------------------------

steer
{
  x=0.36
  y=0.81
  z=0.3
  radius=0 ;12
  xa=22
  lock=740
  linearity=0.2
  model
  {
    file=volant.dof
  }
}

;Engine------------------------------------------------

engine
{
  mass=0
  idle_rpm=800
  max_rpm=8000		
  max_torque=0.88
    sample=acc-320.wav
  sample_rpm=4800
  curve_torque=torque.crv
  autoclutch_rpm=1025
  starter=1
  starter_torque=65
  start_stalled=1
  stall_rpm=550
  start_rpm=950
  reaction=0
  shifting
  {
    automatic=1
    shift_up_rpm=6300
    shift_down_rpm=3300
    time_to_declutch=350
    time_to_clutch=50
   }
   inertia
   {
      engine=0.26
      final_drive=0.1
   }
   braking_coeff=2.85
   sample=engine2.wav
   sample_rpm=10000
   rolling_friction_coeff=0
}

;Gearbox------------------------------------------------

{
   gears=8
   gear0
   {
      ratio=-3.416
      inertia=0.2
   }
   gear1
   {
      ratio=4.377
      inertia=0.1
   }
   gear2
   {
      ratio=2.859
      inertia=0.08
   }
   gear3
   {
      ratio=1.921
      inertia=0.06
   }
   gear4
   {
      ratio=1.368
      inertia=0.04
   }
   gear5
   {
      ratio=1.0
      inertia=0.02
   }
   gear6
   {
      ratio=0.82
      inertia=0.02
   }
   gear7
   {
      ratio=0.728
      inertia=0.01
   }
   end_ratio=3.62
}

;Clutch:------------------------------------------------

clutch
{
  max_torque=700
}

traction_control
{
  max_velocity_ratio=1.2
  min_velocity_ratio=1
  enable=0
}
abs
{
  max_velocity_ratio=2.2
  min_velocity_ratio=1.15
  enable=1
}


;handbrakes------------------------------------------------
handbrakes
{
  wheels=23
}

;Differential------------------------------------------------

differential
{
   type=1
   ratio=2.65
   inertia=0.05
   locking_coeff=20
   locking_coefficient=35
}

;Aero------------------------------------------------
aero
{
  body
  {
    center=0 0 0
    cx=0.32
    area=1.75
  }
  wings=2
  wing0
  {
    name=rearspoiler
    span=1
    cord=1
    coeff_drag=2.8
    coeff_down=28
    center=0 0.15 -1.25
    angle=1
    angle_offset=0
  }
}

antirollbar
{
 count=2
 arb0
 {
  susp_left=0
  susp_right=1
  k=33800
 }
 arb1
 {
  susp_left=2
  susp_right=3
  k=31300
 }
}

;Suspension front----------------------------------------------------

susp_front   
{
  y=0.46
  z=1.58
 restlen=0.332
 minlen=0.18
 maxlen=0.73
 k=57000
 bump_rate=6500
 rebound_rate=6500
 bump_function=0
 rebound_function=0
 bump_max=1300
 anti_pitch=0.09
 camber_change_per_m=0
  roll_center
 {
  x=0
  y=-0.59
  z=0
 }
}

susp0~susp_front
  {
    x=0.76
    toe_change_per_m=0.029		
    camber_change_steering=0.1062	
    caster_offset=-0.017		
  }

susp1~susp_front
  {
    x=-0.76
    toe_change_per_m=-0.029  	
    camber_change_steering=-0.1062	
    caster_offset=-0.017		
  }

;Suspension rear---------------------------------------------------

susp_rear  
{
  y=0.44
  z=-1.27
  restlen=0.332
  minlen=0.18
  maxlen=0.73
  k=54000
  bump_rate=6100
  rebound_rate=6350
  bump_function=0
  bump_max=1800
  rebound_function=0
  anti_pitch=0.14
  camber_change_per_m=0.45	
  roll_center
 {
  x=0
  y=-0.56
  z=0
 }
}
susp2~susp_rear
  {
    x=0.76
    toe_change_per_m=0.019		
  }
susp3~susp_rear
  {
    x=-0.76
    toe_change_per_m=-0.019		
  }

;----------------------------------------------------------------------

tire_model_front
{
  damping_predict_lat=0
  damping_predict_long=0

}
tire_model_rear
{
  relaxation_length_lat=0
  relaxation_length_long=0
}
pacejka
{
    a0=1.2
    a1=-25
    a2=1200
    a3=2000
    a4=9
    a5=0.015
    a6=-0.25
    a7=0
    a8=-0.03
    a9=-0.001
    a10=-0.15
    a111=-8.5
    a112=-0.29
    a12=17.8
    a13=-2.4
    b0=1.3
    b1=-40
    b2=1250 ;1200
    b3=20
    b4=325
    b5=0.08
    b6=0
    b7=0.05
    b8=-0.025
    b9=0.015
    b10=0.4
    b11=-50
    b12=0
    c0=2.2
    c1=-4
    c2=-3
    c3=-1
    c4=-7
    c5=0.0
    c6=0.0
    c7=0.044
    c8=-0.58
    c9=0.18
    c10=0.043
    c11=0.048
    c12=-0.0035
    c13=-0.18
    c14=0.14
    c15=-1.029
    c16=0.27
    c17=-1.1

    optimal_slipratio=0.12
    optimal_slipangle=0.173
}

;Wheel front----------------------------------------------------

wheel_front
{
  y=0
  z=0
  steering=1
  powered=1
  lock=55
  ackerman=1.16
  mass=28
  inertia=1.6
  radius=0.36 ;0.36
  rolling_coeff=0.017
  friction_road=1
  max_braking=4000
  braking_factor=0.85
  tire_rate=300000
  camber=-0.5
  pacejka~pacejka
  {
  }
}

wheel0~wheel_front
{
  x=0
  toe=-0.1
  model
  {
    file=lf.dof
  }
  model_brake
  {
    file=caliper_left.dof
    offset
		{
		x=0.06
		}
  }

}

wheel1~wheel_front
{
  x=0
  toe=0.1
  model
  {
    file=rf.dof
  }
  model_brake
  {
    file=caliper_right.dof
	offset
		{
		x=-0.06
		}
  }
}

;Wheel rear---------------------------------------

wheel_rear
{
  y=0.02
  z=0
  camber=-0.4
  steering=0
  powered=1
  mass=30
  inertia=1.8
  radius=0.36 ;default=0.36
  rolling_coeff=0.017
  friction_road=1
  width=0.255
  max_braking=3100
  braking_factor=0.85
  max_handbrake_torque=5500
  tire_rate=300000
  pacejka~pacejka
  {
  a2=1500
  a3=2100
  a4=9.5
  b2=1550
  b4=350
  optimal_slipratio=0.1
  optimal_slipangle=0.171
  }
}

wheel2~wheel_rear
{
  x=0
  toe=-0.05
  model
  {
    file=lf.dof
  }
  model_brake
  {
    file=caliper_left1.dof
     offset
   {
     x=0.06
   }
  }
}

wheel3~wheel_rear
{
  x=0
  toe=0.05
  model
  {
    file=rf.dof
  }
  model_brake
  {
    file=caliper_right1.dof
    offset
   {
    x=-0.06
   }
  }
}

;Camera------------------------------------------

camera0
{
  name=Driver
  fov=76
  model=1
  wheels=0
  view=1
  offset
  {
    x=0.36
    y=1.05
    z=0.0
  }
  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=74
  model=1
  wheels=0
  view=1
  offset
  {
    x=0.35
    y=1.05
    z=-0.1
  }
  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=80
  model=1
  wheels=0
  view=1
  offset
  {
    x=0.35
    y=1.05
    z=-0.1
  }
  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
{
offset
  {
    x=-0.044
    y=-1.05
    z=-1.0
  }
  angle
  {
    x=0
    y=200
    z=0
  }
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
   name=back seat
   ;cam4
   fov=77
   model=1
   wheels=0
   view=1
}
  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=-7
  }
  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=-8
  }
  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.4
    y=-0.5
    z=-7
  }
  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.0
    		y=-1.2
    		z=0.8
	}
	follow
	{
		pitch=1
		yaw=1
		roll=1
	}
	angle
	{
		x=5
		y=180
		z=0
	}
}

;audio-----------------------------------------------

audio
{
    starter
    {
       volume=0.4
       sample=starter.wav
    }
   skid
   {
      volume=1
      sample=skid.wav
      sample2=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=300
         max=1100
         natural=750
         decay=300
      }
      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=4000
         decay=1000
         attack=1000
      }
      smp4
      {
         sample=6000 - ACC - OUT.wav
         volume=.6
         min=5000
         max=7000
         natural=6000
         attack=1000
         decay=10
      }
      smp5
      {
         sample=LIMITER - OUT.wav
         volume=.5
         min=7000
         max=20000
         natural=7500
         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
      }
   }
}
