car
{
   ; the 440 Cuda appealed strictly to the go-fast, straight-line 
   ; dragstrip addicts, as such a beast was almost undriveable on 
   ; most public roads (http://wikicars.org/en/Plymouth_Barracuda)
   ;
   name=Plymouth Barracuda 440-6pack
   year=1968
   version=050b9
   id=cuda4406
   comments=440-6pack V8
   credits=Luthobu (mod of RyanT's 340cid)
   wheels=4
   front_area=2.0722
   shadow
   {
      texture=shadow.tga
      length=4.3
      width=1.5
      offset_z=0
      offset=0
   }
   cg
   {
      x=0
      y=-0.13
      z=0.293366
   }
}
body
{
   ; driver=75, wheels=80, engine=333.39
   ; mass from http://auto.howstuffworks.com/1967-1969-plymouth-barracuda.htm/printable
   ; mass=1334 TOO LIGHT!
   masse=1748
   inertia
   {
      x=2266.199951
      y=2448
      z=380.899994
   }
   ;restitution_coeff=0.1
   manual_box=1
   width=1.818
   height=1.131
   length=4.892
   cockpit_start=1
   cockpit_length=1
   model
   {
      file=body.dof
   }
   model_incar
   {    
   }
   model_braking_l
   {
      file=blights.dof
   }
   model_light_l
   {
     ;
	file=f_lights.dof
   }
   model_light_r
   {
     file=driver.dof
   }
 }
; projected lights
lights
{
  ; Projected lights
   light0
   {
    ; Field of view (vertical)
    fov=20.0
	; Aspect (horizontal)
	aspect=5.0
	; Distance to car
	z=2.0
	; Pitching with respect to car (in degrees)
	pitch=7
	; Far plane (if not specified, uses entire visibility
	;far=200
	; Image to project
    texture=light.tga
  }
}
graphics
{
  ; Generic models
  generic
  {
    model0
    {
	  file=mirrors.dof
    }
    model1
    {
	  file=sidemirrors.dof
    }
   model2
   {
     file=guitar.dof
   }
   model3
   {
	 file=suitcases.dof
   }
   model4
   {
     ;file=your_model_here.dof
	 file=spare.dof
   }
  }
}
steer
{
; original
;   x=0.43
;   y=0.18
;   z=0.62
;   xa=40
;   lock=350
;   model
;   {
;    file=stwheel.dof
;   }
;

;;; steer new
   ; left/right
   x=0.45
   ; up - down
   y=0.12
   ; dunno
   z=0.72
   xa=20
   ;lock=350
   lock=1080
   model
   {
   file=swheel_cuda.dof
   }
}
;
; 440-6pack engine! :)
engine
{
   size=0.25
   mass=333.39
   starter=1
   starter_torque=90
   start_stalled=0
   idle_rpm=950
   stall_rpm=800
   start_rpm=900
   curve_torque=torque.crv
   max_torque=664.35 
   torque_reaction=0.83
   inertia
   {
      engine=0.93
      final_drive=1.35
   }
   braking_coeff=1.94
   reaction=0.3
   rolling_friction_coeff=0.4
   friction=0
   autoclutch_rpm=2750
   shifting
   {
      automatic=0
      shift_up_rpm=5000
      shift_down_rpm=3000
      time_to_declutch=100
      time_to_clutch=300
      time_in_neutral=0
   }
   sample_rpm=0
}
fuel
{
  ; Fuel type: 0=gasoline, 1=diesel. Determines efficiencies
  type=0
  ; Max storage in liters
  max=62.8
  ; Brake specific fuel consumption (gram/Joule); an idea of the efficiency of the engine
  bsfc=7e-5
  ;bsfc=2.0e-5
  ;bsfc=6.944e-5
}
 
traction_control
{
  enable=0
  max_velocity_ratio=1.35
  min_velocity_ratio=1
}
abs
{
  enable=0
  max_velocity_ratio=1.2
  min_velocity_ratio=1
}
clutch
{
  max_torque=2100  
}
gearbox
{
   gears=5
   ; [reverse]
   gear0
   {
      ratio=-3.2
      inertia=0.5
   }
   gear1
   {
      ratio=2.32
      inertia=0.05
   }
   gear2
   {
      ratio=1.69
      inertia=0.04
   }
   gear3
   {
      ratio=1.29
      inertia=0.04
   }
   gear4
   {
      ratio=1
      inertia=0.19
   }
   ; [backward compatibility w/0.49]
   end_ratio=3.25
}
differential
{
   ; 0=free 1=viscous 2=salisbury
   type=1
   ; Final Drive [0.5 and up]
   ratio=3.25
   ; Viscous locking
   locking_coefficient=10
   ; Power ramp angle (degrees)
   power_angle=60
   ; Coast ramp angle
   coast_angle=40
   ; Number of clutches in use
   clutches=1
   ; Clutch factor to adjust effect of clutches
   clutch_factor=1
   locking_coeff=50
   output0=2
   output1=3
}
;; audio - perfected for the 440-6pack :)
audio
{
  skid
  {
    sample=skid.wav
  }
  horn
  {
    sample=69_roadrunner_horn.wav
  }
  accelerate_out
  {
    minvol=1
    maxvol=20
    smp0
    {
      attack=500
      decay=500
      sample=engineidle_440.wav
      min=50
      max=10000
      volume=1
      natural=2800
    }
    smp1
    {
      attack=500
      decay=500
      sample=engine_overlay.wav
      min=650
      max=8000
      volume=1
      natural=2800
    }
    smp2
    {
      attack=500
      decay=500
      sample=engine_440.wav
      min=650
      max=12000
      volume=1
      natural=2800
    }
  }
	wind
  	{
    		volume=2
    		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
    		}
  	}
}
aero
{
   body
   {
      center=0 0.25 0.025
      cx=0.3
      area=2.05
   }
   wings=2
   wing0
   {
      name=FrontDam
      span=0.85
      cord=0.15
      coeff_drag=0
      coeff_down=-0.75
      center=0.000 -0.200 2.100
      angle=10
      angle_offset=0
   }
   wing1
   {
      name=RearSpoil
      span=1.761
      cord=0.15
      coeff_drag=0
      coeff_down=-0.98
      center=0.000 0.500 -2.560
      angle=25
      angle_offset=0
   }
}
antirollbar
{
   count=2
   ; [Front Anti-Sway bar]
   arb0
   {
      susp_left=0
      susp_right=1
      ;k=18500
	  k=12000
   }
   arb1
   {
      susp_left=0
      susp_right=1
      ;k=12500
	  k=9200
   }
}
susp0
{
   x=0.72
;0.70993
   y=-0.045
;-0.0685
   z=1.562
   roll_center
   {
      x=0
      y=-0.34
      ;-0.35
      ;-0.55
      z=0
   }
   minlen=0.225
   maxlen=0.8
   restlen=0.44
   anti_pitch=0
   ;k=31027
   ;bump_rate=6000
   ;k=39927
   k=33000
   bump_rate=3724
   rebound_rate=6500
}
susp1
{
   x=-0.72
   ;-0.70993
   y=-0.045
   ;-0.0685
   z=1.562
   roll_center
   {
      x=0
      y=-0.34
      ;-0.35
      ;-0.55
      z=0
   }
   minlen=0.225
   maxlen=0.8
   restlen=0.44
   anti_pitch=0
   ;k=31027
   ;bump_rate=6000
   ;k=39927
   k=33000
   bump_rate=3724
   rebound_rate=6500
}
susp2
{
   x=0.72
;0.70612
   y=-0.056
;-0.0685
   z=-1.2217
   roll_center
   {
      x=0
      y=-0.2
      ;-0.45
      z=0
   }
   minlen=0.225
   maxlen=0.8
   restlen=0.44
   anti_pitch=0
   k=27800
;   bump_rate=6000
   bump_rate=4600
;  	k=21014
;  	bump_rate=2081
   rebound_rate=6500
}
susp3
{
   x=-0.72
   ;-0.70612
   y=-0.056
   ;-0.0685
   z=-1.2217
   roll_center
   {
      x=0
      y=-0.2
      ;-0.45
      z=0
   }
   minlen=0.225
   maxlen=0.8
   restlen=0.44
   anti_pitch=0
   k=27800
;   bump_rate=6000
   bump_rate=4600
;  	k=21014
;  	bump_rate=2081
   rebound_rate=6500
}

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
   ; Damping lat/long speed (in m/s, same for longitudinal and lateral)
   damping_speed=1.45
   ; Strength of damping; too little and the car keeps vibrating (low freq.)
   damping_coefficient_lat=0.8
   damping_coefficient_long=1
}
tire_model_rear
{
   ; 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
   ; Damping lat/long speed (in m/s, same for longitudinal and lateral)
   damping_speed=1.45
   ; Strength of damping; too little and the car keeps vibrating (low freq.)
   damping_coefficient_lat=0.8
   damping_coefficient_long=1
}
pacejka
{
 ; Lateral force
  a0=1.3
  a1=-35
  a2=1216
  a3=1432
  a4=11
  a5=0
  a6=0
  a7=0
  a8=0
  a9=0
  a10=0
  a111=0
  a112=0
  a12=0
  a13=0
  ; Longitudinal force
  b0=1.57
  b1=-55
  b2=1538
  b3=6.8
  b4=444
  b5=0
  b6=0.0034
  b7=-0.008
  b8=0.66
  b9=0
  b10=0
  b11=0
  b12=0
  ; Aligning moment
  c0=2.46
  c1=-2.77
  c2=-2.9
  c3=-0
  c4=-3.6
  c5=-0.1
  c6=0.0004
  c7=0.22
  c8=-2.31
  c9=3.87
  c10=0.0007
  c11=-0.05
  c12=-0.006
  c13=0.33
  c14=-0.04 
  c15=-0.4
  c16=0.092
  c17=0.0114
  optimal_slipratio=0.11
  optimal_slipangle=0.18
}
wheel_front
{
   ; [[Settings]]
   y=0
   z=0
   steering=1
   lock=45
   toe=0
   ackerman=1
   camber=-2
   powered=0
   ; [[Properties]]
   mass=20
   ; Cragar SS Rim and BF-Goodrich tire
   ;radius=0.2865
   ; Moon Hub rim with changing color
   radius=0.3005
   width=0.27
   ; Eagle1
   ;radius=0.326
   ; width=0.27
   ; Eagle2 - proper for eagle2 but kills the balance
   ; radius=0.34 
   
   inertia=1
   rolling_coeff=0.015
   friction_road=2.2
   tire_rate=160000
   pacejka~pacejka
   {
   }
   ; [[Braking]]
   max_braking=2600
   braking_factor=0.7
}

