;Baja Car Suspension test
;
car
{
  name=Baja Class 1
  year=2009
  credits=terry Mulder
  comments=Movable suspension test car
  id=baja_class1
  version=1.3
  wheels=4
  ff_factor=0.20
  shadow
  {
    texture=shadow.tga
    width=4.5
    length=7.8
  }
  cg
  {
    x=0
    y=0.5
    y=-0.25
    z=0
  }
  grip_factor=1.0
  ;grip_factor=0.86
}

;++++++++++++++++++++++++++++++++++++++ GRAPHICS +++++++++++++++++++++++++++++++++++++++++++++++

graphics
{
  shadow
  {
    ;model
    ;{
    ;  file=shadow.dof
    ;  use_shaders=0
    ;}
  }
  generic
  {
    ;LEFT FRONT SUSPENSION
    ;Suspension LF Top Arm
    model0
    {
      file=baja_susp_arm_top_right.dof
      from=0.34 0.38 1.55
      ;from_offset=-0.75 0 0
      to=wheelpos0
      ; Bring to centerline
      to_offset=-0.04 0.13 0
      fit=1
      scale=1.42
    }    
    ;Suspension LF Bottom Arm
    model1
    {
      file=baja_susp_arm_bottom_left.dof
      from=0.1 -0.18 1.6
      ;from_offset=-0.75 0 0
      to=wheelpos0
      ; Bring to centerline
      to_offset=-0.05 -0.20 0
      fit=1
      scale=1.15
    }
    ;Suspension LF Steering
    model2
    {
      file=baja_steering_front.dof
      from=0.1 -0.00 1.8
      ;from_offset=-0.75 0 0
      to=wheelpos0
      ; Bring to centerline
      to_offset=-0.05 -0.05 0.15
	  to_rotate=1
      fit=1
      scale=1.0
    }
    ;Suspension LF axle
    model3
    {
      file=baja_driveshaft_front.dof
      from=0.1 -0.10 1.6
      ;from_offset=-0.75 0 0
      to=wheelpos0
      ; Bring to centerline
      to_offset=-0.05 -0.05 0
      fit=1
      scale=1.0
    }
    
    ;Suspension LF damper top
    model4
    {
      file=baja_susp_damper_top.dof
      from=0.39 0.25 1.67
      ;from=0.45 0.28 1.65
      ;from=susppos1
      ;from_offset=-0.75 0 0
      to=wheelpos0
      ; Bring to centerline
      to_offset=-0.19 -0.14 0.09
      ;to_offset=-0.4 -0.10 0.1
      fit=0
      scale=1.0
    }    
    ;Suspension LF damper bottom
    model5
    {
      file=baja_susp_damper_bottom.dof
      ;from=-0.45 0.28 1.55
      from=wheelpos0
      from_offset=-0.19 -0.14 0.09
      ;from_offset=-0.19 -0.14 0.09
      to=0.39 0.25 1.67
      ;to=0.45 0.28 1.65
      ; Bring to centerline
      ;to_offset=0.4 -0.18 0
      fit=0
      scale=1.0
    }    
    ;Suspension LF spring
    model6
    {
      file=baja_susp_spring.dof
      ;from=-0.45 0.28 1.55
      from=wheelpos0
      from_offset=-0.21 -0.10 0.09
      ;from_offset=-0.41 -0.05 0.1
      ;to=0.05 0.28 1.65
      ;to=0.25 0.28 1.65
      to=0.39 0.25 1.67
      ; Bring to centerline
      ;to_offset=0.4 -0.18 0
      fit=1
      scale=1.75
    }    
    
    ;Suspension LF damper top 2
    model7
    {
      file=baja_susp_damper_top.dof
      from=0.4 0.25 1.49
      ;from=0.45 0.28 1.45
      ;from=susppos1
      ;from_offset=-0.75 0 0
      to=wheelpos0
      ; Bring to centerline
      to_offset=-0.19 -0.14 -0.09
      fit=0
      scale=1.0
    }    
    ;Suspension LF damper bottom 2
    model8
    {
      file=baja_susp_damper_bottom.dof
      ;from=-0.45 0.28 1.55
      from=wheelpos0
      ;from_offset=-0.2 -0.10 -0.1
      from_offset=-0.19 -0.14 -0.09
      ;to=0.25 0.28 1.45
      to=0.4 0.25 1.49
      ; Bring to centerline
      ;to_offset=0.4 -0.18 0
      fit=0
      scale=1.0
    }    
    ;Suspension LF spring 2
    model9
    {
      file=baja_susp_spring.dof
      ;from=-0.45 0.28 1.55
      from=wheelpos0
      from_offset=-0.21 -0.10 -0.09
      ;to=0.25 0.28 1.45
      to=0.4 0.25 1.49
      ; Bring to centerline
      ;to_offset=0.4 -0.18 0
      fit=1
      scale=1.75
    }

    ;RIGHT FRONT SUSPENSION
    ;Suspension RF Top Arm
    model10
    {
      file=baja_susp_arm_top_right.dof
      from=-0.34 0.38 1.55
      ;from_offset=-0.75 0 0
      to=wheelpos1
      ; Bring to centerline
      to_offset=0.04 0.13 0
      ;to_offset=0.24 0.13 0
      fit=1
      scale=1.42
    }    
    ;Suspension RF Bottom Arm
    model11
    {
      file=baja_susp_arm_bottom_right.dof
      from=-0.1 -0.18 1.6
      ;from_offset=-0.75 0 0
      to=wheelpos1
      ; Bring to centerline
      to_offset=0.05 -0.20 0
      ;to_offset=0.25 -0.20 0
      fit=1
      scale=1.15
    }
    ;Suspension RF Steering
    model12
    {
      file=baja_steering_front.dof
      from=-0.1 -0.00 1.8
      ;from_offset=-0.75 0 0
      to=wheelpos1
      ; Bring to centerline
      to_offset=0.05 -0.05 0.15
	  ; Rotate with wheel?
	  to_rotate=1
      ;to_offset=0.25 0.25 0.55
      ;to_offset=0.25 -0.05 0.15
      fit=1
      scale=1.0
    }
    ;Suspension RF axle
    model13
    {
      file=baja_driveshaft_front.dof
      from=-0.1 -0.10 1.6
      ;from_offset=-0.75 0 0
      to=wheelpos1
      ; Bring to centerline
      to_offset=0.05 -0.05 0
      ;to_offset=0.25 -0.05 0
      fit=1
      scale=1.0
    } 
       
    ;Suspension RF damper top
    model14
    {
      file=baja_susp_damper_top.dof
      from=-0.39 0.25 1.67
      ;from=0.45 0.28 1.65
      ;from=susppos1
      ;from_offset=-0.75 0 0
      to=wheelpos1
      ; Bring to centerline
      to_offset=0.19 -0.14 0.09
      ;to_offset=-0.4 -0.10 0.1
      fit=0
      scale=1.0
    }    
    ;Suspension RF damper bottom
    model15
    {
      file=baja_susp_damper_bottom.dof
      ;from=-0.45 0.28 1.55
      from=wheelpos1
      from_offset=0.19 -0.14 0.09
      ;from_offset=-0.19 -0.14 0.09
      to=-0.39 0.25 1.67
      ;to=0.45 0.28 1.65
      ; Bring to centerline
      ;to_offset=0.4 -0.18 0
      fit=0
      scale=1.0
    }    
    ;Suspension RF spring
    model16
    {
      file=baja_susp_spring.dof
      ;from=-0.45 0.28 1.55
      from=wheelpos1
      from_offset=0.21 -0.10 0.09
      ;from_offset=-0.41 -0.05 0.1
      ;to=0.05 0.28 1.65
      ;to=0.25 0.28 1.65
      to=-0.39 0.25 1.67
      ; Bring to centerline
      ;to_offset=0.4 -0.18 0
      fit=1
      scale=1.75
    }    
    
    ;Suspension RF damper top 2
    model17
    {
      file=baja_susp_damper_top.dof
      from=-0.4 0.25 1.49
      ;from=0.45 0.28 1.45
      ;from=susppos1
      ;from_offset=-0.75 0 0
      to=wheelpos1
      ; Bring to centerline
      to_offset=0.19 -0.14 -0.09
      fit=0
      scale=1.0
    }    
    ;Suspension RF damper bottom 2
    model18
    {
      file=baja_susp_damper_bottom.dof
      ;from=-0.45 0.28 1.55
      from=wheelpos1
      ;from_offset=-0.2 -0.10 -0.1
      from_offset=0.19 -0.14 -0.09
      ;to=0.25 0.28 1.45
      to=-0.4 0.25 1.49
      ; Bring to centerline
      ;to_offset=0.4 -0.18 0
      fit=0
      scale=1.0
    }    
    ;Suspension RF spring 2
    model19
    {
      file=baja_susp_spring.dof
      ;from=-0.45 0.28 1.55
      from=wheelpos1
      from_offset=0.21 -0.10 -0.09
      ;to=0.25 0.28 1.45
      to=-0.4 0.25 1.49
      ; Bring to centerline
      ;to_offset=0.4 -0.18 0
      fit=1
      scale=1.75
    }

    ; Rear axle
    model20
    {
      file=baja_rear_axle.dof
      ;from=-0.45 0.28 1.55
      from=wheelpos2
      ;from_offset=0.41 -0.05 -0.1
      to=wheelpos3
      ; Bring to centerline
      ;to_offset=0.4 -0.18 0
      ;fit=1
      scale=0.94
    }    
        
    ; Suspension rear axle left
    model21
    {
      file=baja_susp_damper_top.dof
      from=0.54 0.64 -1.79
      ;from=susppos1
      ;from_offset=-0.75 0 0
      to=wheelpos2
      ; Bring to centerline
      to_offset=-0.3 0.10 0
      fit=0
      scale=1.5
    }    
    ;Suspension rear axle left
    model22
    {
      file=baja_susp_damper_bottom.dof
      ;from=-0.45 0.28 1.55
      from=wheelpos2
      from_offset=-0.3 0.10 0
      to=0.54 0.64 -1.79
      ; Bring to centerline
      ;to_offset=0.4 -0.18 0
      fit=0
      scale=1.0
    }    
    ;Suspension rear axle left
    model23
    {
      file=baja_susp_spring.dof
      ;from=-0.45 0.28 1.55
      from=wheelpos2
      from_offset=-0.3 0.17 0
      to=0.54 0.64 -1.79
      ; Bring to centerline
      ;to_offset=0.4 -0.18 0
      fit=1
      scale=1.70
    }     
      
    
    ; Suspension rear axle right
    model24
    {
      file=baja_susp_damper_top.dof
      from=-0.54 0.64 -1.79
      ;from=susppos1
      ;from_offset=-0.75 0 0
      to=wheelpos3
      ; Bring to centerline
      to_offset=0.3 0.10 0
      fit=0
      scale=1.5
    }    
    ;Suspension rear axle right
    model25
    {
      file=baja_susp_damper_bottom.dof
      ;from=-0.45 0.28 1.55
      from=wheelpos3
      from_offset=0.3 0.10 0
      to=-0.54 0.64 -1.79
      ; Bring to centerline
      ;to_offset=0.4 -0.18 0
      fit=0
      scale=1.0
    }    
    ;Suspension rear axle right
    model26
    {
      file=baja_susp_spring.dof
      ;from=-0.45 0.28 1.55
      from=wheelpos3
      from_offset=0.3 0.17 0
      to=-0.54 0.64 -1.79
      ; Bring to centerline
      ;to_offset=0.4 -0.18 0
      fit=1
      scale=1.70
    } 
    
  }
}

