car
{
   name=Mazda RX-8 GT
   id=mazdarx8
   version=090
   credits=0-60mph(100kmh): 5.9sec Top Speed: 150mph(238kmh) Start the Revolution!
   comments=Model/textures: stecki, Ini/sounds: MazKid, Gauges: Georg
   year=2004 - 238HP 1.3L Renesis Rotary Engine. 6 Speed manuel. 50/50 wieght distribution.
   wheels=4
   skid
   {
      sample=skid.wav
   }
   shadow
   {
      texture=Tex\shadow.tga
      width=2.3
      length=4.6
      offset=0
   }
   cg
   {
      x=0
      y=-0.31
      z=0.005
   }
  ff_factor=0.75
  ff_gain=0.75
  ff_damping=0
  ff_friction=1
  ff_inertia=1
  ff_stickfriction=1
}
body
{
   mass=1374
   inertia
   {
      x=1800
      y=2200
      z=400
   }
   model
   {
      file=body.dof
   }
   model_incar
   {
      ;    file=int.dof
   }
   model_braking_l
   {
          file=brakelights.dof
   }
   width=1.9
   height=1.15
   length=4.42
   manual_box=1
   box_offset=0 0.33 0
   model_light_l
   {
      file=
   }
}
steer
{
   x=0.35
   y=0.108
   z=0.288
   radius=10
   xa=17.5
   lock=1260
   linearity=0.714
   model
   {
      file=steer_lo.dof
   }
}
engine
{
   mass=0
   max_rpm=9000
   idle_rpm=750
   stall_rpm=400
   start_rpm=900
   autoclutch_rpm=2500
   autoclutch=0
   starter=1
   start_stalled=1
   starter_torque=100
   curve_torque=torque.crv
   max_torque=1
   reaction=0
   shifting
   {
      automatic=0
      fast=0
      shift_up_rpm=8600
      shift_down_rpm=5200
      time_to_declutch=110
      time_in_neutral=30
      time_to_clutch=50
      time_to_declutch_down=80
      time_to_clutch_down=50
      time_in_neutral_down=100
      sample=shift.wav
   }
   inertia
   {
      engine=0.25
      final_drive=0.12
   }
   braking_coeff=1.3
   rolling_friction_coeff=0.2
   sample=Engine.wav
   sample_rpm=5700
   start_stalled=0
}
fuel
{
  ; Fuel type: 0=gasoline, 1=diesel. Determines efficiencies
  type=0
  ; Max storage in liters
  max=70.0
  ; Brake specific fuel consumption (gram/Joule); an idea of the efficiency of the engine
  bsfc=2.75e-5
}
gearbox
{
   gears=7
   gear0
   {
      ratio=-2.222
      inertia=0.1
   }
   gear1
   {
      ratio=3.76
      inertia=0.1
   }
   gear2
   {
      ratio=2.269
      inertia=0.08
   }
   gear3
   {
      ratio=1.645
      inertia=0.06
   }
   gear4
   {
      ratio=1.187
      inertia=0.04
   }
   gear5
   {
      ratio=1
      inertia=0.02
   }
   gear6
   {
      ratio=0.843
      inertia=0.01
   }
}
clutch
{
   max_torque=475
}
handbrakes
{
   wheels=23
}
differentials
{
	count=1
	diff0
	{
		type=3
		ratio=4.444
		inertia=0.2
		friction=60;ca.60N "Reibung" für alle Teile
		preload=15
		output0=2
		output1=3
		power_ratio=2.333;1.667;->25% Sperre;7.000;->75% Sperre;2.636;->45%;2.333;->40%
		coast_ratio=1.667;1.667;->25% Sperre
	}
}

