car
{
   name=Subaru Impreza WRX STi GF8 Wagon 
   year=1998
   credits=Oryginalny model - Assetto corsa, konwert - Arouca21,
   comments=
   id=subaruimprezawrxstigf8
   version=090b
   wheels=4
   skid
   {
      sample=SKID.wav
   }
   shadow
   {
      texture=shadow.tga
      width=2.4
      length=4.4
      offset=0
   }
   cg
   {
      x=0
      y=-0.3
      z=0.13
   }
}
graphics
{
  	shadow
  	{
    		model
    		{
      			file=shadow.dof
			use_shaders=0
    		}
		intensity=0.2
  	}
	generic
	{
		model0
                {
                        file=bancos.dof
                }
                model1
                {
                        file=capot.dof
                }
                model2
                {
                        file=choques_frente.dof
                }
                model3
                {
                        file=choques_tras.dof
                }
                model4
                {
                        file=escape.dof
                }
                model5
                {
                        file=internas.dof
                }
                model6
                {
                        file=mala.dof
                }
                model7
                {
                        file=porta_condutor.dof
                }
                model8
                {
                        file=porta_passageiro.dof
                }
                model9
                {
                        file=

    		}
	}
}

body
{
   mass=1330
   inertia
   {
      x=4056
      y=4345
      z=534
   }
   x=0
   y=0
   z=0
   restitution_coeff=0.28
   length=4.415
   width=1.74
   height=1.44
   manual_box=0
   model
   {
      file=body.dof
   }
   model_incar
   {
      file=body.dof
   }
   model_braking_l
   {
      file=hamulce.dof
   }
   cockpit_start=
   cockpit_length=
   model_light_l
   {
      file=lights.dof
   }
}
steer
{
   x=0.36
   y=0.235
   z=0.37
   xa=15.9
   lock=1080
   linearity=0.25
   radius=10
   model
   {
      file=volante.dof
   }
}
engine
{
   mass=100
   idle_rpm=1200
   max_rpm=7000
   curve_torque=torque.crv
   max_torque=290
   reaction=0.95
   autoclutch_rpm=1625
   starter=1
   starter_torque=165
   start_stalled=0
   stall_rpm=900
   start_rpm=1000
   reaction=0
   shifting
   {
      automatic=0
      shift_up_rpm=6500
      shift_down_rpm=3500
      time_to_declutch=350
      time_to_clutch=50
      sample=BLOWOFF.wav

   }
   inertia
   {
      engine=0.2
      final_drive=1
   }
   braking_coeff=4
   rolling_friction_coeff=0
   sample=2500.wav
   sample_rpm=3000
}
gearbox
{
   gears=6
   gear0
   {
      inertia=0.2
      ratio=-3.331
   }
   gear1
   {
      ratio=3.451
      inertia=0.25
   }
   gear2
   {
      ratio=1.951
      inertia=0.13
   }
   gear3
   {
      ratio=1.371
      inertia=0.08
   }
   gear4
   {
      ratio=0.971
      inertia=0.06
   }
   gear5
   {
      ratio=0.741
      inertia=0.04
   }
  end_ratio=3.551
}
clutch
{
   max_torque=700
}
handbrakes
{
   wheels=23
}
differential
{
	type=1
	ratio=3.67
	inertia=0.1
	locking_coeff=85
	output0=0
	output1=1
}