;++++++++++++++++++++++++++++++++++++++ AI +++++++++++++++++++++++++++++++++++++++++++++++

ai
{
  grip_factor=1.0
}

;++++++++++++++++++++++++++++++++++++++ BODY +++++++++++++++++++++++++++++++++++++++++++++++

body
{
  mass=1016
;verified 1470kg, including fuel and driver
  inertia
  {
    x=1450
    y=1520
    z=550
  }
  width=1.77
  height=1.2
  length=4.35
  manual_box=0
  cockpit_start=1
  cockpit_length=1
  model
  {
    file=baja_body.dof
    offset
    {
      y=-0.20
    }
  }
  model_collide
  {
    file=collide.dof
    offset
    {
      y=-0.20
    }
  }

}

steer
{
  x=0.35
  y=0.56
  z=-0.5
  radius=10
  xa=15
  lock=935
  model
  {
    ;  file=s_wheel.dof
  }
}

;++++++++++++++++++++++++++++++++++++++ ENGINE +++++++++++++++++++++++++++++++++++++++++++++++

engine
{
  mass=150
  max_rpm=7250
  idle_rpm=1700
  idle_method=1
  stall_rpm=800
  start_rpm=1000
  starter=1
  enable_stall=0
  start_stalled=0
  starter_torque=100
  curve_torque=torque.crv
  autoclutch_rpm=4500
  max_torque=380
  shifting
  {
    automatic=0
    shift_up_rpm=6800
    shift_down_rpm=4500
    time_to_declutch=1
    time_to_clutch=100
    time_to_declutch_down=1
    time_to_clutch_down=10
    time_in_neutral=14
    time_in_neutral_down=125
    fast=0
    cut_throttle=0
    blip_throttle=0

  }
  inertia
  {
    engine=0.31
    final_drive=0.10
  }
  braking_coeff=2.2
  torque_reaction=0.35
}
clutch
{
  max_torque=450
}
handbrakes
{
  wheels=23
}
traction_control
 {
  enable=0
  ; Allowed front/rear wheel speed ratio
  max_velocity_ratio=1.12
  ; When to turn TC off
  min_velocity_ratio=1.01
  min_velocity=1
}
abs
{
  ; Anti-lock braking system
  enable=0
  ; Allowed rear/front wheel speed ratio
  max_velocity_ratio=1.1
  ; When to turn ABS off
  min_velocity_ratio=1.01
  min_velocity=1
  braking_factor=1.4
}

