car
{
  name=Scania Irizar Pb 
  year=2006
  credits=Converted by Arouca21
  comments=Viatura do grupo Transdev (servico rede expressos)
  id=ScaniaIrizarpb
  wheels=4
  version=090b
  ff_factor=0.3
  skid
  {
    sample=skid.wav
  }
  shadow
  {
    texture=shadow.tga
    width=2.5
    length=12
  }
  cg
  {
    x=0
    y=0		; cm
    z=0		;44/56 %
  }
}
graphics
{
  	shadow
  	{
    		model
    		{
      			file=shadow.dof
			use_shaders=0
    		}
		intensity=0.2
  	}
	generic
	{
		model0
                {
                        file=bancos.dof
                }
                model1
                {
                        file=interior.dof
                }
                model2
                {
                        file=motor.dof
                }
                model3
                {
                        file=porta.dof
                }
                model4
                {
                        file=bancos_2.dof
                }
                model5
                {
                        file=caixa_velocidades_ectronica.dof
                }
                model6
                {
                        file=
                }
                model7
                {
                        file=
                }
                model8
                {
                        file=
                }
                model9
                {
                        file=

    		}
	}
}

body
{
  mass=6500	;+500 kg unsprung = 7000 kg
  inertia
  {
    x=120000
    y=100000
    z=12000
  }
  model
  {
    file=body.dof
  }
  model_incar
  {
    file=body.dof
  }
  model_braking_l
  {
    file=luzes_travao.dof
  }
  model_light_l
  {
    file=luzes_irizar.dof
  }
model_reverse_l
        {
      file=luz_reverse.dof
  }
 model_lightroad_l
  {
  file=luzes_dentro.dof
  }
  width=2.4
  height=3.08	
  length=11.6
  manual_box=0
}

steer
{
  x=0.62
  y=0.52
  z=5.50
  radius=10
  lock=1080
  linearity=0.25
  xa=50
  model
  {
    file=volante.dof
  }
}

engine
{
  mass=1000
  max_rpm=4000
  idle_rpm=300
  stall_rpm=100
  start_rpm=620
  autoclutch_rpm=700
  starter=1
  start_stalled=1
  starter_torque=200
  curve_torque=torque.crv
  max_torque=900	
  torque_reaction=1.2
  shifting
  {
    automatic=0
    shift_up_rpm=2400
    shift_down_rpm=900
    time_to_declutch=500
    time_in_neutral=160
    time_to_clutch=400
    time_to_declutch_down=200
    time_in_neutral_down=160
    time_to_clutch_down=500
  }
  inertia
  {
    engine=2
  }
  braking_coeff=8
}
;added a lower range first gear for hill starts mainly. 

 ; Speed limiter - velocity at which limiter kicks in (m/s)
speedlimiter
  {
    ; 80 km/h
    velocity=20
    ; Time (ms) to keep throttle cut when going above the limiter velocity
    time=100
 }

gearbox
{
  gears=9
  gear0
  {
    ratio=-5.970
    inertia=0.720
  }
  gear1
  {
    ratio=6.380
    inertia=0.510
  }
  gear2
  {
    ratio=4.280
    inertia=0.510
  }
  gear3
  {
    ratio=2.430
    inertia=0.408
  }
  gear4
  {
    ratio=1.590
    inertia=0.304
  }
  gear5
  {
    ratio=1.000
    inertia=0.050  
  }
gear6
  {
    ratio=0.900
    inertia=0.050  
  }
gear7
  {
    ratio=0.800
    inertia=0.050  
  }
gear8
  {
    ratio=0.700
    inertia=0.030  
  }
}
clutch
{
  max_torque=850
}

handbrakes
{
  wheels=2345
}

differential
{
  type=1
  inertia=1
  ratio=3.91 ;as per FVR spec sheet
  locking_coeff=75
  output0=4
  output1=5
}

aero
{
  body
  {
    center=0 0 0
    cx=0.6
    area=7
  }
  wings=1
  wing0
  {
    name=lift
    span=1
    cord=1
    coeff_drag=0
    coeff_down=-10
    center=0 0 0
    angle=0
    angle_offset=0
  }
}

antirollbar
{
  count=2
  arb0
  {
    susp_left=0
    susp_right=1
    k=0
  }
  arb1
  {
    susp_left=2
    susp_right=3
    k=0
  }
 }
