;Model by rts013
;Converted by OPELMAN

car
{
   name=Volvo 242 Lightspeed racing car driver updation
   version=050f
   year=1984
  credits=Model by rts013, converted by Opelman.
id=volvo242rallycar


   wheels=6
   skid
   {
      sample=skid.wav
   }
   cg
   {
      x=0
      y=-0.50
      ;z=0.2
     z=0.3
   }
   shadow
   {
      texture=shadow.tga
      length=3.9
      width=1.5
      offset=0
   }
}
body
{
   mass=1140
   restitution_coeff=0.25
   inertia
   {
      x=1800
      y=2000
      ;z=500
      z=1000
   }
   model
   {

	file=uusbody2.dof

	
      scale
      {
         x=1
         y=1
         z=1
      }
   }
   model_incar
   {
file=sisusta2.dof
   }
   model_braking_l
   {
     file=jvalot.dof
   }

   model_light_r
   {

      file=valot1.dof
    
   }
 model_light_l
   {

      file=driver12.dof
    
   }
 model_driver
{
file=driver12.dof
}


   cockpit_start=1
   cockpit_length=1
}
steer
{
   x=0.35
   y=0.15
   z=0.4
   radius=10
   xa=30
   lock=110
   model
   {
      file=rattiuus.dof
   }
}
engine
{
   mass=97
   ;max_rpm=8000
  max_rpm=8000
   idle_rpm=1025
   stall_rpm=300
   start_rpm=600
   autoclutch_rpm=2500
   starter=1
   starter_torque=50
   curve_torque=torque.crv
   max_torque=304
   reaction=0.5
   shifting

 
   {
      automatic=0
      shift_up_rpm=6000
      shift_down_rpm=4000
      time_to_declutch=250
      time_to_clutch=50
   }
   inertia
   {
      engine=0.135
      final_drive=0.12
   }
   braking_coeff=1.15
   rolling_friction_coeff=0.6
 
   start_stalled=1
}
gearbox
{
   gears=6
   gear0
   {
      ratio=-3.317
      inertia=0.2
   }
   gear1
   {
      ;ratio=2.21
       ratio=3.00
      inertia=0.13
   }
   gear2
  
      ratio=1.49
      inertia=0.09
   }
   gear3
   {
      ratio=1.19
      inertia=0.07
   }
   gear4
   {
      ratio=1.0
      inertia=0.05
}

