;Duesenberg SJ Weymann Speedster
car
{
  name=Duesenberg SJ Weymann Speedster
  id=Duesy
  version=090
  credits=Version 1.00 >> RACER version 0.0838 BETA compatible <<
  comments=http://www.motorsport-klassiker.de.vu/
  year=1933
  wheels=4
  ff_factor=0.3
 shadow
 {
   texture=shadow.tga
   width=3.0
   length=5.6
   intensity_dark=0.05
   intensity_light=0.5
 }
  cg
  {
    x=0	
    y=-0.15
    z=0.5
  }
}
;graphics   ;used cast_shadows=1 in car.shd
;{
;  shadow
;  {
;    model
;    {
;      file=schatten.dof
;      use_shaders=0
;      offset
;      {
;        x=0.0
;        y=-0.0475
;        z=0.0
;      }
;    }
;    intensity=0.5
;  }
;}
animation
{
  ; Flash all lights? (ms for on , off-period is the same, so total time is twice this value)
  flash_lights=0   ;500
}
lights
{
  ; Projected lights
  light0
  {
    texture=light.tga
    ; Field of view (vertical)
    fov=45
    ; Aspect (horizontal)
    aspect=3.8   ;2.0
    ; Distance to car
    z=1.8   ;2
    ; Pitching with respect to car (in degrees)
    pitch=5.0
    ; distance of light projection in meters/2
    far=1000
    ; Color (multiplied with texture)
    color=35 35 35
  }
}
ai
{
  understeer_correct=10
  oversteer_correct=10
  grip_factor=1.15
  ; CG factor; artifically lowers the effective CG for lateral tire forces,
  ; enabling faster cornerning and still not flipping the car. 0=no effect, upto 1.0=full
  cg_factor=0.5
  ; RC factor; normally 0, but towards 1 it pulls the roll centers towards the CG
  rc_factor=0.5   ;0
  ; Magic spring helping the car; alpha functionality
  spring_lat_factor=0.5
  ; Directional spring
  spring_dir_factor=0.5
  max_velocity=50.0
}
particles
  {
   backfire
   {
    exhaust0
     {
      pos=0.002 -0.483 -2.409 ;x,y,z
      normal=0 0 -1
     }
    type=backfire
    ;type=backfire_long
    min_rpm=5000
    ;min_rpm=0
    ;suppose car comes from 9000 rpm for example. Backfire can happen when max_rpm is hit
    max_rpm=7500
    ;max_rpm=10000
    ;high backfire likeliness for rally cars
    ;likeliness_percentage=30
    likeliness_percentage=500
    }
  }