;++++++++++++++++++++++++++++++++++++++ DRIVELINE +++++++++++++++++++++++++++++++++++++++++++++++

gearbox
{
   gears=6
   ; Gear ratios; note that negative gears are reverse gears
   ; You may have multiple reverse gears (or 0)
  gear0
  {
      inertia=0.9
      ratio=-3.545
  }
  gear1
;verified
  {
      ratio=3.0
      inertia=0.13
  }
  gear2
;verified
  {
      ratio=2.0
      inertia=0.09
  }
  gear3
;verified
  {
      ratio=1.47
      inertia=0.07
  }
  gear4
;verified
  {
      ratio=1.111
      inertia=0.05
  }
  gear5
;verified
  {
      ratio=0.857
      inertia=0.03
   }
}
differential
{
  type=1
  ratio=4.307
  power_angle=60
	coast_angle=40
	clutches=3
	clutch_factor=1.0
	locking_coefficient=40
  output0=2
  output1=3
}
;++++++++++++++++++++++++++++++++++++++ AERO +++++++++++++++++++++++++++++++++++++++++++++++

aero
;verified 14kg on rear axle at 200km/h
{
  body
  {
    center=0 0 0
    cx=0.353
;verified
    area=2.5
;verified
  }
  wings=0
  wing0
  {
    name=FrontDam
    span=1.7
    cord=0.2
    coeff_drag=0
    coeff_down=0
    center=0 -0.5 1.2
    angle=20
    angle_offset=0
  }
  wing1
  {
    name=RearSpolier
    span=1.5
    cord=0.25
    coeff_drag=0
    coeff_down=0
    center=0 0.6 -2.4
    angle=10
    angle_offset=0
  }
}