aero
{
	body
	{
		center=0 0 0
		cx=0.33
		area=1.84
	}
	wings=5
	;was already here, who cares for 1kg downforce
	wing0
	{
		name=Overall aerodynamic effect
		span=1
		cord=0.1
		coeff_drag=0
		coeff_down=0.3	
		;1kg downforce @ 200km/h
		center=0 -0.2 0
		angle=0
		angle_offset=10
	}
	;obvious I guess
	wing1
	{
		name=Frontspoiler
		span=1.7
		cord=0.2
		coeff_drag=0.4
		coeff_down=2.2
		center=0 -0.4 1.9
		angle=1
		angle_offset=1
	}
	;obvious isn't it?
	wing2
	{
		name=Rearwing
		span=1.7
		cord=0.3
		coeff_drag=2.5
		coeff_down=3.5
		center=0 0.3 -1.9
		angle=1
		angle_offset=1
	}
	;reardiffusor (speeds up air at the end of the car, therefore having lower pressure under the car =  downforce and better aerodynamic if I read it up right
	wing3
	{
		name=Reardiffusor
		span=1.6
		cord=0.3
		coeff_drag=-0.6
		coeff_down=0.6
		center=0 -0.4 -1.9
		angle=3
		angle_offset=3
	}
	;aids lower pressure creation (less turbuleces too, wohoo)
	wing4
	{
		name=Underbody_Plate
		span=1.8
		cord=4.3
		coeff_drag=-0.15
		coeff_down=0.15
		center=0 -0.3 0
		angle=0.1
		angle_offset=0.1
	}
}
antirollbar
{
   count=0
   arb0
   {
      susp_left=0
      susp_right=1
      k=36000
   }
   arb1
   {
      susp_left=2
      susp_right=3
      k=15000
   }
}
susp_front
{
   y=-0.15
   z=1.36
   minlen=0.08
   maxlen=0.3
   restlen=0.29
   anti_pitch=0
   k=43300
   bump_rate=6550
   rebound_rate=6550
   roll_center
   {
      x=0
      y=-0.6
      z=0
   }
}
susp_rear
{
   y=-0.15
   z=-1.35
   minlen=0.07
   maxlen=0.32
   restlen=0.3
   anti_pitch=0
   k=45800
   bump_rate=5950
   rebound_rate=5800
   roll_center
   {
      x=0
      y=-0.57
      z=0
   }
}
susp0~susp_front
{
   x=0.75
}
susp1~susp_front
{
   x=-0.75
}
susp2~susp_rear
{
   x=0.7525
}
susp3~susp_rear
{
   x=-0.7525
}

tire_model_front
{
   damping_predict_lat=0.672
   damping_predict_long=0.028
}
tire_model_rear
{
   damping_predict_lat=0.734
   damping_predict_long=0.031
}
pacejka
{
  ; Pacejka constants for all tires
  ; Lateral force
a0=1.45 
a1=-37.5
a2=1216
a3=1632
a4=6.4
a5=0.013
a6=-0.336
a7=1.14
a8=0.019
a9=-0.019
a10=-0.18
a111=-20.7
a112=-0.021
a12=0.48
a13=12.2
; Longitudinal force
  b0=1.45
  b1=-75
  b2=1338
  b3=23.3
  b4=350
  b5=0
  b6=0.00
  b7=0.055
  b8=-0.024
  b9=0
  b10=0.26
  b11=-86
  b12=0
; Aligning moment
  c0=2.3 
  c1=-3.8 
  c2=-3.14 
  c3=0.24
  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.14 
  c15=-1.029 
  c16=0.27 
  c17=-1.1
   optimal_slipratio=0.10
   optimal_slipangle=0.14
}

skidding_default
{
	long_start=0.6
	long_max=1.1
	long_start_n=0.6
	long_max_n=1.1
	lat_start=0.6
	lat_max=1.1
}
wheel_front
{
   y=0
   z=0
   steering=1
   powered=0
   lock=40
   ackerman=1.1
   mass=25
   inertia=1.1
   radius=.34
   rolling_coeff=0.015
   max_braking=2000
   braking_factor=0.65
   tire_rate=190000
   pacejka~pacejka
   {
   }
}
wheel_rear
{
   y=0
   z=0
   steering=0
   powered=0
   mass=25
   inertia=1.1
   radius=.34
   rolling_coeff=0.015
   max_braking=2000
   braking_factor=0.35
   tire_rate=210000
   max_handbrake_torque=2750
   pacejka~pacejka
   {
   }
}
wheel0~wheel_front
{
   x=0
   toe=0
   camber=-0.9
   model
   {
      file=l_wheel.dof
   }
   model_brake
   {
      ;    file=brake_lf.dof
      file=
   }
}
wheel1~wheel_front
{
   x=0
   toe=0
   camber=-0.9
   model
   {
      file=r_wheel.dof
   }
   model_brake
   {
      ;    file=brake_rf.dof
      file=
   }
}
wheel2~wheel_rear
{
   x=0
   toe=-1.5
   camber=-1.09
   model
   {
      file=l_wheel.dof
   }
   model_brake
   {
      ;    file=brake_lr.dof
      file=
   }
}
wheel3~wheel_rear
{
   x=0
   toe=1.5
   camber=-1.09
   model
   {
      file=r_wheel.dof
   }
   model_brake
   {
      ;    file=brake_rr.dof
      file=
   }
}
camera0
{
   offset
   {
      x=0.0
      y=-0.904162
      z=-6.870018
   }
   angle
   {
      x=15.694407
      y=180
      z=0.000000
   }
   follow
   {
      pitch=0
      yaw=1
      roll=0
   }
}
camera1
{
   offset
   {
      x=0.0
      y=-0.700001
      z=-4.715009
   }
   angle
   {
      x=6.666651
      y=180
      z=0.000000
   }
   follow
   {
      pitch=0
      yaw=1
      roll=0
   }
   fov=50
   view=1
}
camera2
{
   offset
   {
      x=0
      y=-.2
      z=-1.3
   }
   angle
   {
      x=10
      y=180
      z=0.000000
   }
   follow
   {
      pitch=1
      yaw=1
      roll=1
   }
}
camera3
{
   follow
   {
      pitch=
      yaw=1
      roll=
   }
   offset
   {
      x=0.221878
      y=.55
      z=-6.635028
   }
   angle
   {
      x=16.388876
      y=-56.944256
      z=1.302094
   }
   name=Wheels
   fov=40
   view=1
}
camera4
{
   offset
   {
      x=0.014061
      y=0.493751
      z=-5.585001
   }
   angle
   {
      x=18.055532
      y=728.819153
      z=0.260415
   }
   view=1
}
camera5
{
   follow
   {
      pitch=0
      yaw=1
      roll=0
   }
   offset
   {
      x=0.198437
      y=0.464583
      z=-6.320009
   }
   angle
   {
      x=9.444325
      y=-268.750336
      z=0.086801
   }
   name=High
   fov=40
   view=1
}
camera6
{
   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
   view=1
}
camera7
{
   offset
   {
      x=-0.151565
      y=0.489580
      z=-6.395005
   }
   angle
   {
      x=7.083300
      y=-143.576736
      z=3.298599
   }
   follow
   {
      pitch=0
      yaw=1
      roll=1
   }
   fov=35
   view=1
}
camera8
{
   follow
   {
      pitch=0
      yaw=1
      roll=0
   }
   offset
   {
      x=0.0
      y=-0.6
      z=0.43
   }
   angle
   {
      x=6.944441
      y=-361.249451
      z=0.000000
   }
   fov=75
   model=0
   wheels=0
   view=1
}
camera9
{
   follow
   {
      pitch=1
      yaw=1
      roll=1
   }
   offset
   {
      x=0.4
      y=-0.435410
      z=-0.2
   }
   angle
   {
      x=-4.166675
      y=-180
      z=0.000000
   }
   fov=85
   ; Type of model to use; 0=outside, 1=inside, 2=none
   model=0
   wheels=2
   view=0
   name=interior
}
audio
{
  skid
  {
		sample=skid.wav
		sample2=skid_lon.wav
  }
  acc_all
  {
    attack=1300
    decay=1300
  }

  accelerate_out
  {
   volume=0.9
   smp0~audio.acc_all
   {
   sample=engine.wav
   min=50
   max=9500
   natural=5700
   attack=2000
   decay=2000
   }
  }

  decelerate_out
  {
   volume=0.7
   smp0~audio.acc_all
   {
   sample=engine.wav
   min=3500
   max=9500
   natural=5500
   attack=2000
   decay=2000
   }
  }
  accelerate_in
  {
   volume=0.7
   smp0~audio.acc_all
   {
   sample=engine.wav
   min=50
   max=9500
   natural=5700
   attack=2000
   decay=2000
   }
  }

  decelerate_in
  {
   volume=0.6
   smp0~audio.acc_all
   {
   sample=engine.wav
   min=3500
   max=9500
   natural=5500
   attack=2000
   decay=2000
   }
  }
}