car
{
  name=Peugeot 405 Mi16x4
  year=1994
  credits=Converted and modified by JerryCBM
  comments=Original by Facu2009 Gta Vice City
  wheels=4
  id=peugeot405mi16x4
  version=088b
  skid
  {
    sample=skid.wav
    volume=8
  }
  shadow
  {
    texture=shadow.tga
    width=2.5
    length=5.5
    offset_z=-0.1
  }
 cg
 {
  x=0
  y=-0.20
  z=0.352
 }
}
body
{
  mass=1385
  inertia
  {
    x=2512
    y=2885
    z=488
  }
  model
  {
    file=405.dof
  }
  model_incar
  {
    file=405.dof
  }
  model_light_l
  {
    file=model_lights.dof
  }
  model_braking_l
  {
    file=model_brakelights.dof
  }
  model_lightroad_l
  {
    file=model_lights.dof
  }
  width=1.96
  height=0.75
  length=4.46
  manual_box=1
}
steer
{
  x=0.365
  y=0.17
  z=0.77
  radius=1
  xa=28
  lock=1080
  linearity=0.9
  model
  {
      file=steer.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
  }
  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
  }
}
flares
{
  ; Front lights
  flare0
  {
    pos=-0.683 0.018 2.5
    color=1.0 0.8 1.6
	normal=0.05 0 1
	z_offset=-2500
	size_factor=0.85
	intensity=1.0
        hor_scale=1.8
  }
  flare1
  {
    pos=0.683 0.018 2.5
    color=1.0 0.8 1.6
	normal=0.05 0 1
	z_offset=-2500
	size_factor=0.85
	intensity=1.0
        hor_scale=1.8
  }
  flare2
  {
    pos=-0.683 0.018 2.5
    color=1.0 0.8 1.6
	normal=0.05 0 1
	z_offset=-2500
	size_factor=0.85
	intensity=1.0
        hor_scale=1.8
  }
  flare3
  {
    pos=0.683 0.018 2.5
    color=1.0 0.8 1.6
	normal=0.05 0 1
	z_offset=-2500
	size_factor=0.85
	intensity=1.0
        hor_scale=1.8
  }
  flare4
  {
    pos=-0.75 -0.3 2.4
    color=1.0 0.8 1.6
	normal=0.05 0 1
	z_offset=-2500
	size_factor=0.7
	intensity=0.9
        hor_scale=1.6
  }
  flare5
  {
    pos=0.75 -0.3 2.4
    color=1.0 0.8 1.6
	normal=0.05 0 1
	z_offset=-2500
	size_factor=0.7
	intensity=0.9
        hor_scale=1.6
  }
  flare6
  {
    pos=-0.75 -0.3 2.4
    color=1.0 0.8 1.6
	normal=0.05 0 1
	z_offset=-2500
	size_factor=0.7
	intensity=0.9
        hor_scale=1.6
  }
  flare7
  {
    pos=0.75 -0.3 2.4
    color=1.0 0.8 1.6
	normal=0.05 0 1
	z_offset=-2500
	size_factor=0.7
	intensity=0.9
        hor_scale=1.6
  }
}
engine
{
  x=0
  y=.2
  z=-1.0
  size=0
  mass=200
  idle_rpm=825
  autoclutch_rpm=2500
  max_rpm=6900
  curve_torque=torquem16.crv
  max_torque=1
  torque_reaction=0.0
  starter=1
  starter_torque=150
  start_stalled=0
  stall_rpm=600
  start_rpm=900
  shifting
  {
    automatic=0
    fast=1
    shift_up_rpm=4750
    shift_down_rpm=1400
    time_to_declutch=200
    time_to_clutch=200
    time_in_neutral=200
    time_to_declutch_down=200
    time_in_neutral_down=200
    time_to_clutch_down=200
  }
  inertia
  {
    engine=0.65
    final_drive=0.25
  }
  braking_coeff=7.5
  friction=0
  sample=engine.wav
  sample_rpm=5200
}
clutch
{
  max_torque=450
}
gearbox
{
   gears=6
   gear0
   {
      inertia=0.9
      ratio=-4.8
   }
   gear1
   {
      inertia=0.10
      engine_map=1.0
      ratio=5.14
   }
   gear2
   {
      inertia=0.08
      engine_map=1.0
      ratio=2.67
   }
   gear3
   {
      inertia=0.06
      engine_map=1.0
      ratio=1.80
   }
   gear4
   {
      inertia=0.04
      engine_map=1.0
      ratio=1.4
   }
   gear5
   {
      inertia=0.02
      engine_map=1.0
      ratio=1
   }
}

