car
{
  name=Postman Pat's van
  year=Circa 1980's
  id=Pat1
  credits=By TiberiuS, Version 1.0
  comments=36 horses, one postman, lots of plastic. Mmmmm...plastic
  version=053b50
  wheels=4
  ff_factor=0.30
  skid
  {
    sample=sounds/skid.wav
  }
  shadow
  {
    texture=shdw.tga
    width=1.6
    length=2.1
    ;offset_x=-0.06
    offset_z=-0.1
  }
  ; CoG from nullpoint
  cg
  {
    x=0
    y=-0.32
    ;-0.26
    ;-0.045
    z=0.08
    -0.16
    -0.0347
}
}
graphics
{
intensity=0.3
shadow
{
model
{
file=body.dof
use_shaders=0
}
}
}
ai
{
  understeer_correct=100
  oversteer_correct=200
  grip_factor=1.0
}
body
{
  ; Weight of the car's body (kg)
  ; This excludes engine, wheels, driver and fuel
  mass=620 
  ; Inertia values; X/Y/Z=pitch, yaw (heading), roll
  inertia
  {
    x=2360
    y=3380
    z=525
  }
  ; Collisions; amount of bouncing back
  restitution_coeff=0.2
  ; Collision box
  width=1.4
  height=1.1
  length=2.8
  manual_box=1
  cockpit_start=1
  cockpit_length=1
  model
  {
    file=body.dof
  }
  model_incar
  {
  file=body.dof
  }
  model_light_l
  {
  ;file=headlamps.dof
  }
  model_braking_l
  {
  file=brakelamps.dof
  }
  }
steer
{
  ; Position (stub gfx)
  x=-0.26
  ;-0.37
  y=-0.04
  z=0.18
  -0.47
  ;0.45
  ; Graphical representation
  radius=08
  ; Rotation towards the driver
  xa=35
  ; Max angle of rotation (angle = -lock/2..lock/2)
  lock=930
  ;930*, 260 orig
  model
  {
    file=swheel.dof
  }
}
engine
{
  mass=95
  max_rpm=6175
  idle_rpm=875
  start_rpm=1120
  ;750
  stall_rpm=410
  starter=1
  starter_torque=85
  ;40
  start_stalled=0
  autoclutch_rpm=8200
  curve_torque=torque.crv
  max_torque=60 
  reaction=0
  shifting
  {
    automatic=1
    shift_up_rpm=6000
    shift_down_rpm=3400
    time_to_declutch=220
    ;100	
    time_to_clutch=260
    ;220
    time_in_neutral=30
    ;230
  }
  ; Inertia of engine parts
  inertia
  {
    ; Rotational inertia of engine parts (kg*m^2)
    engine=0.18
  ;0.28, 0.4 sounds more realistic 
  }
  braking_coeff=0.6
  torque_reaction=0
  }
