car
{
	name=Dodge RAM 
	year=1994
        credits=Converted by FernSS1970/Original model by Pumbars
        comments=Chrysler V8 5.2l 318cu-in 230hp a 4400rpm 407NM a 3200rpm
	id=TWISTER
	version=063b
	wheels=4
	ff_factor=0.25
	skid
	{
		sample=Skid.wav
	}
	shadow
	{
		texture=shadow.tga
		width=2.9
		length=6.9
	}
cg
	{
		x=0	
		y=-0.1	
		z=0.4		
	}
}
body
{
  mass=2729
  inertia
  {
    x=4000	
    y=4100
    z=1250
  }
	width=2.029
	height=1.984
	length=5.834
	manual_box=0
	model
	{
		file=TWISTER.dof
	}
	model_incar
	{
		file=TWISTER.dof
	}
	model_light_l
	{
		file=lights.dof
	}
	model_braking_l
	{
		file=brakes.dof
	}
        model_lightroad_l
        {
                file=lightsin.dof
        }
}
steer
{
	x=0.515
	y=0.23
	z=0.91
	radius=10
	xa=370
	lock=550
        linearity=1.0
	model
	{
		file=volante.dof
	}
}
engine
{
  ; Position (stub gfx)
  x=0
  y=.2
  z=1.42
  size=.25
  mass=158
  max_rpm=7000
  idle_rpm=750
  autoclutch_rpm=1000
  curve_torque=torque.crv
  max_torque=407
  torque_reaction=0.89
  starter=1
  starter_torque=240
  start_stalled=1
  stall_rpm=550
  start_rpm=650
  shifting
  {
    automatic=0
    fast=1
    cut_throttle=1
    shift_up_rpm=5700
    shift_down_rpm=1400
    time_to_declutch=50
    time_to_clutch=50
    time_in_neutral=50 ;200
    time_to_declutch_down=150
    time_to_clutch_down=50
    time_in_neutral_down=50 ;200
  }

  inertia
  {
    engine=0.53
    final_drive=1.25
  }
  braking_coeff=3.6
  rolling_friction_coeff=1
  friction=0
}
gearbox
{
  gears=5
  gear0
  {
    ratio=-2.21
    inertia=0.21
  }
  gear1
  {
    ratio=2.45
    inertia=0.18
  }
  gear2
  {
    ratio=1.45
    inertia=0.13
  }
  gear3
  {
    ratio=1.00
    inertia=0.09
  }
  gear4
  {
    ratio=0.69
    inertia=0.07
  }
}
differential
{
  type=1
  ratio=5.73
  inertia=0
  locking_coeff=80
  output0=2
  output1=3
}
clutch
{
  max_torque=900
}
handbrakes
{
  wheels=23
}
aero
{
	body
	{
	center=0 0.23 0
        cx=0.43
        area=2.95
	}
	wings=0
}
antirollbar
{
  count=2
  arb0
  {
    susp_left=0
    susp_right=1
    k=-3500
  }
  arb1
  {
    susp_left=2
    susp_right=3
    k=-5000
  }
}
susp_front
{
y=-0.40
z=1.92
restlen=0.44
minlen=0.10
maxlen=0.65
  k=40000	
  bump_rate=4500
  bump_function=0	
  rebound_rate=2500
  rebound_function=0
  anti_pitch=0
  camber_change_per_m=0.2
  caster_offset=0.0
  roll_center
  {
 x=0
    y=-0.55		
    z=0
  }
}
susp_rear
{
y=-0.35
z=-1.64
restlen=0.44
minlen=0.0
maxlen=0.9
  k=50000	
  bump_rate=5000
  bump_function=0
  rebound_rate=4500
  rebound_function=0
  anti_pitch=0
  camber_change_per_m=0.4
  roll_center
  {
    x=0
    y=-0.65		
    z=0
  }
}
susp0~susp_front
{
  x=0.89
  ; Camber change ratio; degrees of camber / degrees of wheel rotation
  camber_change_steering=0.0
  ; Bump steer; toe change in radians per meter of suspension deflection
  toe_change_per_m=0.05
}
susp1~susp_front
{
  x=-0.89
  camber_change_steering=-0.0
  toe_change_per_m=-0.05
}
susp2~susp_rear
{
  x=0.89
  toe_change_per_m=0
}
susp3~susp_rear
{
  x=-0.89
  toe_change_per_m=0
}
tire_model_front
{
damping_predict_lat=0.572
damping_predict_long=0.023
}
tire_model_rear
{
damping_predict_lat=0.560
damping_predict_long=0.022
}

pacejka
{
  ; Lateral force
   a0=1.6
   a1=-20
   a2=1320
   a3=2100
   a4=20
   a5=0.014
   a6=-0.24
   a7=1.0
   a8=-0.03
   a9=-0.0013
   a10=-0.15
   a111=-4
   a112=-0.29
   a12=17.8
   a13=-2.4
   ; Longitudinal force
   b0=1.5
   b1=-40
   b2=1410
   b3=23.3
   b4=250
   b5=0.05
   b6=0
   b7=0.055
   b8=-0.024
   b9=0.014
   b10=0.26
   b11=-103.71
   b12=0
   ; Aligning moment
   c0=2.2
   c1=-3.9
   c2=-3.9
   c3=-1.26
   c4=-8.2
   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.14
   c15=-1.029
   c16=0.27
   c17=-1.1
   optimal_slipratio=0.11
   optimal_slipangle=0.157
}

