car
{
  name=Smart Fortwo II 0.8 CDI(3d hatchback)
  year=2010(0-100:17,1 s.;vmax:134 km/h)
  credits=Original Autor [Ro]Wippy , Conversion PaulCAM; Engine variant by Fabikan75
  comments=Poj:799cc;Moc:54KM(40kW)przy 3800 obr./min.;Mmo:130Nm przy 2100-2600 obr./min.
  id=SMARTFORTWO2
  version=088
  wheels=4
  skid
  {
    sample=skid.wav
  }
  shadow
  {
    texture=shadow.tga
    width=1.7
    length=3.4
  }
  cg
  {
    x=0	
    y=-0.25
    z=0
  }
}
lights
{
  ; Projected lights
  light0
  {
    texture=light1.tga
    ; Field of view (vertical)
    fov=35
    ; Aspect (horizontal)
    aspect=4.5
    ; Distance to car
    z=0.2
    ; Pitching with respect to car (in degrees)
    pitch=0
  }
}
body
{
  mass=770		
  restitution_coeff=0.3
  inertia
  {
    x=2875
    y=2600
    z=625
  }
  model
  {
    file=smart.dof
  }
  model_incar
  {
    file=smart.dof
  }
  model_light_l
  {
    file=lumini.dof
  }
  model_braking_l
  {
    file=brake.dof
  }
 model_lightroad_l
 {
  file=lumini.dof
 }
  model_reverse_l
  {
    ; Reverse gear indicators
    file=.dof
  }
  model_reverse_r
  {
    file=.dof
}
  width=1.559
  height=1.542
  length=2.695
  manual_box=1
}
steer
{
  x=0.306
  y=0.2116
  z=0.225
  linearity=0.42
  lock=900
  model
  {
    file=volan.dof
  }
}
engine
{
  	mass=0
  	idle_rpm=750
  	max_rpm=5000
  	start_rpm=650
  	stall_rpm=300
  	autoclutch_rpm=1500
  	starter=1
  	starter_torque=50
  	start_stalled=0
  	curve_torque=torque.crv
  	max_torque=130				
  	torque_reaction=0.15
  	shifting
  	{
    		automatic=0
		fast=0
    		shift_up_rpm=3800
    		shift_down_rpm=1800
    		time_to_declutch=150
    		time_in_neutral=100
    		time_to_clutch=150
    		time_to_declutch_down=150
    		time_in_neutral_down=100
    		time_to_clutch_down=150
  	}
  	inertia
  	{
    		engine=0.29
  	}
  	braking_coeff=2.35
}
gearbox
{
	gears=6
  gear0
  {
    ratio=-3.33
    inertia=0.1
  }
  gear1
  {
    ratio=4
    inertia=0.08
  }
  gear2
  {
    ratio=2.5
    inertia=0.06
  }
  gear3
  {
    ratio=1.8
    inertia=0.04
  }
  gear4
  {
    ratio=1.35
    inertia=0.02
  }
  gear5
  {
    ratio=1.14
    inertia=0.01
  }
}
clutch
{
	max_torque=250
}
handbrakes
{
	wheels=23
}
differential
{
   type=1
   ratio=3.733
   inertia=1.7
   locking_coeff=90
   clutches=1
   output0=2
   output1=3
}
aero
{
  body
  {
    center=0 0 0
    cx=0.42
    area=1.7
  }
}
antirollbar
{
  count=2
  arb0
  {
    susp_left=0
    susp_right=0
    k=10000
  }
}
susp_front
{
  y=0.0
  z=0.95
  ;80mm bump travel, 120mm rebound travel -> 435mm
  restlen=0.538
  minlen=0.355
  maxlen=0.555
  ;1.55Hz, 295.7475kg
  k=38000
  ;0.7*CD=4032
  bump_rate=3750	
  rebound_rate=5994
  bump_function=0
  rebound_function=0
  anti_pitch=0.15
  ;20°/m ???
  camber_change_per_m=0.349
  ;-4° ???
  caster_offset=-0.022
  roll_center
  {
    x=0
    y=-0.642
    z=0
  }
}
susp_rear
{
  y=-0.035
  z=-1.134
  ;80mm bump travel, 120mm rebound travel -> 435mm
  restlen=0.521
  minlen=0.355
  maxlen=0.555
  ;1.7HZ, 286.7525kg, should be progressive springs...
  k=38000	
  ;0.7*CD=4288	
  bump_rate=3346	
  rebound_rate=8647	
  bump_function=0
  rebound_function=0
  anti_pitch=0.0
  camber_change_per_m=0.0
  roll_center
  {
    x=0
    y=-0.477
    z=0
  }
}
susp0~susp_front
  {
    x=0.685
    camber_change_steering=0.050
    toe_change_per_m=0.020
  }
susp1~susp_front
  {
    x=-0.685
    camber_change_steering=-0.050
    toe_change_per_m=-0.020
  }
susp2~susp_rear
  {
    x=0.685
    toe_change_per_m=0.0
  }
susp3~susp_rear
  {
    x=-0.685
    toe_change_per_m=0.0
  }