;++++++++++++++++++++++++++++++++++++++ SUSPENSION +++++++++++++++++++++++++++++++++++++++++++++++

antirollbar
{
; 24mm front
; 22mm rear
; = 42% difference
  count=2
  arb0
  {
    susp_left=0
    susp_right=1
    k=800
  }
  arb1
  {
    susp_left=2
    susp_right=3
    k=000
  }
}
susp_front
{
  y=0
  z=1.6
  restlen=0.43
  minlen=.1
  maxlen=.42
  k=20560
  ;damper_curve=damper_front.crv
  bump_rate=1500 
  rebound_rate=1500 
  bumpstop_len=0.17
  bumpstop_k=10000
  reboundstop_len=0.17
  reboundstop_k=10000

  anti_pitch=0.0
  caster_offset=-0.02
  roll_center
  {
    x=0
    y=-.38
    z=0
  }
}
susp_rear
{
  y=0
  z=-1.8
  restlen=.39
  minlen=.1
  maxlen=.4
  k=20000
  ;damper_curve=damper_rear.crv
  bump_rate=1500 
  rebound_rate=1500 
  bumpstop_len=0.17
  bumpstop_k=10000
  reboundstop_len=0.17
  reboundstop_k=10000
  anti_pitch=0.0
  roll_center
  {
    x=0
    y=-.28
    z=0
  }
}
susp0~susp_front
{
  x=0.8
  ; Suspension height change per radian of steering (pushing the wheel up effect when steering)
  susp_y_change_per_rad=-0.1
}
susp1~susp_front
{
  x=-0.8
  ; Suspension height change per radian of steering (pushing the wheel up effect when steering)
  susp_y_change_per_rad=0.1
}
susp2~susp_rear
{
  x=.8
;verified
}
susp3~susp_rear
{
  x=-.8
;verified
}

;++++++++++++++++++++++++++++++++++++++ TIRES +++++++++++++++++++++++++++++++++++++++++++++++