susp_front
{
  y=-0.3
  z=3.34
  restlen=0.28
  minlen=0.0
  maxlen=0.25
  k=150000
  bump_rate=4000
  rebound_rate=10000
  bump_function=3
  rebound_function=0
  anti_pitch=0
  camber_change_per_m=0
  caster_offset=0.0
  roll_center
  {
    x=0
    y=-0.70	; cm
    z=0
  }
}
susp_rear
{
  y=-0.3
  z=-3.07
  restlen=0.28
  minlen=0.0
  maxlen=0.25
  k=200000
  bump_rate=6000
  rebound_rate=12000
  bump_function=3
  rebound_function=0
  anti_pitch=0
  camber_change_per_m=0
  camber_change_steering=0
  roll_center
  {
    x=0
    y=-0.60	; cm
    z=0
  }
}
susp0~susp_front
{
  x=1.1
  camber_change_steering=0.0
  toe_change_per_m=0.0
}
susp1~susp_front
{
  x=-1.1
  camber_change_steering=-0.0
  toe_change_per_m=-0.0
}
susp2~susp_rear
{
  x=1.1
  toe_change_per_m=0.0
}
susp3~susp_rear
{
  x=-1.1
  toe_change_per_m=-0.0
}

pacejka
{
  ; Lateral force
  a0=1.4
  a1=-12
  a2=1350
  a3=30000
  a4=200
  a5=0.05
  a6=-0.2
  a7=-1
  a8=0
  a9=0
  a10=0
  a111=-0.6
  a112=0 
  a12=0
  a13=0
  ; Longitudinal force
  b0=1.5
  b1=-16
  b2=1400
  b3=0	;1
  b4=300
  b5=0
  b6=0
  b7=0
  b8=0
  b9=0	;0.1
  b10=0
  b11=0
  b12=0
  ; Aligning moment
  c0=3
  c1=-1
  c2=1
  c3=-1
  c4=-3.6
  c5=0.2260
  c6=0.0004
  c7=0.22
  c8=-2.31
  c9=0
  c10=0
  c11=-0
  c12=-0
  c13=0
  c14=-0
  c15=-0
  c16=0
  c17=0
  optimal_slipratio=0.2
  optimal_slipangle=0.25
}
wheel_front
{
  x=0
  y=0
  z=0
  steering=1
  powered=0
  camber=0
  lock=70
  mass=100
  inertia=6
  radius=0.5075
  rolling_coeff=0.010
  max_braking=15000
  braking_factor=0.50
  tire_rate=700000
  pacejka~pacejka
  {
  }
}
wheel_rear
{
  x=0
  y=0
  z=0
  powered=1
  steering=0
  camber=0
  mass=150
  inertia=6
  radius=0.5075
  rolling_coeff=0.010
  max_braking=15000
  max_handbrake_torque=15000
  braking_factor=0.50
  tire_rate=1000000
  pacejka~pacejka
  {
  a0=1.4
  a1=-8
  a2=1400
  a3=40000
  a111=-1.0
  b0=1.5
  b1=-12
  b2=1450
  }
}
wheel0~wheel_front
{
  toe=-0.3
  model
  {
    file=leftfront.dof
  }
  model_brake
  {
    ;file=brake_lf.dof
  }
}
wheel1~wheel_front
{
  toe=0.3
  model
  {
    file=rightfront.dof
  }
  model_brake
  {
    ;file=brake_fr.dof
  }
}
wheel2~wheel_rear
{
  toe=-0
  model
  {
    file=leftback.dof
  }
  model_brake
  {
    ;file=brake_bl.dof
  }
}
wheel3~wheel_rear
{
  toe=0
  model
  {
    file=rightback.dof
  }
  model_brake
  {
    ;file=brake_br.dof
  }
}