wheel0~wheel_front
{
   x=0
   model
   {
      ;file=lwc.dof
      file=lwh.dof
   }
   model_brake
   {
      file=lsf.dof
   }
}
wheel1~wheel_front
{
   x=0
   model
   {  
      ;file=rwc.dof
      file=rwh.dof
   }
   model_brake
   {
      file=rsf.dof
   }
}

handbrakes
{
   ; [wheels to lock]
   wheels=23
}

wheel_rear
{
   ; [[Settings]]
   y=0
   z=0
   steering=0
   toe=0
   camber=-1
   powered=1
   ; [[Properties]]
   mass=20
   ; Cragar SS Rim and BF-Goodrich tire
   ;radius=0.2865
   ; Moon Hub rim with changing color
   radius=0.3005
   width=0.27
   ; Eagle1
   ; radius=0.326
   ; width=0.27
   ; Eagle2 - proper for eagle2 but it kills the balance
   ;radius=0.34
   
   inertia=1
   rolling_coeff=0.015
   friction_road=2.9
   tire_rate=150000
   pacejka~pacejka
   {
      a2=1320
      a3=1580
      b2=1680
   }
   ; [[Braking]]
   max_braking=2600
   braking_factor=.3
   max_handbrake_torque=4000

}

wheel2~wheel_rear
{
   x=0
   model
   {
      ;file=lwc.dof
      file=lwh.dof
   }
   model_brake
   {
      file=ls.dof
   }
}
wheel3~wheel_rear
{
   x=0
   model
   {
      ;file=rwc.dof
      file=rwh.dof
   }
   model_brake
   {
      file=rs.dof
   }
}
camera0
{
  offset
  {
    x=0.0
    y=-0.35
    z=-5.8
  }
  angle
  {
    x=11.000000
    y=180.000000
    z=0.000000
  }
  name=Chase Close
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  fov=55
  model=0
  wheels=0
  view=0
}
camera1
{
  offset
  {
    x=0
    y=-0.75
    z=-8.200000
  }
  angle
  {
    x=15.000000
    y=-180.000000
    z=0.000000
  }
  name=Chase High
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  fov=45
  model=0
  wheels=0
  view=0
}
camera2
{
  offset
  {
    x=0
    y=-0.55
    z=2.3100000
  }
  angle
  {
    x=0.000000
    y=180.000000
    z=0.000000
  }
  name=Bumper
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  fov=70
  model=2
  wheels=0
  view=2
}
camera3
{
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=0
    ;y=-00.50
    y=-00.50
    z=0.480000
  }
  angle
  {
    x=0.000000
    y=180.000000
    z=0.000000
  }
  name=Hood
  ;fov=40
  fov=59
  model=0
  wheels=0
  view=0
}
; Ugh.. cam4 took /ages/ to tune..
;camera4
;{
;  follow
;  {
;    pitch=1
;    yaw=1
;    roll=1
;  }
;  offset
;  {
;    ;x= |0.365 <-front-> 0.240|
;    ;x=0.365 (default)
;    x=0.370
;    ;y=-0.40
;    y=-0.39
;    ;y=-0.42
;    ;y=-0.43
;    ;* y=-0.44
;    ;z=0.1 z=placement 0.5 ^ or v 0.1
;    z=0.03
;  }
;  angle
;  {
;    x=-04.000000
;    ;y=-180
;    y=180
;    z=0.000000
;  }
;  fov=50
;  ;Type of model to use; 0=outside, 1=inside, 2=none
;  model=0
;  wheels=1
;  view=1
;  name=Inside Driver
;}
;;; new settings from splashonda's tests :)
camera4
{
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    ;x= |0.365 <-front-> 0.240|
    ;x=0.365 (default)
    x=0.460
    ;y=-0.25
    y=-0.44
    ;y=-0.42
    ;y=-0.43
    ;* y=-0.44
    ;z=0.1 z=placement 0.5 ^ or v 0.1
    ;z=-0.015
	z=-0.002
  }
  angle
  {
    x=1.000000
    ;y=-180
    y=180
    z=0.000000
  }
  fov=50
  ;Type of model to use; 0=outside, 1=inside, 2=none
  model=0
  wheels=1
  view=1
  name=Inside Driver
}
camera5
{
  follow
  {
    pitch=1
    yaw=1
    roll=0
  }
  offset
  {
    x=-0.2
    y=-0.39
    z=0.1
  }
  angle
  {
    x=-05.000000
    y=-17
    z=0.000000
  }
  fov=52
  ;Type of model to use; 0=outside, 1=inside, 2=none
  model=0
  wheels=0
  view=1
  name=Inside Driver Rear
}
camera6
{
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=-0.60
    y=-0.25
    z=-06
  }
  angle
  {
    x=5.1
    y=25
    z=0
  }
  fov=40
  model=0
  wheels=0
  view=1
  name=Front Car Cam
}
camera7
{
  follow
  {
    pitch=1
    yaw=1
    roll=0
  }
  offset
  {
    x=0.0
    y=-0.550
    z=-25
  }
  angle
  {
    x=70
    y=180
    z=0
  }
  fov=35
  model=0
  wheels=1
  view=0
  name=overhead
}
camera8
{
  follow
  {
    pitch=0
    yaw=0
    roll=0
  }
  offset
  {
    x=-0.48
    y=-0.18751
    z=-5.9994
  }
  angle
  {
    x=4.861111
    y=33.853992
    z=-14.322908
  }
  fov=55
  model=0
  wheels=1
  view=0
  name=Jim Seamus Cam
}
camera9
{
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  offset
  {
    x=0.013
    y=0.25
    z=-8.385002
  }
  angle
  {
    x=21.666662
    y=-105.555519
    z=19.704857
  }
  name=Side High
  fov=30
  model=0
  wheels=1
  view=0
}