tire_model
{
  relaxation_length_lat=0.24
  relaxation_length_long=0.091
}
pacejka_drift
{
    a0=1
   	a1=-35
    a2=1215
    a3=1900
   	a4=10
   	a5=0.014
   	a6=-0.24
   	a7=1.0
   	a8=0.0
   	a9=-0.0013
   	a10=0.0
   	a111=-11
   	a112=-0.29
   	a12=17.8
   	a13=0 ;0.0
  ;------------------------
    b0=1.28000
   	b1=-70
    b2=1000
   	b3=23.3
   	b4=400
   	b5=0.05
   	b6=0
   	b7=0.055
   	b8=-0.024
   	b9=0
   	b10=0
   	b11=0
   	b12=0
 ;-------------------------
   	c0=2.2
   	c1=-3
   	c2=-3
   	c3=-1.26
   	c4=-4
   	c5=-0.025
   	c6=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.1
   	optimal_slipangle=0.15
}

;++++++++++++++++++++++++++++++++++++++ WHEELS +++++++++++++++++++++++++++++++++++++++++++++++

wheel_all
{
  ; Brakedisc temperature
  brake_heating=0.002
  brake_dissipation=0.0005
  brake_max_temp=1000
  pacejka~pacejka_drift
  {
  }

}

wheel_front~wheel_all
{
  y=0
  z=0
  camber=-0
  ackerman=1.01
  steering=1
  powered=1
  power_gearing=0.7
  lock=47
  mass=42.05
  inertia=2.4
  radius=.50
  rolling_coeff=0.01
  max_braking=6000
  braking_factor=0.6
  tire_rate=170000
}

wheel_rear~wheel_all
{
  y=0
  z=0
  camber=0
  steering=0
  powered=0
  mass=39.48
  inertia=2.2
  radius=.5
  rolling_coeff=0.01
  tire_rate=170000
  max_braking=3000
  braking_factor=.4
  max_handbrake_torque=6000
}