gear5
{
ratio=0.7
inertia=0.04
 end_ratio=3.95
   
   
}
}
clutch
{
   max_torque=450
}
handbrakes
{
   wheels=23
}
differential
{
   type=1
   ratio=4.3
   locking_coeff=85
   locking_coefficient=75
   intertia=0.45
   clutches=3
   clutch_factor=1
   output0=2
   output1=3
}
aero
{
  body
  {
    center= 0 0.35 0.26
    cx=0.33
    area=2.50
  }
  wings=3
  wing0
  {
    name=BodyLift
    span=1
    cord=0.1
    coeff_drag=0
    coeff_down=0
    center=0 0 0
    angle=0
    angle_offset=10
  }
}
antirollbar
{
   count=2
   arb0
   {
      susp_left=0
      susp_right=1
      k=15000
   }
   arb1
   {
      susp_left=2
      susp_right=3
      k=12000
   }
}
susp_front
{
   y=-0.25
   z=1.23
   ;y=-0.15
   restlen=0.26
   minlen=0.045
   maxlen=0.37
   ;k=55000
   ;bump_rate=8600
   ;rebound_rate=8800
   roll_center
   {
      x=0
      y=-0.55
      z=0
   }
}
susp_rear
{
   y=-0.25
   z=-1.066
   restlen=0.24
   minlen=0.02
   maxlen=0.25
   ;k=52000
   ;bump_rate=8000
   ;rebound_rate=8200
   roll_center
   {
      x=0
      y=-0.505
      z=0
   }
}
susp0~susp_front
{
   x=0.7
   z=1.30
   roll_center
   {
      x=0
      y=-0.55
      z=0
   }
   anti_pitch=0
    k=50000
   bump_rate=4000
   rebound_rate=4800
}
susp1~susp_front
{
   x=-0.7
   z=1.30
   roll_center
   {
      x=0
      y=-0.55
      z=0
   }
   anti_pitch=0
    k=50000
bump_rate=4000
 rebound_rate=4800
}
susp2~susp_rear
{
   x=0.65
   z=-1.285
   roll_center
   {
      x=0
      y=-0.505
      z=0
   }
   anti_pitch=0
  k=44000
 bump_rate=3800
  rebound_rate=4800
}
susp3~susp_rear
{
   x=-0.65
   z=-1.285
   roll_center
   {
      x=0
      y=-0.505
      z=0
   }
   anti_pitch=0
   k=44000
   bump_rate=3800
   rebound_rate=4800
}
susp4~susp_front
{
   x=0.35
   y=0.22
   z=-0.1
   roll_center
   {
      x=0
      y=-0.55
      z=0
   }
   anti_pitch=0
    k=50000
   bump_rate=4000
   rebound_rate=4800
}
susp5~susp_front
{
   x=-0.7
   z=1.30
   roll_center
   {
      x=0
      y=-0.55
      z=0
   }
   anti_pitch=0
    k=50000
bump_rate=4000
 rebound_rate=4800
}
tire_model_front
{
   damping_predict_lat=0.414
   damping_predict_long=0.029
}
tire_model_rear
{
   damping_predict_lat=0.506
   damping_predict_long=0.024
}
;195x60HR15 on 6"1/2 rim at 2.1 bar
pacejka_front
{
   ; Lateral force
   a0=1
   a1=-46
   a2=1325
   a3=1475
   a4=11
   a5=0.013
   a6=-0.14
   a7=0.14
   a8=0.019
   a9=-0.019
   a10=-0.18
   a111=-11
   a112=-0.021
   a12=0.48
   a13=10.2
   a13=-2.4
   ; Longitudinal force
   b0=1.35326
   b1=-90.00000
   b2=1445.00000
   b3=23.30000
   b4=400.00000
   b5=0.00000
   b6=0.00680
   b7=0.05500
   b8=-0.02400
   b9=0.01400
   b10=0.26000
   b11=-86
   b12=350
   ; Aligning moment
   c0=2.10000
   c1=-3.90000
   c2=-3.90000
   c3=-1.26000
   c4=-8.20000
   c5=0.02500
   c6=0.00000
   c7=0.04400
   c8=-0.58000
   c9=0.18000
   c10=0.04300
   c11=0.04800
   c12=-0.00350
   c13=-0.18000
   c14=0.14000
   c15=-1.02900
   c16=0.27000
   c17=-1.10000
   optimal_slipratio=0.14
   optimal_slipangle=0.16
}
pacejka_rear
{
   ; Lateral force
   a0=1
   a1=-46
   a2=1345
   a3=1495
   a4=11
   a5=0.013
   a6=-0.14
   a7=0.14
   a8=0.019
   a9=-0.019
   a10=-0.18
   a111=-11
   a112=-0.021
   a12=0.48
   a13=10.2
   a13=-2.4
   ; Longitudinal force
   b0=1.35326
   b1=-90.00000
   b2=1445.00000
   b3=23.30000
   b4=400.00000
   b5=0.00000
   b6=0.00680
   b7=0.05500
   b8=-0.02400
   b9=0.01400
   b10=0.26000
   b11=-86
   b12=350
   ; Aligning moment
   c0=2.10000
   c1=-3.90000
   c2=-3.90000
   c3=-1.26000
   c4=-8.20000
   c5=0.02500
   c6=0.00000
   c7=0.04400
   c8=-0.58000
   c9=0.18000
   c10=0.04300
   c11=0.04800
   c12=-0.00350
   c13=-0.18000
   c14=0.14000
   c15=-1.02900
   c16=0.27000
   c17=-1.10000
   optimal_slipratio=0.14276
   optimal_slipangle=0.16
}
wheel_front
{
   y=0
   z=0
   steering=1
   lock=80
   mass=20
   inertia=0.7
   radius=.32
   rolling_coeff=0.015
   max_braking=1800
   braking_factor=0.6
   tire_rate=220000
   pacejka~pacejka_front
   {
   }
}
wheel_rear
{
   y=0
   z=0
   camber=0
   steering=0
   mass=20
   inertia=0.7
   radius=.32
   rolling_coeff=0.015
   max_braking=1200
   braking_factor=0.6
   tire_rate=260000
   pacejka~pacejka_rear
   {
   }
   max_handbrake_torque=1200
   {
   }
}
wheel0~wheel_front
{
   x=0
   toe=0
   model
   {
       file=leftfrontwheel.dof
      scale
      {
         x=1
         y=1
         z=1
      }
   }
   model_brake
   {
      file=
   }
   ;ackerman=1.1
   mass=20
   y=0
   z=0
   steering=1
   max_braking=1800
   radius=0.32
   inertia=1.2
   lock=80
   camber=-3.2
   braking_factor=1.0
   tire_rate=220000
}
wheel1~wheel_front
{
   x=0
   toe=0
   model
   {
       file=rightfrontwheel.dof
      scale
      {
         x=1
         y=1
         z=1
      }
   }
   model_brake
   {
      file=
   }
   mass=20
   ;ackerman=-1.1
   y=0
   z=0
   steering=1
   max_braking=1800
   radius=0.32
   inertia=1.2
   lock=80
   camber=-3.2
   braking_factor=1.0
   tire_rate=220000
}
wheel2~wheel_rear
{
   x=0
   toe=0
   model
   { file=leftfrontwheel.dof
      scale
      {
         x=1
         y=1
         z=1
      }
   }
   model_brake
   {
      file=
   }
   y=0
   z=0
   steering=0
   mass=20
   max_braking=1200
   braking_factor=0.65
   radius=0.32
   inertia=1.2
   lock=0
   camber=0
   max_handbrake_torque=1200
   tire_rate=260000
}
wheel3~wheel_rear
{
   x=0
   toe=0
   model
   { file=rightfrontwheel.dof
      scale
      {
         x=1
         y=1
         z=1
      }
   }
   model_brake
   {
      file=
   }
   y=0
   z=0
   steering=0
   mass=20
   max_braking=1200
   braking_factor=0.65
   radius=0.32
   inertia=1.2
   lock=0
   camber=0
   max_handbrake_torque=1200
   tire_rate=260000
}
wheel4~wheel_front
{
   x=0
   toe=0
   model
   {
       file=rightfrontwheel.dof
      scale
      {
         x=1
         y=1
         z=1
      }
   }
   model_brake
   {
      file=driver.dof
   }
   mass=1
   ;ackerman=-1.1
   y=0
   z=0
   steering=1
   max_braking=1800
   radius=0
   inertia=1.2
   lock=80
   ;camber=-3.2
   braking_factor=1.0
   tire_rate=220000
}
wheel5~wheel_front
{
   x=0
   toe=0
   model
   {
       file=rightfrontwheel.dof
      scale
      {
         x=1
         y=1
         z=1
      }
   }
   model_brake
   {
      file=
   }
   mass=1
   ;ackerman=-1.1
   y=0
   z=0
   steering=1
   max_braking=1800
   radius=0
   inertia=1.2
   lock=80
   ;camber=-3.2
   braking_factor=1.0
   tire_rate=220000
}
camera0
{
   offset
   {
      x=0.043750
      y=-0.170829
      z=-5.170018
   }
   angle
   {
      x=15.555530
      y=180.000046
      z=0.000000
   }
   follow
   {
      pitch=0
      yaw=1
      roll=0
   }
   fov=45
}
camera1
{
   offset
   {
      x=0.042186
      y=-0.530001
      z=0.909980
   }
   angle
   {
      x=6.666651
      y=180.000000
      z=0.000000
   }
   follow
   {
      pitch=1
      yaw=1
      roll=1
   }
   fov=75
   view=1
}
camera2
{
   offset
   {
      x=0.028125
      y=-0.327084
      z=-1.185000
   }
   angle
   {
      x=0
      y=180
      z=0.000000
   }
   follow
   {
      pitch=1
      yaw=1
      roll=1
   }
   fov=65
   view=1
}
camera3
{
   follow
   {
      pitch=0
      yaw=1
      roll=0
   }
   offset
   {
      x=0.037503
      y=-0.129166
      z=-6.830026
   }
   angle
   {
      x=4.722209
      y=-19.097027
      z=-6.163182
   }
   name=Wheels
   fov=40
   view=1
}
camera4
{
   offset
   {
      x=0.217185
      y=-0.083332
      z=-4.600001
   }
   angle
   {
      x=3.749972
      y=827.256409
      z=-1.388890
   }
   view=1
   fov=50
}
camera5
{
   follow
   {
      pitch=0
      yaw=1
      roll=0
   }
   offset
   {
      x=0.048438
      y=-0.245834
      z=-5.370008
   }
   angle
   {
      x=27.083218
      y=-269.271179
      z=-0.086811
   }
   name=High
   fov=40
   view=1
}
camera6
{
   follow
   {
      pitch=1
      yaw=1
      roll=0
   }
   offset
   {
      x=-0.364063
      y=-0.197916
      z=-4.010014
   }
   angle
   {
      x=15.000030
      y=-303.993134
      z=17.187500
   }
   fov=60
   view=1
}
camera7
{
   offset
   {
      x=-0.237502
      y=-0.150004
      z=-5.725006
   }
   angle
   {
      x=12.083304
      y=-157.639267
      z=-0.086816
   }
   follow
   {
      pitch=0
      yaw=1
      roll=1
   }
   fov=35
   view=1
}
camera8
{
   follow
   {
      pitch=1
      yaw=1
      roll=1
   }
   offset
   {
      x=-0.785935
      y=-0.262493
      z=-1.049996
   }
   angle
   {
      x=6.388885
      y=-358.645233
      z=0.000000
   }
   fov=55
   model=0
   wheels=0
   view=1
}
camera9
{
   follow
   {
      pitch=1
      yaw=1
      roll=1
   }
   offset
   {
      x=0.324563
      ;y=-0.309160
      y=-0.4
      z=-0.199996
   }
   angle
   {
      x=1.249992
      y=-178.958298
      z=0.000000
   }
   fov=65
   ; Type of model to use; 0=outside, 1=inside, 2=none
   model=1
   wheels=0
   view=1
   name=interior
}

