car
{
  name=PIAGGIO APE 50 Pickup
  year=2001
  credits=Converted and modified by JerryCBM
  comments=Original by Anos for GTA San Andreas
  id=PIAGGOAPE50Pickup
  version=063
  wheels=4
  skid
  {
    sample=audio_skid.wav
  }
  shadow
  {
    texture=txt_shadow.tga
    width=2.2
    length=3.7
    offset_z=0.0
  }

  cg
  {
    x=0
    y=-0.2
    z=0.2
}
}
body
{
  mass=485		; 700 total - 30 wheels - 70 engine + 75 driver + 10 fuel
  collision.restitution=0.25
  inertia
  {
    x=2100	
    y=2220		
    z=400	
  }
  model
  {
    file=APE50_Pickup.dof
    offset
    {
    x=0.0
    y=0.0
    z=0.0
    }
  }
  model_incar
  {
    file=APE50_Pickup.dof
     offset
    {
    x=0.0
    y=0.0
    z=0.0
    }
  }
	model_light_l
	{
          file=model_lights.dof
	}
	model_lightroad_l
	{
          file=model_lights.dof
	}
  model_braking_l
  {
    file=model_brakelights.dof
  }
  width=1.784
  height=1.0
  length=4.343
  manual_box=1
}
steer
{
  x=0 
  y=0.081
  z=0.705
  linearity=0.6
  radius=10
  xa=55
  lock=35
  model
  {
    file=model_steering.dof
  }
}
}
engine
{
  mass=0
  curve_torque=torque.crv
  max_torque=25	;54 nm @ 3000 rpm
			;44 nm @ 4200 rpm ~ 82%
			;19.4 kw @ 3800-4000 rpm / 26 hp
  stall_rpm=400
  start_rpm=900
  idle_rpm=600
  autoclutch_rpm=600
  max_rpm=4500
  starter=1
  starter_torque=30
  start_stalled=1
  torque_reaction=0.2
  shifting
  {
    automatic=0
    shift_up_rpm=4000
    shift_down_rpm=2000
    time_to_declutch=200
    time_in_neutral=50
    time_to_clutch=200
    time_to_declutch_down=100
    time_in_neutral_down=50
    time_to_clutch_down=100
  }
  inertia
  {
    engine=0.15
  }
  braking_coeff=1
}

clutch
{
  max_torque=200
}
gearbox
{
  gears=5
  gear0
  {
    ratio=-6.2
    inertia=0.19
  }
  gear1
  {
    ratio=4.08
    inertia=0.1
  }
  gear2
  {
    ratio=2.32
    inertia=0.09
  }
  gear3
  {
    ratio=1.52
    inertia=0.07
  }
  gear4
  {
    ratio=1.03
    inertia=0.03
  }  
}

handbrakes
{
  wheels=23
}

differential
{
  type=1
  ratio=4.33
  locking_coeff=0
  output0=0
  output1=1
}
aero
{
  body
  {
    center=0 0 0
    cx=0.40
    area=1.70
  }
  wings=1
  wing0
  {
    name=overall body lift
    span=1
    cord=1
    coeff_drag=0
    coeff_down=-7.3
    center=0 0 0.0
    angle=0
    angle_offset=1
  }
}
antirollbar
{
  count=1
  arb0
  {
    susp_left=0
    susp_right=1
    k=11100
  }
}
susp_front
{
  y=-0.30		;-0.30
  z=1.09
  powered=0
  restlen=0.285
  minlen=0.00
  maxlen=0.55
  k=26000
  bump_rate=5000
  rebound_rate=4500
  anti_pitch=0.15
  roll_center
  {
    x=0
    y=-0.49
    z=0
  }
}

susp0~susp_front
{
  x=0 
}

susp1~susp_front
{
  x=-0 
}
susp_rear
{
  y=-0.30	;-0.30
  z=-0.57
powered=1
  restlen=0.28
  minlen=-0.20
  maxlen=0.65
  k=24500
  bump_rate=4800
  rebound_rate=4500
  anti_pitch=0.15
  roll_center
  {
    x=0
    y=-0.49
    z=0
  }
}

susp2~susp_rear
{
  x=0.575
}

susp3~susp_rear
{
  x=-0.585
}
tire_model_front
{
   damping_predict_lat=0.450
   damping_predict_long=0.015
}
tire_model_rear
{
   damping_predict_lat=0.450
   damping_predict_long=0.015
}
pacejka
{
   	a0=1.4
   	a1=-29
   	a2=1100		;rear wheels grip
   	a3=5000		;higher value decrease tendency to oversteer
   	a4=11
   	a5=0.015
   	a6=-0.25
   	a7=1.0
   	a8=-0.03
   	a9=-0.001
   	a10=-0.15
   	a111=-8.0
   	a112=-0.29
   	a12=17.8
   	a13=-2.4

   	b0=1.5
   	b1=-58
   	b2=1200  	;front wheels grip
   	b3=23.3
   	b4=325
   	b5=0.08
   	b6=0.0
   	b7=0.05
   	b8=-0.024
   	b9=0.015
   	b10=0.25
   	b11=-86
   	b12=0.0

   	c0=2.3
   	c1=-3.8
   	c2=-3.14
   	c3=-1.0
   	c4=-7.2
   	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.04
   	c15=-1.029
   	c16=0.27
   	c17=-1.1

   	optimal_slipratio=0.10
   	optimal_slipangle=0.23
}