aero
{
   body
   {
      center=0 0 0
      cx=0.34
      area=2.2
   }
   wings=2
   wing0
   {
      name=Overall Lift
      span=1
      cord=1
      coeff_drag=0
      coeff_down=-4.3
      center=0.000 0.000 0.100
      angle=0
      angle_offset=1
   }
   wing1
   {
      name=Rear Wing
      span=1
      cord=1
      angle=0
      angle_offset=1
      coeff_drag=0
      coeff_down=55
      center=0.000 0.000 -1.360
   }
}
antirollbar
{
   count=2
   arb0
   {
      susp_left=0
      susp_right=1
      k=30000
   }
   arb1
   {
      susp_left=2
      susp_right=3
      k=20000
   }
}
susp_front    
{
  	y=0
  	z=1.21

  	restlen=0.35
  	minlen=0.08
  	maxlen=0.30
 	
	k=36000

  	bump_rate=1860
	bump_function=0

  	rebound_rate=3660
	rebound_function=0

	anti_pitch=0.2

	camber_change_per_m=0.1
	caster_offset=-0.032     

  	roll_center
  	{
    		x=0
		y=-0.42
    		z=0
  	}
}
susp_rear
{
  	y=0
  	z=-1.325

  	restlen=0.32
  	minlen=0.06
  	maxlen=0.30

	k=34600

  	bump_rate=1620
	bump_function=0

  	rebound_rate=3460
	rebound_function=0

	anti_pitch=0.2

	camber_change_per_m=0.1

  	roll_center
  	{
    		x=0
		y=-0.38
    		z=0
  	}
}
susp0~susp_front
{
  x=0.79	;1534 mm front track
}
susp1~susp_front
{
  x=-0.79
}
susp2~susp_rear
{
  x=0.79	;1540 mm rear track
}
susp3~susp_rear
{
  x=-0.79
}
tire_model
{
   damping_predict_lat=0.492
   damping_predict_long=0.018
}
pacejka
{
; Lateral force
a0=1.350
a1=-46.000
a2=1345.000
a3=4000
a4=11.000
a5=0.013
a6=-0.140
a7=0.140
a8=0.019
a9=-0.019
a10=-0.180
a111=-11.000
a112=-0.021
a12=0.480
a13=10.200
a13=-2.400
; Longitudinal force
b0=1.350
b1=-90.000
b2=1650
b3=23.300
b4=400.000
b5=0.000
b6=0.007
b7=0.055
b8=-0.024
b9=0.014
b10=0.260
b11=-86.000
b12=350.000
; Aligning moment
c0=2.10
c1=-3.900
c2=-3.900
c3=-1.260
c4=-8.200
c5=0.025
c6=0.000
c7=0.044
c8=-0.580
c9=0.180
c10=0.043
c11=0.048
c12=-0.003
c13=-0.180
c14=0.140
c15=-1.029
c16=0.270
c17=-1.100
optimal_slipratio=0.14
optimal_slipangle=0.16
}


wheel0
{
   x=0
   y=0
   z=0
   powered=1
   power_gearing=0.15
   steering=1
   lock=46
   ackerman=1.41
   toe=0
   camber=-1
   mass=12
   radius=0.300
   max_braking=2500
   braking_factor=0.6
   max_handbrake_torque=0
   inertia=0.7
   rolling_coeff=0.015
   tire_rate=280000
   pacejka~pacejka
   {
   }
   model
   {
      file=left.dof
   }
   model_brake
   {
      file=brake_l.dof
   }
   width=0.225
}
wheel1
{
   x=0
   y=0
   z=0
   powered=1
   power_gearing=0.15
   steering=1
   lock=46
   ackerman=-1.41
   toe=0
   camber=-1
   mass=12
   radius=0.325
   max_braking=2500
   braking_factor=0.6
   max_handbrake_torque=0
   inertia=0.7
   rolling_coeff=0.015
   pacejka~pacejka
   {
   }
   tire_rate=280000
   model
   {
      file=right.dof
   }
   model_brake
   {
      file=brake_r.dof
   }
   width=0.225
}
wheel2
{
   x=0
   y=0
   z=0
   powered=1
   power_gearing=0.35
   steering=0
   lock=0
   ackerman=
   toe=0
   camber=-1
   mass=12
   radius=0.325
   max_braking=1800
   braking_factor=0.4
   max_handbrake_torque=9800
   inertia=0.7
   rolling_coeff=0.015
   tire_rate=280000
   pacejka~pacejka
   {
   }
   model
   {
      file=left.dof
   }
   model_brake
   {
      file=brake_l.dof
   }
   width=.225
}
wheel3
{
   x=0
   y=0
   z=0
   powered=1
   power_gearing=0.35
   steering=0
   lock=0
   ackerman=
   toe=0
   camber=-1
   mass=12
   radius=0.325
   max_braking=1800
   braking_factor=0.4
   max_handbrake_torque=9800
   inertia=0.7
   rolling_coeff=0.015
   tire_rate=280000
   pacejka~pacejka
   {
   }
   model
   {
      file=right.dof
   }
   model_brake
   {
      file=brake_r.dof
   }
   width=.225
}
;----------------------------------------------------------------------------
; Cameras
;----------------------------------------------------------------------------
camera0
{
  offset
  {
    x=0
    y=-0.6
    z=-5.5
  }
  angle
  {
    x=10
    y=180
    z=0
  }
  name=Chase Far
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
}
camera1
{
  offset
  {
    x=0.42
    y=-0.5
    z=0.42
  }
  angle
  {
    x=5
    y=180
    z=0
  }
  name=DriverLeft
  fov=65
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
}
camera2
{
  offset
  {
    x=-0.42
    y=-0.5
    z=0.42
  }
  angle
  {
    x=5
    y=180
    z=0
  }
  name=DriverRight
  fov=65
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
}
camera3
{
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=0
    y=-0.6
    z=1.4
  }
  angle
  {
    x=4
    y=180
    z=0
  }
  name=Inside Right Driver
  fov=70
}
camera4
{
  offset
  {
    x=-0.4
    y=0.45
    z=-7.5
  }
  angle
  {
    x=16
    y=130
    z=0.25
  }
}
camera5
{
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  offset
  {
    x=0.48
    y=0.50
    z=-3.9
  }
  angle
  {
    x=15
    y=-50
    z=2.5
  }
  name=Wheels
  fov=65
}
camera6
{
  follow
  {
    pitch=1
    yaw=1
    roll=0
  }
  offset
  {
    x=-0.25
    y=0.75
    z=-4.8
  }
  angle
  {
    x=23
    y=-360
    z=20
  }
  fov=60
}
camera7
{
  offset
  {
    x=1.4
    y=0
    z=-0.6
  }
  angle
  {
    x=-2
    y=-160
    z=3
  }
  follow
  {
    pitch=0
    yaw=1
    roll=1
  }
  fov=60
}
camera8
{
  offset
  {
    x=0
    y=0
    z=-5
  }
  angle
  {
    x=2
    y=-130
    z=3
  }
  follow
  {
    pitch=0
    yaw=1
    roll=1
  }
  fov=65
}
camera9
{
  name=Driver
  fov=65
  model=0
  wheels=0
  view=2
  name=Inside
  fov=60

  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=0.38  ;leftright
    y=0.50  ;updown
    z=-0.40  ;frontback
  }
  offset_to
  {
    x=0
    y=0
    z=10
  }
  angle
  {
    x=1.000000
    y=180.000000
    z=0.000000
  }
  src
  {
    mass=4
    k=1200
    damping=160
    maxdist=0.11
  }
  dst
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
}
;----------------------driving aids----------------------