differential
{
	type=1
	ratio=3.57
	inertia=0.1
	locking_coeff=45
}
aero
{
	body
	{
		center=0 0 0
		cx=0.24
		area=2.3
	}
	wings=1
	wing0
	{
		name=Rear spoiler
		span=1
		cord=1
		coeff_drag=0
		coeff_down=10
		center=0 0 -1
		angle=0
		angle_offset=10
	}
}
antirollbar
{
	count=2
	arb0
	{
		susp_left=0
		susp_right=1
		k=12500
	}
	arb1
	{
		susp_left=2
		susp_right=3
		k=12250
	}
}
susp_front
{
  y=-0.02
  z=1.66
  restlen=0.43
  minlen=0.1
  maxlen=0.45
  k=30000
  bump_rate=5500
  rebound_rate=5500
  anti_pitch=0.4
  roll_center
  {
    x=0
    y=-0.5
    z=0
  }
}
susp_rear
{
  y=-0.02
  z=-1.39
  restlen=0.4
  minlen=0.1
  maxlen=0.45
  k=28500
  bump_rate=5000
  rebound_rate=4500
  anti_pitch=0.1
  roll_center
  {
    x=0
    y=-0.55
    z=0
  }
}
susp0~susp_front
{
  x=0.79
}
susp1~susp_front
{
  x=-0.79
}
susp2~susp_rear
{
  x=0.79
}
susp3~susp_rear
{
  x=-0.79
}
tire_model_front
{
  damping_predict_lat=1.0
  damping_predict_long=1.0
}
tire_model_rear
{
  damping_predict_lat=1.0
  damping_predict_long=1.0
}
pacejka
{
    	a0=1.25
    	a1=-35
    	a2=1300
    	a3=2000
    	a4=8
    	a5=0.015
    	a6=-0.25
    	a7=0.1
    	a8=-0.03
    	a9=-0.001
    	a10=-0.15
    	a111=-4.3
    	a112=-0.29
    	a12=17.8
    	a13=-2.4

    	b0=1.5
    	b1=-70
    	b2=1000 
    	b3=21
    	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.11
    	optimal_slipangle=0.157
}
wheel_front
{
  y=0
  z=0
  max_braking=4800
  braking_factor=1
  steering=1
  powered=1
	power_gearing=0.53	
	mass=35
	inertia=1.35
  lock=45 ;65
  ackerman=1.1
  mass=12.5
  inertia=0.94
  radius=0.40
  width=0.235		
  slices=20
  friction_road=1.7
  tire_rate=290000
  pacejka~pacejka
  {
  }
}
wheel_rear
{
  y=0
  z=0.10
	steering=0
	powered=0
	power_gearing=0 	
	mass=35
	inertia=1.35
	radius=0.39
        width=0.195		
	rolling_coeff=0.0180
	max_braking=4400
	braking_factor=1
	max_handbrake_torque=3400
	tire_rate=230000
	pacejka~pacejka
	{
		optimal_slipratio=0.11
		optimal_slipangle=0.155
	}
}
wheel0~wheel_front
{
  x=0
  toe=-0.1
  model
  {
    file=lf.dof
  }
  model_brake
  {
    file=caliper_left.dof
  }
}
wheel1~wheel_front
{
  x=-0
  toe=0.1
  model
  {
    file=rf.dof
  }
  model_brake
  {
    file=caliper_right.dof
  }
}
wheel2~wheel_rear
{
  x=0
  toe=0.1
  model
  {
    file=lf.dof
  }
  model_brake
  {
    file=caliper_left.dof
  }
}
wheel3~wheel_rear
{
  x=-0
  toe=-0.1
  model
  {
    file=rf.dof
  }
  model_brake
  {
    file=caliper_right.dof
  }
}
camera0
{
  name=Driver
  fov=65
  model=1
  view=0
  wheels=0
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=0.334
    y=-0.53
    z=-0.07
  }
  offset_to
  {
    x=0.37
    y=-0.2
    z=10
  }
  angle
  {
    x=0
    y=180
    z=0.000000
  }
}
camera1
{
  name=Driver, left
  fov=65
  model=1
  wheels=0
  view=1
   offset
  {
    x=0.334
    y=0.5
    z=0.15
  }
  offset_to
  {
    x=10
    y=0.5
    z=15
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera2
{
  name=Driver, right
  fov=55
  model=1
  wheels=0
  view=1
  offset
  {
    x=0.334
    y=0.5
    z=0.15
  }
  offset_to
  {
    x=-10
    y=0.5
    z=15
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera3
{
  name=Driver, rear
  fov=-65
  model=1
  wheels=0
  view=0
  offset
  {
    x=0.19
    y=0.65
    z=-0.31
  }
  offset_to
  {
    x=-1
    y=0.5
    z=-10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.1
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera4
{
  name=Chase
  fov=60
  model=0
  view=0
  wheels=0
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  offset
  {
    x=0
    y=-0.8
    z=-6
  }
  angle
  {
    x=10
    y=180
    z=0
  }
}
camera5
{
  name=Exterior
  fov=60
  model=0
  view=0
  wheels=0
  follow
  {
    pitch=0
    yaw=0
    roll=0
  }
  offset
  {
    x=0
    y=-0.5
    z=-5
  }
  angle
  {
    x=10
    y=130
    z=0
  }
}
camera6
{
  name=Rear chase
  fov=60
  model=0
  view=0
  wheels=0
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  offset
  {
    x=0
    y=-0.8
    z=-6
  }
  angle
  {
    x=10
    y=0
    z=0
  }
}
camera7
{
  name=FrontWheel
  fov=60
  model=0
  view=0
  wheels=0
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=1.4
    y=0.06
    z=-0.5
  }
  angle
  {
    x=-2.25
    y=-161
    z=3.3
  }
}
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=Hood
  fov=60
  model=0
  wheels=0
  view=0
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=0
    y=-1.0
    z=0.8
  }
  angle
  {
    x=5
    y=180
    z=0
  }
}

audio
{
  skid
  {
    sample=skid.wav
    volume=8
  }
  horn
  {
    sample=horn.wav
  }
  acc_all
  {
    attack=1000
    decay=1000
  }
  accelerate_out
  {
    volume=1
    smp0~audio.acc_all
    {
      sample=2000.wav
      min=0
      max=1250
      attack=1000
      decay=1000
      natural=1100
    }
    smp1~audio.acc_all
    {
      sample=6000.wav
      min=1500
      max=9001
      volume=0.65
      natural=5500
    }
    smp2~audio.acc_all
    {
      sample=7000decc.wav
      min=1500
      max=9001
      natural=5800
    }
  }
  decelerate_out
  {
    volume=0.9
    smp0~audio.acc_all
    {
      sample=2000.wav
      min=0
      max=1250
      attack=1000
      decay=1000
      natural=1100
    }
    smp1~audio.acc_all
    {
      sample=6000.wav
      min=1500
      max=9001
      volume=0.65
      natural=5550
    }
    smp2~audio.acc_all
    {
      sample=7000decc.wav
      min=1500
      max=9001
      natural=6000
    }
}
  accelerate_in
  {
    volume=1
    smp0~audio.acc_all
    {
      sample=2000.wav
      min=0
      max=1250
      attack=1000
      decay=1000
      natural=1100
    }
    smp1~audio.acc_all
    {
      sample=6000.wav
      min=1500
      max=9001
      volume=0.65
      natural=5500
    }
    smp2~audio.acc_all
    {
      sample=7000decc.wav
      min=1500
      max=9001
      natural=5800
    }
  }
  decelerate_in
  {
    volume=0.9
    smp0~audio.acc_all
    {
      sample=2000.wav
      min=0
      max=1250
      attack=1000
      decay=1000
      natural=1100
    }
    smp1~audio.acc_all
    {
      sample=6000.wav
      min=1500
      max=9001
      volume=0.65
      natural=5550
    }
    smp2~audio.acc_all
    {
      sample=7000decc.wav
      min=1500
      max=9001
      natural=6000
    }
}
  wind
  {
    volume=0.8
    pitch_scale=0
    pitch_offset=50
    smp0
    {
      sample=wind1.wav
      min=25
      max=26
      attack=33
      decay=33
      natural=80
    }
    smp1
    {
      sample=wind2.wav
      min=50
      max=51
      attack=33
      decay=33
      natural=80
    }
    smp2
    {
      sample=wind3.wav
      min=75
      max=76
      attack=33
      decay=33
      natural=80
    }
  }
}
abs
{
  enable=1
  max_velocity_ratio=1.09 
  min_velocity_ratio=1.08
  min_velocity=1
}
traction_control
{
  max_velocity_ratio=1.1
  min_velocity_ratio=1.2
  enable=1
}

}