audio
{
  	skid
  	{
    		sample=skid.wav
  	}
  	acc_all
  	{
    		attack=1300
    		decay=1300
  	}
  	accelerate_out
  	{
    		volume=1.5
    		smp0~audio.acc_all
    		{
      			sample=engine1000.wav
      			min=0
      			max=1001
      			natural=1000
    		}
    		smp1~audio.acc_all
    		{
      			sample=engine2000.wav
      			min=2000
      			max=2001
      			natural=3500
    		}
     		smp2~audio.acc_all
    		{
      			sample=engine6000.wav
      			min=3000
      			max=5001
      			natural=6000
    		}
    		smp3~audio.acc_all
    		{
     			sample=engine7000.wav
      			min=6000
      			max=12000
      			natural=8000
    		}
  	}
  	decelerate_out
  	{
   		volume=0.8
    		smp0~audio.acc_all
    		{
      			sample=engine1000.wav
      			min=0
      			max=1001
     			natural=1000
    		}
    		smp1~audio.acc_all
    		{
      			sample=engine2000.wav
      			min=2000
      			max=2001
      			natural=3500
    		}
     		smp2~audio.acc_all
    		{
      			sample=engine6000.wav
      			min=3000
      			max=6001
      			natural=6000
    		}
    		smp3~audio.acc_all
    		{
      			sample=engine7000.wav
      			min=7000
     			max=12000
      			natural=8000
    		}
	}
}