traction_control
{
  enable=0
  ; Allowed front/rear wheel speed ratio (1.1=10% difference allowed)
  max_velocity_ratio=1.1
  ; When to turn TC off
  min_velocity_ratio=1.0
  min_velocity=0
}
abs
{
  ; Anti-lock braking system
  enable=1
  ; Allowed front/rear wheel speed ratio
  max_velocity_ratio=1.1
  ; When to turn TC off
  min_velocity_ratio=1.0
  min_velocity=1
}
}
gearbox
{
  gears=4
  gear0
  {
    ratio=-2.50
    inertia=0.9
  }
  gear1
  {
    ratio=2.50
    inertia=0.09
  }
  gear2
  {
    ratio=1.50
    inertia=0.07
  }
  gear3
  {
    ratio=1.00
    inertia=0.04
   }
}
clutch
{
max_torque=100
}
handbrakes
{
  wheels=23
}
differential
{
  ; 0=free 1=viscous 2=salisbury
  type=1
  ratio=3.64
  interia=0.13 
  locking_coefficient=40
  ;power_angle=60
  ;coast_angle=40
  ;clutches=2
  ;clutch_factor=1.0
  output0=0
  output1=1
}
aero
{
  body
  {
    ; Application center relative to the CG
    center=0 -0.1 0
    ; Longitudinal drag coefficient (Cx, X-axis is SAE's car longitudinal)
    cx=0.330
    ; Frontal area in m^2
    area=2.2
  }
  wings=2
  wing0
  {
    name=FrontDam
    span=1.5
    cord=0.15
    coeff_drag=0.08
    coeff_down=-0.4
    center=0 0.2 2.1
    ; Angle in degrees
    angle=30
    ; Angle offset; a zero degree wing still gives downforce often
    angle_offset=0
  }
  wing1
  {
    name=RearSpolier
    span=1.4
    cord=0.3
    coeff_drag=0.04
    coeff_down=-0.4
    ;-0.5
    center=0 1.1 -2.1
    angle=20
    angle_offset=0
  }
}
antirollbar
{
  count=2
  arb0
  {
    susp_left=0
    susp_right=1
    k=8800
    ;11410
  }
  arb1
  {
    susp_left=2
    susp_right=3
     k=9200
     ;11320
}
}
susp_front
{
  y=-0.01
  z=0.59
  restlen=0.63
  minlen=0.48
  ;0.40
  maxlen=0.84
  ;0.75
  rebound_rate=8233
  bump_rate=8260
  anti_pitch=0.6
  roll_center
  {
    x=0
    y=-0.86
    z=0
  }
  k=28800
  ;28800 R/C -0.42
  ;29400
  ;27600
}
susp_rear
{
  y=-0.01
  z=-0.505
  restlen=0.63
  minlen=0.48
  ;0.40
  maxlen=0.84
  ;0.75
  rebound_rate=8233
  bump_rate=8260
  anti_pitch=0.6
  roll_center
  {
    x=0
    y=-0.86
    ;-0.40
    z=0
  }
  k=29800
  ;29800 R/C -0.40
  ;30600
  ;29800
}
susp0~susp_front
{
  x=0.42
}
susp1~susp_front
{
  x=-0.42
}
susp2~susp_rear
{
  x=0.42
}
susp3~susp_rear
{
  x=-0.42
}
tire_model_front
{
  ; SAE 950311 low-speed tire implementation
  ; Relaxation length laterally (in m)
  relaxation_length_lat=0.91
  ; Relaxation length longitudinally (in m)
  relaxation_length_long=.091
  ; Prediction damping
  damping_predict_lat=0.503
  ;damping_predict_lat=0.263
  damping_predict_long=0.06
}
tire_model_rear
{
  ; Relaxation length laterally (in m)
  relaxation_length_lat=0.91
  ; Relaxation length longitudinally (in m)
  relaxation_length_long=.091
  ; Prediction damping
  damping_predict_lat=0.503
  ;damping_predict_lat=0.263
  damping_predict_long=0.06
}
pacejka
{
  a0=1.45
   a1=-28
   a2=1280
   ;1080
   ;1400
   ;1350
   ;1280
   ;1600
   ;a2=1100 X axis
   a3=1700
   a4=11
   a5=0.015
   a6=-0.25
   a7=1.0
   a8=-0.03
   a9=-0.001
   a10=-0.15
   a111=-8.5
   a112=-0.29
   a12=17.8
   a13=-2.4

   b0=1.55
   b1=-56
   b2=1280
   ;b2=1350 z Axis
   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.05
   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.182
   ; Taunus: 0.20, orig: 0.17
   optimal_slipangle=0.161
   ; Taunus:0.1396, orig: 0.18
}
wheel_front
{
  max_braking=800
  rolling_coeff=0.017
  tire_rate=240000
  braking_factor=0.68
  inertia=1.2
  radius=0.2
  width=0.225
  mass=28
  pacejka~pacejka
   {
   }
}
wheel_rear
{
  max_braking=800
  max_handbrake_torque=1600
  rolling_coeff=0.017
  tire_rate=225000
  braking_factor=0.32
  inertia=1.3
  radius=0.2
  width=0.225
  mass=32
  pacejka~pacejka
   {
   }
}
wheel0~wheel_front
{
  x=0
  y=0
  z=0
  steering=1
  powered=1
  lock=64
  ackerman=1.4
  camber_change_steering=0.042
  model
  {
    file=wheel_LHS.dof
    }
    }
wheel1~wheel_front
{
  x=0
  y=0
  z=0
  steering=1
  powered=1
  lock=64
  ackerman=-1.4
  camber_change_steering=0.042
  model
  {
    file=wheel_RHS.dof
    }
    }
wheel2~wheel_rear
{
  x=0
  y=0
  z=0
  steering=0
  powered=0
  model
  {
    file=wheel_LHS.dof
    }
    }
wheel3~wheel_rear
{
  x=0
  y=0
  z=0
  steering=0
  powered=0
  model
  {
    file=wheel_RHS.dof
    }
    }
camera0
{
  offset
  {
    x=0.001563
    y=-0.406250
    z=-6.295002
  }
  angle
  {
    x=15.138849
    y=180.173615
    z=0.000000
  }
  name=Behind
  ;cam1
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
}
camera1
{
  offset
  {
    x=0
    y=-0.12
    z=0.28
  }
  angle
  {
    x=0
    y=-180
    z=0
  }
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
   name=Bilbo's_bonnet
   ;cam2
   fov=70
   model=0
   wheels=0
   view=0
  }
}
camera2
{
  offset
  {
    x=0
    y=0
    z=1
  }
  angle
  {
    x=0
    y=-180
    z=0
  }
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
   name=godmode
   ;cam3
   fov=70
   ;65
   model=2
   wheels=0
   view=2
  }
}
camera3
{
  offset
  {
    x=-0.26
    y=-0.36
    z=-0.2
  }
  angle
  {
    x=0
    y=-5
    z=0
  }
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
   name=tailchaser
   ;cam4
   fov=70
   model=1
   wheels=0
   view=2
}
}
camera4
{
offset
  {
    x=0.07
    y=-0.36
    z=-1
  }
  angle
  {
    x=0
    y=200
    z=0
  }
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
   name=back_seat_driver
   ;cam5
   fov=50
   model=1
   wheels=0
   view=2
}
}
camera6
{
  offset
  {
    x=0
    y=-0.52
    z=0.8
  }
  angle
  {
    x=5
    y=180
    z=0
  }
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
   name=screenfly
   ;cam7
   fov=75
   model=0
   wheels=0
   view=0
}
}
camera7
{
  offset
  {
    x=0.2
    y=-0.36
    z=-5
  }
  angle
  {
    x=10
    y=20
    z=10
  }
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
   name=angled1
   ;cam8
   fov=80
   model=0
   wheels=1
   view=2
}
}
camera9
{
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=0
    ;-0.40
    ;-0.45
    ;-0.37
    ;-0.56
    y=-0.36
    z=-0.5
    ;-0.10
    ;0.55
  }
  angle
  {
    x=0
    y=-180
    z=0
}
    view=2
    model=1
    wheels=1
    ;0, fov=70
    fov=50
    ;cam0
    name=driver
  }
}
camera8
{
offset
  {
    x=0
    y=0
    z=-5
  }
  angle
  {
    x=20
    y=200
    z=20
  }
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
   name=angled2
   ;cam9
   fov=75
   model=0
   wheels=1
   view=2
}
}
camera5
{
offset
  {
    x=0.14
    y=-0.36
    z=-0.5
  }
  angle
  {
    x=0
    y=184
    z=0
  }
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
   name=passenger
   ;cam6
   fov=70
   model=1
   wheels=0
   view=2
}
}
audio
{
	skid
	{
		volume=.3
 		sample=skid.wav

	}
		acc_all
	{
		attack=1300
		decay=1300
	}
	accelerate_out
	{
		volume=1
		smp0~audio.acc_all
		{
 			sample=hyidle.wav
			min=1
			max=1000
			natural=2000
			attack=2000
			decay=500
			volume=1
		}
		smp1~audio.acc_all
		{
			sample=hylo.wav
			min=1000
			max=2500
			natural=2200
			attack=1000
			decay=1000
			volume=1
		}
		smp2~audio.acc_all
		{
			sample=hymi.wav
			min=2500
			max=4000
			natural=3500
			attack=1000
			decay=1000
			volume=1.2
		}
		smp3~audio.acc_all
		{
			sample=hyhi.wav
			min=4000
			max=10000
			natural=4000
			attack=1000
			decay=1000
			volume=1.5
		}
	}
	decelerate_out
	{
		volume=.5
		smp0~audio.acc_all
		{
			sample=hyidle.wav
			min=1
			max=1000
			natural=22000
			attack=1000
			decay=100
		}
		smp1~audio.acc_all
		{
			sample=hylo.wav
			min=1000
			max=2500
			natural=2200
			attack=1000
			decay=1000
		}
		smp2~audio.acc_all
		{
			sample=hymi.wav
			min=2500
			max=4000
			natural=3500
			attack=1000
			decay=1000
		}
		smp3~audio.acc_all
		{
			sample=hyhi.wav
			min=400
			max=10000
			natural=4000
			attack=1000
			decay=1000
		}
	}
	wind
	{
		volume_scale=0.1
		volume_offset=0
		pitch_scale=0.01
		pitch_offset=0
		smp0
		{
			sample=wind_ext.wav
			min=0.1
			max=9999
			natural=50
		}
	}
}