traction_control
{
	max_velocity_ratio=2.1
	min_velocity_ratio=2.05
	enable=0
}

abs
{
	max_velocity_ratio=3.1
	min_velocity_ratio=3.1
	enable=1
}


;-----------------------------
audio
{
skid
	{
		sample=Skid.wav
		sample2=skid.wav
	}
	horn
	{
		sample=Horn.wav
	}
    acc_all
  {
    attack=2600
    decay=2600
  }
  ;------------------ OUT
  accelerate_out
  {
    smp0~audio.acc_all
    {
      sample=ej20f/idle.wav
      min=500
      max=1500
      natural=900
      attack=200
      decay=1000
    }
    smp1~audio.acc_all
    {
      sample=ej20f/3000.wav
      min=1500
      max=4500
      natural=3000
      attack=500
     decay=1000
    }
    smp2~audio.acc_all
    {
      sample=ej20f/6000.wav
      min=4500
      max=9000
      natural=6000
      attack=1000
      decay=1000
    }
  }
  decelerate_out
  {
       smp0~audio.acc_all
    {
      sample=ej20f/idle.wav
      min=500
      max=1500
      natural=900
      attack=200
      decay=1000
    }
    smp1~audio.acc_all
    {
      sample=ej20f/3000.wav
      min=1500
      max=4500
      natural=3000
      attack=500
     decay=1000
    }
    smp2~audio.acc_all
    {
      sample=ej20f/6000.wav
      min=4500
      max=9000
      natural=6000
      attack=1000
      decay=1000
    }
  }
  accelerate_in
  {
        smp0~audio.acc_all
    {
      sample=ej20f/idlein.wav
      min=500
      max=1500
      natural=900
      attack=200
      decay=1000
    }
    smp1~audio.acc_all
    {
      sample=ej20f/3000in.wav
      min=1500
      max=4500
      natural=3000
      attack=500
     decay=1000
    }
    smp2~audio.acc_all
    {
      sample=ej20f/6000in.wav
      min=4500
      max=9000
      natural=6000
      attack=1000
      decay=1000
    }
  }
  decelerate_in
  {
       smp0~audio.acc_all
    {
      sample=ej20f/idlein.wav
      min=500
      max=1500
      natural=900
      attack=200
      decay=1000
    }
    smp1~audio.acc_all
    {
      sample=ej20f/3000in.wav
      min=1500
      max=4500
      natural=3000
      attack=500
     decay=1000
    }
    smp2~audio.acc_all
    {
      sample=ej20f/6000in.wav
      min=4500
      max=9000
      natural=6000
      attack=1000
      decay=1000
    }
  }
  gearwhine
  {
    volume=0.5
    pitch_scale=0.001
    pitch_offset=0
    smp0~audio.acc_all
    {
      sample=gearwhine.wav
      min=0
      max=10000
      natural=7000
    }
  }
  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
    }
  }
}