wheel_front
{
  steering=1
  lock=65
  mass=15
  inertia=0.7
  width=.155
  radius=0.268
  friction_road=1.7
  slices=13
  max_braking=200
  braking_factor=1
  tire_rate=230000
  pacejka~pacejka
  {
  }
}
wheel0~wheel_front
{

  toe=0
  camber=-1
  model
  {
    file=model_leftddd.dof
  
   }
  model_brake
  {
  ;file=.dof
  }
}





wheel1~wheel_front
{

  toe=0
  camber=-1
  model
  {
    file=right0.dof
   
   }
  model_brake
  {
  ;file=.dof
  }
}

wheel_rear
{
  steering=0
  mass=15
  inertia=0.7
  width=.155
  radius=0.268
  friction_road=1.7
  slices=13
  max_braking=405
  max_handbrake_torque=1000
  braking_factor=1
  tire_rate=210000
  pacejka~pacejka
}

wheel2~wheel_rear
{

  toe=0
  camber=-1
  model
  {
    file=left0.dof
   
   }
  model_brake
  {
  ;file=.dof
  }
}


wheel3~wheel_rear
{

  toe=0
  camber=-1
  model
  {
    file=right0.dof
   
   }
  model_brake
  {
  ;file=.dof
  }
}
camera0
{
  name=Driver
  fov=65
  model=1
  view=0
  wheels=0
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=0 
    y=-0.47
    z=0 
  }
  offset_to
  {
		x=0
		y=-0.8
		z=10
  }
  angle
  {
    x=0
    y=180
    z=0.000000
}
}
camera1
{
  name=Driver, left
  fov=60
  model=0
  wheels=0
  view=1
  offset
  {
    x=0 
    y=0.47
    z=0.25
  }
  offset_to
  {
    x=10.43
    y=0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.3
  }
  dst
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
}
camera2
{
  name=Driver, right
  fov=60
  model=0
  wheels=0
  view=1
  offset
  {
    x=0 
    y=0.41
    z=0.2
  }
  offset_to
  {
    x=-9.57
    y=0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.3
  }
  dst
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
}
camera3
{
  name=Driver, rear
  fov=-65
  model=1
  wheels=0
  view=0
  offset
  {
    x=0
    y=0.57
    z=0.452
  }
  offset_to
  {
    x=-1
    y=0.5
    z=-10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.3
  }
  dst
  {
    mass=0
    k=0
    damping=0
    maxdist=0
	
	}
}

camera4
{
 	name=Chase
  	fov=45
  	model=0
  	view=0
  	wheels=0
   	offset
   	{
      		x=0.00
      		y=1.50
      		z=-6.00
   	}
   	angle
   	{
      		x=15.50
      		y=180.00
      		z=0.00
   	}
   	follow
   	{
      		pitch=0
      		yaw=1
      		roll=0
   	}
 	src
 	{
  		mass=5
  		k=50
  		damping=100
  		maxdist=2
 	}
	dst
	{
		mass=1
		k=0
		damping=0
		maxdist=0
 	}
}

camera5
{
  	name=Hood Cam
  	fov=68
  	model=0
  	view=0
  	wheels=0
  	follow
  	{
    		pitch=1
    		yaw=1
    		roll=1
  	}
  	offset
  	{
    		x=0
    		y=-0.7
    		z=0.7
  	}
  	angle
  	{
    		x=9
    		y=180
    		z=0
  	}
}

camera6
{
  	name=Effect Cam 1
  	fov=68
  	model=0
  	view=0
  	wheels=0
  	offset
  	{
    		x=-0.67
    		y=-0.17
    		z=-3.94
  	}
  	angle
  	{
    		x=2.5
    		y=-150
    		z=-15
  	}
  	follow
  	{
    		pitch=0
    		yaw=0
    		roll=0
  	}
}

camera7
{
 	name=Effect Cam 2
 	fov=68
 	model=0
 	view=1
 	wheels=1
 	follow
 	{
  		pitch=0
  		yaw=0
  		roll=0
 	}
 	offset
 	{
  		x=0
  		y=-0.25
  		z=-5.5
 	}
 	angle
 	{
  		x=6
  		y=30
  		z=0
 	}
}


camera8
{
 	name=Effect Cam 4 - Wheel
 	fov=68
 	model=0
 	view=0
 	wheels=0
 	offset
 	{
  		x=1.15
  		y=0.2
  		z=0.35
 	}
 	angle
 	{
  		x=-2
  		y=-175
  		z=-7
 	}
 	follow
 	{
  		pitch=1
  		yaw=1
  		roll=1
 	}
}

camera9
{
 	name=Effect Cam 5
 	fov=25
 	model=0
 	view=0
 	wheels=1
 	follow
 	{
  		pitch=0
  		yaw=0
  		roll=0
 	}
 	offset
 	{
  		x=0
  		y=0.25
  		z=-9
 	}
 	angle
 	{
  		x=22
  		y=90
  	z=0
 	}
}
}
audio
{
  skid
  {
    sample=audio_skid.wav
  }
  horn
  {
    sample=horn.wav
  }
    acc_all
  {
    attack=500
    decay=500
  }
  accelerate_out
  {
    volume=2
    smp0~audio.acc_all
    {
      sample=Idle.wav
 min=0
      max=500
      natural=500

      attack=1500
      decay=1500
    }
    smp1~audio.acc_all
    {
      sample=engine.wav
      min=1060
      max=5400
      natural=2060
      volume=3
}
   
  }

;traction_control
;{
;	max_velocity_ratio=1.2
;	min_velocity_ratio=1.1
;	enable=0
;}
;
;abs
;{
;	max_velocity_ratio=1.25
;	min_velocity_ratio=1.15
;	enable=0
;}
;ai
;{
;understeer_correct=20
;oversteer_correct=20
;grip_factor=1.3
;}