wheel0~wheel_front
{
  toe=-0
  model
  {
    file=baja_wheel_left.dof
    offset
    {
      x=0.2
    }
  }
  model_brake
  {
    file=baja_brake_calliper_left.dof
    offset
    {
      x=0.13
      ;x=-0.27
    }
  }
}
wheel1~wheel_front
{
  toe=0
  model
  {
    file=baja_wheel_right.dof
    offset
    {
      x=-0.2
    }
  }
  model_brake
  {
    file=baja_brake_calliper_right.dof
    offset
    {
      x=-0.13
	  ;x=0.07
    }
  }
}
wheel2~wheel_rear
{
  toe=0
  model
  {
    file=baja_wheel_left.dof
    offset
    {
      x=0.2
    }
  }
  model_brake
  {
    file=baja_brake_calliper_rear_l.dof
    offset
    {
      x=0.32
      y=0.07
      z=-0.12
    }
  }
}
wheel3~wheel_rear
{
  toe=1
  model
  {
    file=baja_wheel_right.dof
    offset
    {
      x=-0.2
      y=0
      z=0
    }
  }
  model_brake
  {
    file=baja_brake_calliper_rear_r.dof
    offset
    {
      x=-0.32
      y=0.07
      z=-0.12
    }
  }
}
;
;++++++++++++++++++++++++++++++++++++++ CAMERAS +++++++++++++++++++++++++++++++++++++++++++++++
;
camera0
{
  offset
  {
    x=0.34
    y=0.85
    ;y=0.19
    z=-0.1
    ;z=0.2
  }
  offset_to
  {
    x=0.34
    y=0.18
    z=10.25
  }
  angle
  {
    x=0.000000
    ;y=180.000000
    z=0.000000
  }
  fov=55
  ; Type of model to use; 0=outside, 1=inside, 2=none
  model=0
  wheels=0
  view=0
  name=incar
  src
  {
    mass=1.0
    k=1000
    ;k=5000
    damping=50
    maxdist=0.2
  }
  dst
  {
    mass=1.0
    k=150
    damping=20
    maxdist=0.2
  }
}
;----------------------------
camera1
{
  offset
  {
    x=0
    y=-0.454165
    z=-4.649996
  }
  angle
  {	
    x=11.000005
    y=-180.000000
    z=0.000000
  }
  name=Chase High
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  fov=50
  model=0
  wheels=0
  view=0
}
;----------------------------
camera2
{
  offset
  {
    x=0
    y=-0.4
    z=2.100000
  }
  angle
  {
    x=0.000000
    y=180.000000
    z=0.000000
  }
  name=Bumper
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  fov=60
  model=2
  wheels=0
  view=2
}
;----------------------------
camera3
{
  offset
  {
    x=0
    y=-0.513334
    z=-5.745006
  }
  angle
  {
    x=21
    y=180
    z=0
  }
  name=Chase Close
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  fov=50
  model=0
  wheels=0
  view=0
}
;----------------------------
camera4
{
  offset
  {
    x=-0.670312
    y=-0.166667
    z=-3.944994
  }
  angle
  {
    x=2.500038
    y=-152.604248
    z=-15.017359
  }
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  fov=50
  model=0
  wheels=0
  view=0
  name=Rear Side
}
;----------------------------
camera5
{
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  offset
  {
    x=-0.121874
    y=-0.064583
    z=-5.590004
  }
  angle
  {
    x=35.555546
    y=-83.159645
    z=16.579861
  }
  name=Side High
  fov=40
  model=0
  wheels=1
  view=0
}
;----------------------------
camera6
{
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  offset
  {
    x=-0.231250
    y=-0.050001
    z=-4.834995
  }
  angle
  {
    x=7.361108
    y=27.083181
    z=18.923620
  }
  fov=30
  model=0
  wheels=1
  view=0
  name=Front Side
}
;----------------------------
camera7
{
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  offset
  {
    x=-0.001563
    y=-0.179167
    z=-9.000000
  }
  angle
  {
    x=44.000000
    y=0.000000
    z=0.000000
  }
  fov=26
  model=0
  wheels=1
  view=0
  name=Front High
}
;----------------------------
camera8
{
  offset
  {
    x=0.0
    y=-0.6
    z=-1
  }
  angle
  {
    x=8.000000
    y=180.000000
    z=0.000000
  }
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  fov=50
  model=2
  wheels=1
  view=0
  name=Driver
}
;----------------------------
camera9
{
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=0
    y=-0.820827
    z=1.2
  }
  angle
  {
    x=8
    y=0
    z=0
  }
  fov=70
  ; Type of model to use; 0=outside, 1=inside, 2=none
  model=1
  wheels=0
  view=0
  name=Rear view
}
;++++++++++++++++++++++++++++++++++++++ AUDIO +++++++++++++++++++++++++++++++++++++++++++++++
audio
{
  shiftout
  {
    sample=gearshft.wav
  }
  shiftin
  {
    sample=shift.wav
  }
	acc_all
	{
		attack=1000
		decay=1000
	}
	accelerate_out
	{	
		smp0~audio.acc_all
		{
			volume=1.0			
			sample=r_idle_ex.wav
			min=0
			max=1500
			natural=1000
			attack=800
			decay=200
		}
		smp1~audio.acc_all
		{
			volume=1.0			
			sample=r_onlow_ex.wav
			min=1500
			max=3500
			natural=4000
		}
		smp2~audio.acc_all
		{
			volume=1.0
			sample=r_onmid_ex.wav
			min=3500
			max=5500
			natural=6250
		}
		smp3~audio.acc_all
		{
			volume=1.0
			sample=r_onhigh_ex.wav
			min=5500
			max=8500
			natural=8500
			natural=8500
		}		
  }
  decelerate_out
  {
		smp0~audio.acc_all
		{
			volume=1.0			
			sample=r_idle_ex.wav
			min=0
			max=1500
			natural=1000
			attack=800
			decay=200
		}
		smp1~audio.acc_all
		{
			volume=1.0			
			sample=r_offlow_ex.wav
			min=1500
			max=3500
			natural=4000
		}
		smp2~audio.acc_all
		{
			volume=1.0
			sample=r_offmid_ex.wav
			min=3500
			max=5500
			natural=6250
		}
		smp3~audio.acc_all
		{
			volume=1.0
			sample=r_offhigh_ex.wav
			min=5500
			max=8500
			natural=8500
		}		
	}
  ;------------------------
  skid
  {
    volume=1
    smp0
    {
      volume=1
      sample=skid.wav
      min=0.15
      max=20
      ;attack=0.1
      ;decay=0.3
	}
  }

  gearwhine
  {
	 ; Pitch input is shaft rotational velocity in radians/sec
	pitch_scale=0.5
	pitch_offset=100
    smp0
    {
      sample=whine.wav
      volume=0.25
      min=1
      max=100
      decay=2000
      natural=600
    }
  }
}