skidding_default
{
	long_start=0.1
	long_max=1.0
	long_start_n=0.1
	long_max_n=1.0
	lat_start=0.1
	lat_max=1.0
}
wheel_front
{
	x=0
	y=0
	z=0
	steering=1
	powered=1
	power_gearing=1.65
	camber=2
	lock=60
	mass=71
	inertia=4
	radius=.39695
  rolling_coeff=0.015
  max_braking=3000
  braking_factor=1
  tire_rate=250000
  width=0.245
	pacejka~pacejka
	{
	}
}
wheel_rear
{
	x=0
	y=0
	z=0
	steering=0
  powered=1
  power_gearing=2.31	;4.625*50/50/2
	camber=1
	mass=68
	inertia=4
	radius=.39695
  rolling_coeff=0.015
  max_braking=1400
  max_handbrake_torque=3500
  braking_factor=0.8
  tire_rate=250000
  width=0.245
	pacejka~pacejka
	{
	}
}
wheel0~wheel_front
{
  toe=-0.5
  ackerman=1.1
	model
	{
		file=lf.dof
	}
}
wheel1~wheel_front
{
  toe=0.5
  ackerman=-1.1
	model
	{
		file=rf.dof
	}
}
wheel2~wheel_rear
{
  toe=0.0
	model
	{
		file=lf.dof
	}
}
wheel3~wheel_rear
{
  toe=-0.0
	model
	{
		file=rf.dof
	}
}
camera0
{
  name=Driver
  fov=72
  model=1
  wheels=0
  view=1
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=0.515
    y=-0.6
    z=0.3
  }
  offset_to
  {
    x=0.44
    y=-0.5
    z=10
  }
  angle
  {
    x=0
    y=180
    z=0.000000
  }
}
camera1
{
  name=Driver, left
  fov=60
  model=1
  wheels=0
  view=1
  offset
  {
    x=0.515
    y=0.6
    z=0.3
  }
  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=1
  wheels=0
  view=1
  offset
  {
    x=0.515
    y=0.6
    z=0.3
  }
  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.2
    y=0.6
    z=0.13
  }
  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=60
  model=0
  wheels=0
  view=0
  offset
  {
    x=0
    y=-0.5
    z=-7
  }
  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=-7
  }
  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=-7
  }
  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=Bumper
	fov=60
	model=2
	wheels=0
	view=0
	offset
	{
		x=0
		y=-0.2
		z=1.54
	}
	follow
	{
		pitch=1
		yaw=1
		roll=1
	}
	angle
	{
		x=5
		y=180
		z=0
	}
}
camera9
{
	name=Bonnet
	fov=60
	model=0
	wheels=0
	view=0
	offset
	{
		x=0.356
    		y=-0.75
    		z=0.85
	}
	follow
	{
		pitch=1
		yaw=1
		roll=1
	}
	angle
	{
		x=5
		y=180
		z=0
	}
}
audio
{
   acc_all
   {
      attack=2000
      decay=2000
   }
   accelerate_out
   {
      smp0~audio.acc_all
      {
         sample=1_idle.wav
         min=0
         max=1550
         attack=0
         natural=1000
         volume=4
      }
      smp1~audio.acc_all
      {
         sample=engine.wav
         min=0
         max=1550
         attack=0
         natural=3500
         volume=4
      }
      smp2~audio.acc_all
      {
         sample=1_high.wav
         min=1500
         max=8100
         natural=12000
         volume=4
      }
      smp3~audio.acc_all
      {
         sample=1_high.wav
         min=8000
         max=9500
         decay=0
         natural=8000
         volume=4
      }
   }
   decelerate_out
   {
      volume=2
   }
   accelerate_in
   {
      volume=2
      smp0~audio.acc_all
      {
         sample=idle_in2.wav
         min=0
         max=600
         attack=0
         natural=1000
         volume=2
      }
      smp1~audio.acc_all
      {
         sample=low_in2.wav
         min=0
         max=10000
         attack=0
         natural=5500
         volume=2
      }
   }
   decelerate_in
   {
      volume=1
      smp0~audio.acc_all
      {
         sample=idle_in2.wav
         min=0
         max=600
         attack=0
         natural=1000
         volume=2
      }
      smp1~audio.acc_all
      {
         sample=low_in2.wav
         min=0
         max=10000
         attack=0
         natural=5500
         volume=1
      }
   }
   gearwhine
   {
      ; Master volume for this set
      volume=1
      ; Pitch input is shaft rotational velocity in radians/sec
      pitch_scale=0.0015
      pitch_offset=10
      ; Acceleration; outside of the car
      smp0~audio.acc_all
      {
         ; All engine samples depend on engine RPM
         sample=gearwhine.wav
         min=0
         max=10000
         ; RPM of used sample
         natural=20000
      }
   }
}

abs
{
  enable=1
  max_velocity_ratio=1.09 
  min_velocity_ratio=1.08
  min_velocity=1
}
traction_control
{
  	enable=1
  	min_velocity=0.5
  	max_velocity_ratio=1.050
  	min_velocity_ratio=1.300
 }

}