car
{
  name=Vojta Kart Racer
  year=2013
  credits=Converted and modified by JerryCBM
  comments=Original by JVC from "Mafia"
  id=VojtaKartRacer
  version=050f
  front_area=2.1
  skid
  {
    sample=skid.wav
  }
  shadow
  {
   texture=kshadow.tga
   length=2.1
   width=1.5
   offset_z=.05
  }
  cg
  {
    x=0
    y=0 
    z=0.1
  }
}
body
{
  mass=120
  restitution_coeff=0.0001
  inertia
  {
    x=57  
    y=70
    z=25   
  }
  model
  {
    file=kart.dof
    
  }
  model_light_l
  {
    file=lights.dof
  }
  model_braking_l
  {
    file=brakes.dof
  }
  model_lightroad_l
  {
    file=lights.dof
  }
  width=1.18
  height=.67
  length=1.91
  manual_box=0
}
steer
{
  x=0.1
  y=0.323
  z=.14
  radius=11  
  xa=45  
  lock=100  
  linearity=0.5
  model
  {
    file=steering_wheel.dof
  }   
}
engine
{
  mass=20  
  max_rpm=9000
  idle_rpm=1200
  start_rpm=990
  autoclutch_rpm=10000  
  starter=1
  starter_torque=110
  curve_torque=torque.crv
  max_torque=80
  start_stalled=0
  reaction=1
  shifting
  {
    automatic=0
    shift_up_rpm=8200    
    shift_down_rpm=5000  
    time_to_declutch=100  
    time_to_clutch=100  
  }
  inertia
  {
    engine=0.04  
    final_drive=0.04
  }
  braking_coeff=10
  rolling_friction_coeff=10
  sample=kart.wav
  sample_rpm=8500  
}
gearbox
{
  gears=4
  gear0
  {
    ratio=-2
    inertia=0.13
  }
  gear1
  {
    ratio=2  
    inertia=0.13
  }
  gear2
  {
    ratio=1.1  
    inertia=0.10
  } 
  gear3
  {
    ratio=0.75
    inertia=0.08
  }
  end_ratio=3
}
clutch
{
  max_torque=200
}
differential
{
  type=0
  locking_coeff=75 
  power_angle=50 
  coast_angle=50
  clutches=3
  clutch_factor=1.0  
  ratio=3  
  output0=2
  output1=3
}
traction_control
{
  enable=0
  ; Allowed front/rear wheel speed ratio (1.1=10% difference allowed)
  max_velocity_ratio=1.1
  ; When to turn TC off
  min_velocity_ratio=1.0
}
aero
{
  body
  {
    center=0 0 0
    cx=0.22
    area=1.6
  }
  wings=2
  wing0
  {
    name=FrontDam 
    span=1.6
    cord=0.15
    coeff_drag=1 
    coeff_down=4   
    center=0 -0.1 2
    angle=32
    angle_offset=1.8
  }
  wing1
  {
    name=RearWing  
    span=1.2
    cord=0.15
    coeff_drag=1.5  
    coeff_down=15  
    center=0 -0.5 -1.77
    angle=35
    angle_offset=2
  }
}
antirollbar
{
  count=0
  arb0
  {
    susp_left=0
    susp_right=1
    k=40000  
  }
  arb1
  {
    susp_left=2
    susp_right=3
    k=22000  
  }
}
; Suspension
susp0
{
  x=.45
  y=0.01  
  z=0.717
  restlen=.04
  minlen=.0
  maxlen=.08
  slices=5
  k=48000 
  bump_rate=1450  
  rebound_rate=1510  
  roll_center
  {
    x=0
    y=0
    z=0
  }
}
susp1
{
  x=-.45
  y=0.01  
  z=0.717
  restlen=.04
  minlen=.0
  maxlen=.08
    slices=5
  k=48000  
  bump_rate=1450  
  rebound_rate=1510  
  roll_center
  {
    x=0
    y=0
    z=0
  }
}
susp2
{
  x=.623
  y=0.04 
  z=-0.665
  restlen=.04
  minlen=.0
  maxlen=.08
  k=48000  
  bump_rate=1340  
  rebound_rate=1395  
  roll_center
  {
    x=0
    y=0
    z=0
  }
}
susp3
{
  x=-.623
  y=0.04 
  z=-0.665
  restlen=.04
  minlen=.0
  maxlen=.08
  k=48000  
  bump_rate=1340  
  rebound_rate=1395  
  roll_center
  {
    x=0
    y=0
    z=0
  }
}
;
; Wheels
;
tire_model
{
  relaxation_length_lat=0.91
  relaxation_length_long=.091
  damping_speed=3.45
  damping_coefficient_lat=0.8
  damping_coefficient_long=0.8
}
pacejka
{
  a0=1.4929
  a1=-55.2084
  a2=2000  
  a3=4100  
  a4=14  
  a5=0.0047966
  a6=-0.3875
  a7=1
  a8=-0.045399
  a9=0.0042832
  a10=.086536
  a111=0  
  a112=-.2231
  a12=0  
  a13=0  
  ; Longitudinal force
  b0=1.45
  b1=0  
  b2=1700  
  b3=-0.00736
  b4=130 
  b5=-0.11 
  b6=-0.00386
  b7=0.085055
  b8=-10  
  b9=0 
  b10=0 
  b11=0
  b12=0
  ; Aligning moment
  c0=2.2264
  c1=-3.0428
  c2=-9.2284
  c3=0.500088
  c4=-5.56696
  c5=-0.25964
  c6=-0.00129724
  c7=-0.358348
  c8=3.74476
  c9=-15.1566
  c10=0.0021156
  c11=0.000346
  c12=0.00913952
  c13=-0.244556
  c14=0.100695
  c15=-1.398
  c16=0.44441
  c17=-0.998344
}
pacejka_rear
{
  a0=1.6929
  a1=0  
  a2=1950 
  a3=4200  
  a4=15  
  a5=0.0047966
  a6=-0.3875
  a7=1
  a8=-0.045399
  a9=0.0042832
  a10=.086536
  a111=-7.9730
  a112=-.2231
  a12=7.6680
  a13=45.8764
  ; Longitudinal force
  b0=1.65
  b1=0 
  b2=1750 
  b3=-0.00736
  b4=140 
  b5=-0.11 
  b6=-0.00386
  b7=0.085055
  b8=0.075719   
  b9=0 
  b10=0 
  b11=0
  b12=0
  ; Aligning moment
  c0=2.2264
  c1=-3.0428
  c2=-9.2284
  c3=0.500088
  c4=-5.56696
  c5=-0.25964
  c6=-0.00129724
  c7=-0.358348
  c8=3.74476
  c9=-15.1566
  c10=0.0021156
  c11=0.000346
  c12=0.00913952
  c13=-0.244556
  c14=0.100695
  c15=-1.398
  c16=0.44441
  c17=-0.998344
}
wheel0
{
  x=0
  y=0
  z=0
  steering=1
  powered=0
  ackerman=1.0
  camber=0
  toe=1
  lock=60  
  mass=1
  inertia=0.2  
  radius=.11
  width=.19
  slices=360
  tire_rate=270000  
  max_braking=500
  braking_factor=0  
  friction_road=2   
  pacejka~pacejka
  model
  {
    file=kfl.dof
  }
  model_brake
  {
    file=kxfl.dof
  }

}
wheel1
{
  x=0
  y=0
  z=0
  steering=1
  powered=0
  ackerman=-1.0
  camber=0
  toe=0
  lock=60  
  mass=1
  inertia=0.2
  radius=.11
  width=.19
  slices=360
  tire_rate=270000  
  max_braking=500
  braking_factor=0  
  friction_road=2  
  pacejka~pacejka
  model
  {
    file=kfr.dof
  }
  model_brake
  {
    file=kxfr.dof
  }

}
wheel2
{
  x=0
  y=0
  z=0
  steering=0
  powered=1
  camber=0
  mass=2
  inertia=0.3
  radius=.14
  width=.28
  slices=360
  tire_rate=380000  
  max_braking=500  
  braking_factor=1 
  friction_road=2.5  
  pacejka~pacejka_rear
  model
  {
    file=krl.dof
  }
  model_brake
  {
    file=
  }

}
wheel3
{
  x=0
  y=0
  z=0
  steering=0
  powered=1
  camber=0
  mass=2
  inertia=0.3
  radius=.14
  width=.28
  slices=360
  tire_rate=380000   
  max_braking=500  
  braking_factor=1  
  friction_road=2.5 
  pacejka~pacejka_rear
  model
  {
    file=krr.dof
  }
  model_brake
  {
    file=
  }

}
camera0
{
  offset
  {
    x=0  
    y=-0.7  
    z=-0.6
  }
  angle
  {
    x=0  
    y=180  
    z=0  
  }
  follow
  {
    pitch=1  
    yaw=1
    roll=1
  }
  fov=90
  }
}