camera0
{
  name=Driver
  fov=55
  model=1
  view=0
  wheels=1
  offset
  {
    x=0.65
    y=0.90
    z=4.70
  }
  offset_to
  {
    x=0.87
    y=-0.5
    z=15
  }
  src
  {
    mass=1
    k=1000
    damping=50
    maxdist=0.1
  }
  dst
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
}
camera1
{
  name=Left
  fov=60
  model=1
  view=0
  wheels=1
  offset
  {
    x=0.65
    y=0.90
    z=4.70
  }
  offset_to
  {
    x=10
    y=0
    z=15
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.1
  }
  dst
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
}
camera2
{
  name=Right
  fov=60
  model=1
  view=0
  wheels=1
  offset
  {
    x=0.65
    y=0.90
    z=4.70
  }
  offset_to
  {
    x=-10
    y=0
    z=15
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.1
  }
  dst
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
}
camera3
{
  name=Rear
  fov=-70
  model=1
  view=0
  wheels=1
  offset
  {
    x=0.65
    y=0.90
    z=4.70
  }
  offset_to
  {
    x=-2
    y=0
    z=-10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.1
  }
  dst
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
}
camera4
{
  name=Chase
  fov=60
  model=0
  view=0
  wheels=0
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  offset
  {
    x=0
    y=-1
    z=-12
  }
  angle
  {
    x=12
    y=180
    z=0
  }
}
camera5
{
  name=Free chase
  fov=60
  model=0
  view=0
  wheels=0
  follow
  {
    pitch=0
    yaw=0
    roll=0
  }
  offset
  {
    x=0
    y=-1
    z=-12
  }
  angle
  {
    x=12
    y=60
    z=0
  }
}
camera6
{
  name=Rear chase
  fov=60
  model=0
  view=0
  wheels=0
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  offset
  {
    x=0
    y=-1
    z=-12
  }
  angle
  {
    x=12
    y=0
    z=0
  }
}
camera7
{
  name=FrontWheel
  fov=60
  model=0
  view=0
  wheels=0
  offset
  {
    x=2.0
    y=-0.4
    z=1.5
  }
  angle
  {
    x=0
    y=-180
    z=0
  }
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
}
camera8
{
  name=Far
  fov=20
  model=0
  view=0
  wheels=0
  follow
  {
    pitch=0
    yaw=0
    roll=0
  }
  offset
  {
    x=0
    y=-0.5
    z=-30
  }
  angle
  {
    x=10
    y=0
    z=0
  }
}
camera9
{
  name=Hood
  fov=60
  model=0
  wheels=0
  view=0
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=0
    y=-0.7
    z=0.2
  }
  angle
  {
    x=5
    y=180
    z=0
  }
}

audio
{
  skid
  {
    sample=skid.wav
  }
  horn
  {
    sample=horn.wav
  }
  shiftout
  {
    sample=shiftout.wav
  }
  shiftin
  {
    sample=shiftin.wav
  }
  throttle_off
  {
    smp0
    {
      sample=
    }
  }
  accelerate_out
  {
    smp0
    {
      sample=idle.wav
      volume=6.0
      min=100
      max=1000
      attack=0
      decay=1000
      natural=1000
    }
    smp1
    {
      sample=mid.wav
      volume=6.0
      min=2000
      max=10000
      attack=1000
      decay=0
      natural=2500
    }  
  smp2
    {
      sample=turbo.wav
      volume=0.3
      min=2000
      max=10000
      attack=1000
      decay=0
      natural=1000
    }
  smp3
    {
      sample=power.wav
      volume=7.0
      min=1000
      max=10000
      attack=1000
      decay=0
      natural=2500
    }
  smp4
    {
      sample=stall.wav
      volume=4.0
      min=549
      max=650
    }
  smp5
    {
      sample=stall.wav
      volume=4.0
      min=450
      max=550
    }
  }
  decelerate_out
  {
    smp0
    {
      sample=idle.wav
      volume=6.0
      min=100
      max=1000
      attack=0
      decay=1500
      natural=1100
    }
    smp1
    {
      sample=mid.wav
      volume=6.0
      min=2000
      max=10000
      attack=1000
      decay=0
      natural=2500
    }
    smp2
    {
      sample=turbo.wav
      volume=0.3
      min=2000
      max=10000
      attack=1000
      decay=0
      natural=1000
    }
  smp3
    {
      sample=stall.wav
      volume=3.0
      min=549
      max=650
    }
  smp4
    {
      sample=stall.wav
      volume=3.0
      min=450
      max=550
    }
  }
  accelerate_in
  {
    smp0
    {
      sample=idle.wav
      volume=6.0
      min=100
      max=1000
      attack=0
      decay=500
      natural=1100
    }
    smp1
    {
      sample=mid.wav
      volume=6.0
      min=2000
      max=10000
      attack=1000
      decay=0
      natural=2500
    }
    smp2
    {
      sample=turbo.wav
      volume=0.3
      min=2000
      max=10000
      attack=1000
      decay=0
      natural=1000
    }
  smp3
    {
      sample=power.wav
      volume=7.0
      min=1000
      max=10000
      attack=1000
      decay=0
      natural=2500
    }
  }
  decelerate_in
  {
    smp0
    {
      sample=idle.wav
      volume=6.0
      min=100
      max=1000
      attack=0
      decay=1500
      natural=1100
    }
    smp1
    {
      sample=mid.wav
      volume=6.0
      min=2000
      max=10000
      attack=1000
      decay=0
      natural=2500
    }
      sample=turbo.wav
      volume=0.3
      min=2000
      max=10000
      attack=1000
      decay=0
      natural=1000
    }
  }

  wind
  {
    smp0
    {
      sample=wind2.wav
      volume=0.15
      min=1
      max=2
      decay=100
      natural=30
    }
  }
}