tire_model
{
   relaxation_length_lat=0.91
   relaxation_length_long=.091
   damping_speed=0.15
   damping_coefficient_lat=0.75
   damping_coefficient_long=1.5
}
pacejka
{
        a0=1.25
	a1=-35
	a2=1200
	a3=2000
	a4=8
	a5=0.015
	a6=-0.25
	a7=0.1
	a8=-0.03
	a9=-0.001
	a10=-0.15
	a111=-8.5
	a112=-0.29
	a12=17.8
	a13=-2.4
	b0=1.5
	b1=-70
	b2=1350
	b3=20
	b4=325
	b5=0.08
	b6=0
	b7=0.05
	b8=-0.025
	b9=0
	b10=0
	b11=0
	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.145
}
wheel_front
{
  y=-0.075
  z=0
  steering=1
  powered=0
  lock=52
  ackerman=1.1
  mass=30
  inertia=1.0
  radius=0.33
  rolling_coeff=0.05
  max_braking=1450
  braking_factor=1
  tire_rate=175000
  pacejka~pacejka
}
wheel_rear
{
  y=-0.075
  z=0.162
  steering=0
  lock=0
  powered=1
  mass=38
  inertia=1.0
  radius=0.33
  rolling_coeff=0.015
  max_braking=900
  max_handbrake_torque=5600
  tire_rate=160000
  pacejka~pacejka
  {
  }
}
wheel0~wheel_front
{
  x=0
  toe=-0.5
  model
  {
    file=dreapta.dof
  }
  model_brake
  {
    file=
  }
}
wheel1~wheel_front
{
  x=0
  toe=0.5
  model
  {
    file=stanga.dof
  }
  model_brake
  {
    file=
  }
}
wheel2~wheel_rear
{
  x=0
  toe=0
  camber=0
  model
  {
    file=dreapta.dof
  }
  model_brake
  {
    file=
  }
}
wheel3~wheel_rear
{
  x=0
  toe=0
  camber=0
  model
  {
    file=stanga.dof
  }
  model_brake
  {
    file=
  }
}
camera0
{
  name=Driver
  fov=70
  model=0
  wheels=0
  view=1
  offset
  {
    x=0.33
    y=0.50
    z=-0.11
  }
  offset_to
  {
    x=0.39
    y=-0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.3
  }
  dst
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
}
camera1
{
  name=Driver, left
  fov=60
  model=1
  wheels=0
  view=1
  offset
  {
    x=0.33
    y=0.50
    z=-0.11
  }
  offset_to
  {
    x=10.43
    y=0.5
    z=10
  }
  src
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
  dst
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
}
camera2
{
  name=Driver, right
  fov=60
  model=1
  wheels=0
  view=1
  offset
  {
    x=0.33
    y=0.50
    z=-0.11
  }
  offset_to
  {
    x=-9.57
    y=0.5
    z=10
  }
  src
  {
    mass=0
    k=0
    damping=0
    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.1
    y=0.50
    z=-0.03
  }
  offset_to
  {
    x=-1
    y=0.5
    z=-10
  }
  src
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
  dst
  {
    mass=0
    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=-17
  }
  angle
  {
    x=10
    y=50
    z=0
  }
}
camera9
{
	name=Bonnet
	fov=60
	model=0
	wheels=0
	view=0
	offset
	{
		x=0.356
    		y=-0.75
    		z=0.55
	}
	follow
	{
		pitch=1
		yaw=1
		roll=1
	}
	angle
	{
		x=5
		y=180
		z=0
	}
}
audio
{
  skid
  {
    ; New style (multiple samples mixed)
    ; Master volume for this set
    volume=1
    ; Acceleration
	; Outside of the car
    smp0
    {
      volume=0.4
      sample=audio/skid_01.wav
      min=0.3
      max=0.3
      attack=0.2
      decay=0.4
    }
    smp1
    {
      volume=0.6
      sample=audio/skid_02.wav
      min=0.6
      max=20
      attack=0.4
      decay=0
    }
  }
  acc_all
  {
    attack=1000
    decay=1000
	;pitch_scale=3
	; pitch = pitch_scale * pitch_input + pitch_offset
	;pitch_offset=50
  }
  accelerate_out
  {
    volume=1
    smp0~audio.acc_all
    {
      sample=idle.wav
      min=600
      max=1000
      decay=1000
      natural=750
    }
    smp1~audio.acc_all
    {
      sample=low.wav
      min=900
      max=6000
      attack=1000
      natural=1500
    }
    smp2~audio.acc_all
    {
      sample=mid.wav
      min=900
      max=6000
      attack=4000
      natural=1500
    }
    smp3~audio.acc_turbo
    {
    sample=turbo.wav
    min=1500
    max=7000
    natural=6000
    attack=1500
    decay=1500
    }
  }
  decelerate_out
  {
     volume=1
    smp0~audio.acc_all
    {
      sample=idle.wav
      min=600
      max=1000
      decay=1000
      natural=750
    }
    smp1~audio.acc_all
    {
      sample=low.wav
      min=900
      max=6000
      attack=1000
      natural=1500
    }
    smp2~audio.acc_all
    {
      sample=mid.wav
      min=900
      max=6000
      attack=4000
      natural=1500
    }
    smp3~audio.acc_turbo
    {
    sample=turbo.wav
    min=1500
    max=7000
    natural=6000
    attack=1500
    decay=1500
    }
  }
  wind
  {
    volume=0.80
    pitch_scale=1
    pitch_offset=50
    smp0
    {
      sample=audio/wind1.wav
      min=25
      max=26
      attack=33
      decay=33
      natural=80
    }
    smp1
    {
      sample=audio/wind2.wav
      min=50
      max=51
      attack=33
      decay=33
      natural=80
    }
    smp2
    {
      sample=audio/wind3.wav
      min=75
      max=76
      attack=33
      decay=33
      natural=80
    }
  }
  horn
  {
	sample=audio/horn.wav
  }
}
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
}