camera1
{
  offset
  {
    x=0  
    y=-0.3  
    z=0.8 
  }
  angle
  {
    x=0  
    y=180  
    z=0  
  }
  name=Side view
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  fov=120
}
camera2
{
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  offset
  {
    x=0
    y=-1.1
    z=-2.6
  }
  angle
  {
    x=10
    y=180
    z=0
  }
  fov=80
}

camera3
{
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  offset
  {
    x=0.342190
    y=-0.170833
    z=-2.409997
  }
  angle
  {
    x=-0.694461
    y=36.632000
    z=-2.083333
  }
  name=Wheels
}
camera4
{
  offset
  {
    x=-0.493750
    y=-2.308333
    z=-8.135000
  }
  angle
  {
    x=2.361111
    y=-110.763885
    z=0
  }
}
camera5
{
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=0  
    y=-.9
    z=1
  }
  angle
  {
    x=0
    y=0  
    z=0
  }
  fov=75
}
camera6
{
  offset
  {
    x=0  
    y=.4 
    z=-10  
  }
  angle
  {
    x=44  
    y=0
    z=0
  }
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  fov=30
}
camera7
{
  offset
  {
    x=0
    y=-0.7
    z=-4
  }
  angle
  {
    x=0
    y=-0.9
    z=0
  }
  follow
  {
    pitch=0
    yaw=1
    roll=1
  }
}
camera8
{
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  offset
  {
    x=0
    y=-1
    z=-6
  }
  angle
  {
    x=21.666662
    y=-105.555519
    z=2.430554
  }
}
camera9
{
  offset
  {
    x=0.001563
    y=-0.406250
    z=-4.755003
  }
  angle
  {
    x=15.138849
    y=180.173615
    z=0
  }
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
}
audio
{
  acc_all
  {
    attack=1000
    decay=1000
  }
  accelerate_out
  {
    volume=40
    smp0~audio.acc_all
    {
      sample=engine.wav
      min=0
      max=14000
      attack=0
      decay=0
      natural=9500
    }
  }
  decelerate_out
  {
    volume=20 ;1 
    smp0~audio.acc_all
    {
      sample=engine.wav
      min=500
      max=14000
      decay=0
      natural=9500
    }



     
  }
}