body
{
  mass=2100	;+400 kg unsprung = 2500 kg
  inertia
  {
    x=5200
    y=6800
    z=1250
  }
;  width=1.66
;  height=1.258
;  length=5.10   ;33
  manual_box=1   ;0
  box_offset=0 0 0
  model
  {
    file=aussen.dof
     offset
    {
      x=0
      y=0
      z=0
    }
  }
  model_collide
  {
    ; 3D collision model (Newton only)
    file=schatten.dof
  }
  model_incar
  {
    file=
  }
  model_braking_l
  {
    file=bremse.dof
  }
  model_braking_r
  {
    file=bremse.dof
  }
  model_light_r
  {
    file=licht.dof
  }
  model_light_l
  {
    file=licht.dof
  }
}
wipers
{
  ; Windscreen wipers
  count=2
  wiper0
  {
    x=0.1915
    y=0.482   ; +up-down
    z=0.3185   ; +forwaod-back
    xa=43
    min_angle=170   ; off position
    max_angle=25   ; on max rotaion
    model
    {
      file=wiper0.dof
    }
  }
  wiper1
  {
    x=-0.1915
    y=0.482
    z=0.3185
    xa=43
    min_angle=-170
    max_angle=-25
    model
    {
      file=wiper1.dof
    }
  }
}
steer
{
  x=0.26
  y=0.31
  z=0.182
  radius=12
  xa=15
  lock=1200
  model
  {
    file=steuer.dof
  }
}
engine
{
  mass=1
  max_rpm=5500
  idle_rpm=650
  stall_rpm=380
  start_rpm=400
  autoclutch_rpm=900
  starter=1
  start_stalled=0
  starter_torque=50
  curve_torque=torque.crv
  max_torque=576	;576 nm @ 2400 rpm
			;480 nm @ 4750 rpm ~ 83%
			;239 kw @ 4750 rpm / 320 hp
  torque_reaction=1
  shifting
  {
    automatic=0
    shift_up_rpm=4400
    shift_down_rpm=1500
    time_to_declutch=580
    time_to_clutch=290
    time_in_neutral=350
  }
  inertia
  {
    engine=0.6
  }
  braking_coeff=3.2
}
fuel
{
;fuel system, should be included in Racer 0.80 onwards
;bsfc=15e-5 ;approx 30 UK mpg @ const 70mph
bsfc=7.5e-5
max=50   ;0.5   ; max fuel capacity in litres
type=0  ; 0 for gasoline, 1 for diesel
}
gearbox
{
  gears=4
  gear0
  {
    ratio=-2.485
    inertia=0.03
  }
  gear1
  {
    ratio=2.485
    inertia=0.07
  }
  gear2
  {
    ratio=1.397
    inertia=0.06
  }
  gear3
  {
    ratio=1.000
    inertia=0.05
  }
}
clutch
{
  max_torque=700
}
handbrakes
{
  wheels=23
}
differential
{
  type=1
  ratio=3.8
  inertia=0.2
  locking_coeff=0
  output0=2
  output1=3
}
aero
{
  body
  {
    center=0 0 0
    cx=0.778
    area=1.82
  }
  wings=1
  wing0
  {
    name=lift
    span=1
    cord=1
    coeff_drag=0
    coeff_down=-10
    center=0 0 0
    angle=0
    angle_offset=1
  }
}
antirollbar
{
  count=0
}
susp_front
{
  y=-0.2
  z=2.05
  restlen=0.27
  minlen=0.05
  maxlen=0.34
  k=90000   ;70000
  bump_rate=6000   ;5000
  rebound_rate=8000   ;7000
  bump_function=3
  anti_pitch=0
  caster_offset=-0.02
  roll_center
  {
    x=0
    y=-0.35
    z=0
  }
}
susp_rear
{
  y=-0.2
  z=-1.56
  restlen=0.29
  minlen=0.05
  maxlen=0.35   ;0.32
  k=60000   ;40000
  bump_rate=4000   ;3000
  rebound_rate=8000   ;7000
  bump_function=3
  anti_pitch=0
  roll_center
  {
    x=0
    y=-0.35
    z=0
  }
}
susp0~susp_front
{
  x=0.64
  camber_change_steering=0.2
  toe_change_per_m=0.1
}
susp1~susp_front
{
  x=-0.64
  camber_change_steering=-0.2
  toe_change_per_m=-0.1
}
susp2~susp_rear
{
  x=0.64
  toe_change_per_m=-0.1
}
susp3~susp_rear
{
  x=-0.64
  toe_change_per_m=0.1
}
tire_model
{
  damping_predict_lat=0.53
  damping_predict_long=0.022
}
pacejka
{
  a0=1.55
  a1=-40
  a2=1300
  a3=2500
  a4=15
  a5=0.013
  a6=-0.336
  a7=1.02
  a8=0.019
  a9=-0.019
  a10=-0.18
  a111=-12.7
  a112=-0.021
  a12=0.48
  a13=6.2
  b0=1.6
  b1=-80
  b2=1400
  b3=23.3
  b4=200
  b5=0.05
  b6=0
  b7=0.055
  b8=-0.024
  b9=0 
  b10=0 
  c0=2.5
  c1=-2.9
  c2=-0.7
  c3=0.24
  c4=-2.52
  c5=-0.36
  c6=0.0037
  c7=-0.026
  c8=0.19
  c9=-0.043
  c10=0.14
  c11=0.027
  c12=0.038
  c13=-0.66
  c14=0.12
  c15=-1.22
  c16=-0.9
  c17=-0.8
  optimal_slipratio=0.2
  optimal_slipangle=0.2
}
wheel_front
{
  x=0
  y=0
  z=0
  steering=1
  powered=0
  camber=-1.0
  lock=50
  mass=80
  inertia=1.3
  radius=0.414
  rolling_coeff=0.018
  max_braking=5200
  braking_factor=0.65
  tire_rate=150000
  pacejka~pacejka
}
wheel_rear
{
  x=0
  y=0
  z=0
  steering=0
  powered=1
  camber=0.0
  mass=120
  inertia=1.4
  radius=0.414
  rolling_coeff=0.018
  max_braking=5900
  braking_factor=0.35
  tire_rate=160000
  max_handbrake_torque=2500
  pacejka~pacejka
}
wheel0~wheel_front
{
  ackerman=1.15
  toe=-1
  model
  {
    file=rh-l.dof
  }
}
wheel1~wheel_front
{
  ackerman=1.15
  toe=1
  model
  {
    file=rh-r.dof
  }
}
wheel2~wheel_rear
{
  toe=0.5
  model
  {
    file=rh-l.dof
  }
}
wheel3~wheel_rear
{
  toe=-0.5
  model
  {
    file=rh-r.dof
  }
}
;------------ Audio Parameters ------------------
audio
{
  skid
  {
    sample=skid.wav
  }
  horn
  {
    sample=ahooga1.wav
  }
  shiftout
  {
    sample=shift_out.wav
  }
  shiftin
  {
    sample=shift_in.wav
  }
	acc_all
	{
	volume=1.8
	}
	dec_all
	{
	volume=1.5
	}
	accelerate_out
	{
		smp0~audio.acc_all
		{
			sample=leerlauf.wav
                	volume=2.2
			min=0
			max=1100
			decay=250
			natural=850
		}
		smp1~audio.acc_all
		{
			sample=aussen1000.wav
			min=1000
			max=4000
			attack=350
			decay=600
			natural=1000
		}
		smp2~audio.acc_all
		{
			sample=aussen4200.wav
			min=2000
			max=10000
			attack=500
			decay=500
			natural=4200
		}
		smp3
		{
			sample=gearwhine.wav
			volume=0.1
			min=5000
			max=10000
			attack=4000
			natural=600
		}
	}
	accelerate_in
	{
		smp0~audio.acc_all
		{
			sample=leerlauf.wav
                	volume=2.2
			min=0
			max=1100
			decay=250
			natural=850
		}
		smp1~audio.acc_all
		{
			sample=aussen2000.wav
			min=1000
			max=10000
			attack=300
			decay=400
			natural=2000
		}
		smp2
		{
			sample=gearwhine.wav
			volume=0.1
			min=5000
			max=10000
			attack=4000
			natural=600
		}
	}
	decelerate_out
		{
		smp0~audio.dec_all
		{
			sample=leerlauf.wav
			volume=2
			min=0
			max=1000
			decay=100
			natural=850
		}
		smp1~audio.dec_all
		{
			sample=aussenaus2000.wav
			min=1000
			max=10000
			attack=100
			decay=100
			natural=1500
		}
	}
	decelerate_in
		{
		smp0~audio.dec_all
		{
			sample=leerlauf.wav
			volume=2
			min=0
			max=1000
			decay=100
			natural=850
		}
		smp1~audio.dec_all
		{
			sample=innenaus2000.wav
			min=1000
			max=10000
			attack=300
			decay=400
			natural=1500
		}
	}
	gearwhine
	{
		smp0
		{
			sample=gearwhine.wav
			volume=0.15
			min=1
			max=1000
			natural=200
		}
	}
	wind
	{
		;pitch_scale=0.2  
		;pitch_offset=50
		smp0
		{
			sample=wind.wav
			volume=1
			min=0
			max=200
			natural=50
		}
		smp1
		{
			sample=wind2.wav
			volume=2
			min=0
			max=200
			natural=30
		}
	}
}
;-------------------------cameras------------------------------------
camera0
{
  name=behind
  offset
  {
    x=0.029688
    y=-0.154162
    z=-6.870018
  }
  angle
  {
    x=11.694407
    y=179.952771
    z=0.000000
  }
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  ; Type of model to use; 0=outside, 1=inside, 2=none
  model=0
;;  view=0   ;1   ;2  ;try views active
;  wheels=0
  fov=65
}
camera1
{
  name=follow far
  offset
  {
    x=0.000
    y=-1
    z=-7.00
  }
  angle
  {
    x=0.000
    y=-180.000
    z=0.000000
  }
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  fov=90
}
camera2
{
  name=wheels
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=0.0   ;-0.375
    y=0.0   ;1.00   ;-0.55
    z=-3.549000
  }
  angle
  {
    x=10.0   ;-4.2
    y=-180   ;-179
    z=0.000000
  }
  fov=65
  ; Type of model to use; 0=outside, 1=inside, 2=none
  model=2   ;1
  wheels=1
}
camera3
{
  name=right side
  follow
  {
    pitch=
    yaw=1
    roll=
  }
  offset
  {
    x=0.221878
    y=0.508334
    z=-6.635028
  }
  angle
  {
    x=16.388876
    y=-56.944256
    z=1.302094
  }
  fov=40
}
camera4
{
  name=rotats car
  offset
  {
    x=0.014061
    y=0.493751
    z=-5.585001
  }
  angle
  {
    x=18.055532
    y=728.819153
    z=0.260415
  }
;  view=1
}
camera5
{
  name=left side
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  offset
  {
    x=0.198437
    y=0.864583
    z=-6.320009
  }
  angle
  {
    x=9.444325
    y=-268.750336
    z=0.086801
  }
  fov=40
}
camera6
{
  name=top
  follow
  {
    pitch=1
    yaw=1
    roll=0
  }
  offset
  {
    x=-0.037500
    y=0.489584
    z=-4.555015
  }
  angle
  {
    x=86.527802
    y=-308.854156
    z=11.718752
  }
  fov=60
}
camera7
{
  name=rear quarter
  offset
  {
    x=-0.151565
    y=0.889580
    z=-7.395005
  }
  angle
  {
    x=25.083300
    y=-143.576736
    z=2.298599
  }
  follow
  {
    pitch=0
    yaw=1
    roll=1
  }
  fov=35
}
camera8
{
  name=front
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  offset
  {
    x=0.000002
    y=-0.108743
    z=-6.10004
  }
  angle
  {
    x=4.944441
    y=-361.249451
    z=0.000000
  }
  fov=45
}
camera9
{
  name=inside driver
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=0.235
    y=-0.6100
    z=-1.230
  }
  angle
  {
    x=-1.000
    y=-180
    z=-1.736
  }
  ; Type of model to use; 0=outside, 1=inside, 2=none
  model=0
  wheels=1
  fov=79
}