car
{
  name=Skoda Octavia I Viatura Oficial Da GNR-BT
  year=2000
  credits=Converted by Filip Z M3 Edited by Arouca21
  comments=Skoda Octavia I RS 1.8T 180KM

  id=octafrs18t
  version=090
  wheels=4

  skid
  {
    sample=skid.wav
  }
  shadow
  {
    texture=shadow.tga
    width=1.6
    length=4.4
    offset_z=0
  }
  cg
  {
    x=0
    y=-0.20
    z=0.15
  }
  ff_factor=0.85
}
graphics
{
  shadow
  {
    model
    {
      file=skoda.dof
      use_shaders=1
    }
    intensity=0.3
  }
  generic
  {
   model0
   {
     file=
   }
   model1
   {
     file=
   }
   model2
   {
     file=
   }
  }
}
lights
{
  light0
  {
    texture=light.tga
    fov=55.0
    aspect=5.0
    z=2.4
    far=120
    pitch=0
    color=2.25 2.25 3
  }
}
;----------------------------------------------------------------------
;Body:}
body
{
  mass=1615
  inertia
  {
    x=2300
    y=2500
    z=700
  }
  width=1.986	;1986 mm
  height=1.33	;1332 mm
  length=4.12	;4118 mm
  manual_box=0
  model
  {
    file=skoda.dof
  }
  model_incar
  {
    file=skoda.dof
  }
  model_braking_l
  {
    file=brake.dof
  }
  model_light_l
  {
    file=lights.dof
  }
  model_lightroad_l
  {
    file=lights.dof
  }
  model_collide
  {
    file=
  }
  model_reverse_l
  {
    ; Reverse gear indicators
    file=
  }
  model_reverse_r
  {
    file=
  }
}
;----------------------------------------------------------------------
;Steer:

steer
{
  x=0.4037
  y=0.0320
  z=0.4080
  radius=45
  xa=20
  lock=900
  model
  {
    file=kiera.dof
  }
}
;----------------------------------------------------------------------
;Engine:

engine
{
	x=0
	y=0
	z=0
	size=0
	mass=0

	idle_rpm=850
	max_rpm=5500
	stall_rpm=500
	start_rpm=1500
	start_stalled=1
	starter_torque=100
	autoclutch=0
	autoclutch_rpm=0

	curve_torque=1.8T180KM.crv
	max_torque=2.35
	shifting
	{
		automatic=0
		shift_up_rpm=6500
		shift_down_rpm=3000
		time_to_declutch=100
		time_to_clutch=80
		time_in_neutral=100
		time_to_declutch_down=135
		time_to_clutch_down=135
		time_in_neutral_down=135
	}
	inertia
	{
		engine=0.26
		final_drive=0.1
	}
	braking_coeff=2.5
	rolling_friction_coeff=0.1
	sample=engine.wav
	sample_rpm=5900
}

;----------------------drivetrain----------------------

gearbox
{
	gears=6

	gear0
	{
		ratio=-3.700
		inertia=0.02
		linearity=0.5
	}

	gear1
	{
		ratio=3.50
		inertia=0.02
	}

	gear2
	{
		ratio=2.118
		inertia=0.03
	}

	gear3
	{
		ratio=1.30
		inertia=0.04
	}

	gear4
	{
		ratio=1.029
		inertia=0.05
	}

	gear5
	{
		ratio=0.838
		inertia=0.06
	}
}

;----------------------------------------------------------------------
;Differential:

differential
{
  type=1
  ratio=3.700
  locking_coefficient=25
  output0=0
  output1=1
}
;----------------------------------------------------------------------
;Aero:

aero
{
  body
  {
    center=0 0 0
    cx=0.36
    area=2
  }
  wings=2
  wing0
  {
    name=Overall aerodynamic effect F
    span=1
    cord=0.1
    coeff_drag=120
    coeff_down=14.0	
    center=0 -0.1 1.49
    angle=0
    angle_offset=1
  }
  wing1
  {
    name=Overall aerodynamic effect R
    span=1
    cord=0.1
    coeff_drag=95
    coeff_down=19.3	;1000N @ 250km/h
    center=0 -0.1 -1.25
    angle=0
    angle_offset=1
  }
}
;----------------------------------------------------------------------
;Antirollbar:

antirollbar
{
  count=2
  arb0
  {
    susp_left=0
    susp_right=1
    k=40000
  }
  arb1
  {
    susp_left=2
    susp_right=3
    k=35000
  }
}
;----------------------------------------------------------------------
;Suspension front:


susp_front                    
{
  y=-0.08
  z=1.2332
  restlen=0.372		
  minlen=0.12
  maxlen=0.38
  k=55800
  bump_rate=6640
  bump_function=0
  rebound_rate=6640
  rebound_function=0
  bumpstop_len=0.08
  bumpstop_k=135000
  bumpstop_damping=5600
  reboundstop_len=0.01
  reboundstop_damping=5500
  anti_pitch=0.09
  roll_center
  {
    x=0
    y=-0.56	
    z=0
  }
}
susp0~susp_front
{
  x=0.74
  camber_change_steering=0.145
  caster_offset=-0.022
  toe_change_per_m=0
}
susp1~susp_front
{
  x=-0.71
  camber_change_steering=-0.145
  caster_offset=-0.022
  toe_change_per_m=0
}
;----------------------------------------------------------------------
;Suspension rear:

susp_rear
{
  y=-0.08
  z=-1.2297
  restlen=0.382		
  minlen=0.1
  maxlen=0.36
  k=57200
  bump_rate=5890
  bump_function=0
  rebound_rate=5520
  rebound_function=0
  bumpstop_len=0.08
  bumpstop_k=10000
  bumpstop_damping=5500
  reboundstop_len=0.01
  reboundstop_damping=5500
  anti_pitch=0.14
  roll_center
  {
    x=0
    y=-0.54	
    z=0
  }
}
susp2~susp_rear
{
  x=0.74
  toe_change_per_m=0.05
}
susp3~susp_rear
{
  x=-0.71
  toe_change_per_m=-0.05
}
}
tire_model_front
{
   damping_predict_lat=0
   damping_predict_long=0
}
tire_model_rear
{
   damping_predict_lat=0
   damping_predict_long=0
}
pacejka
{
    a0=1.2
    a1=-25
    a2=1400
    a3=1850
    a4=9
    a5=0.015
    a6=-0.25
    a7=0
    a8=-0.03
    a9=-0.001
    a10=-0.15
    a111=-8.5
    a112=-0.29
    a12=17.8
    a13=-2.4
    b0=1.3
    b1=-40
    b2=1320
    b3=20
    b4=325
    b5=0.08
    b6=0
    b7=0.05
    b8=-0.025
    b9=0.015
    b10=0.4
    b11=-50
    b12=0
    c0=2.2
    c1=-4
    c2=-3
    c3=-1
    c4=-7
    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
}
pacejka_rear
{
    a0=1.2
    a1=-25
    a2=1350
    a3=1800
    a4=9
    a5=0.015
    a6=-0.25
    a7=0
    a8=-0.03
    a9=-0.001
    a10=-0.15
    a111=-8.5
    a112=-0.29
    a12=17.8
    a13=-2.4
    b0=1.3
    b1=-40
    b2=1370
    b3=20
    b4=325
    b5=0.08
    b6=0
    b7=0.05
    b8=-0.025
    b9=0.015
    b10=0.4
    b11=-50
    b12=0
    c0=2.2
    c1=-4
    c2=-3
    c3=-1
    c4=-7
    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
}
}
wheel_front
{
  y=0
  z=0
  camber=-0.5
  steering=1
  powered=1
  lock=56
  ackerman=1.2
  mass=15
  inertia=0.7
  radius=0.35
  width=0.205		
  rolling_coeff=0.015
  friction_road=1.7
  max_braking=2100
  braking_factor=0.95
  tire_rate=160000
  pacejka~pacejka
  { 
  }
}
wheel0~wheel_front
{
  x=0
  toe=0
  model
  {
    file=lewa.dof
  }
  model_brake
  {
    file=prawy.dof
  }
}
wheel1~wheel_front
{
  x=0
  toe=0
  model
  {
    file=prawa.dof
  }
  model_brake
  {
    file=lewy.dof
  }
}
;----------------------------------------------------------------------
;Wheel rear:

wheel_rear
{
  y=0
  z=0
  camber=-1.5
  steering=0
  powered=0
  mass=15
  inertia=0.7
  radius=0.35
  width=0.205		
  rolling_coeff=0.015
  friction_road=1.7
  braking_factor=0.54
  max_braking=900
  max_handbrake_torque=3500
  tire_rate=160000
  pacejka~pacejka
  {
  }
}
wheel2~wheel_rear
{
  x=0
  toe=0
  model
  {
    file=lewa.dof
  }
  model_brake
  {
    file=lewy1.dof
  }
}
wheel3~wheel_rear
{
  x=0
  toe=0
  model
  {
    file=prawa.dof
  }
  model_brake
  {
    file=prawy1.dof
  }
}
;-----------------------------------------------------------------------
;-----------------------------------------------------------------------
;Camera


camera0
{
	name=Driver
	fov=68
        model=0
        wheels=0
        view=0
	follow
	{
		pitch=1
		yaw=1
		roll=1
	}
	offset
	{
		x=0.3878
		y=0.29
                        z=-0.2654
	}
	offset_to
	{
		x=0
		y=0
		z=10
	}
	angle
	{
		x=0
		y=180
		z=0
	}
	src
	{
		mass=0
		k=0
		damping=0
		maxdist=0
	}
	dst
	{
		mass=0
		k=0
		damping=0
		maxdist=0
	}
}
camera1
{
  name=Driver, left
  fov=60
  model=0
  wheels=0
  view=0
  offset
  {
    x=0.3878
    y=0.29
    z=-0.2654
  }
  offset_to
  {
    x=10.43
    y=0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.3
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera2
{
  name=Driver, right
  fov=60
  model=0
  wheels=0
  view=0
  offset
  {
    x=0.3878
    y=0.29
    z=-0.2654
  }
  offset_to
  {
    x=-9.57
    y=0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.3
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera3
{
  name=Driver, rear
  fov=-65
  model=0
  wheels=0
  view=0
  offset
  {
    x=0.3878
    y=0.29
    z=-0.2654
  }
  offset_to
  {
    x=-1
    y=0.5
    z=-10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.3
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera4
{
  name=Chase
  fov=60
  model=0
  wheels=0
  view=0
  offset
  {
    x=0
    y=-0.5
    z=-5
  }
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  angle
  {
    x=15
    y=180
    z=0
  }
}
camera5
{
  name=Chase rear
  fov=60
  model=0
  wheels=0
  view=0
  offset
  {
    x=0
    y=-0.5
    z=-5
  }
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  angle
  {
    x=15
    y=0
    z=0
  }
}
camera6
{
  name=Free exterior
  fov=60
  model=0
  wheels=0
  view=0
  offset
  {
    x=0
    y=-0.5
    z=-5
  }
  follow
  {
    pitch=0
    yaw=0
    roll=0
  }
  angle
  {
    x=10
    y=180
    z=0
  }
}
camera7
{
	name=Side
	fov=60
	model=0
	wheels=0
	view=0
	offset
	{
		x=1.267185
		y=0.129164
		z=-2.6
	}
	angle
	{
		x=1.361085
		y=-165.972626
		z=1.298599
	}
	follow
	{
		pitch=0
		yaw=1
		roll=1
	}

}
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=-20
  }
  angle
  {
    x=10
    y=50
    z=0
  }
}
camera9
{
	name=Bonnet
	fov=60
	model=0
	wheels=0
	view=0
	offset
	{
		x=0.356
    		y=-0.8
    		z=-0.2
	}
	follow
	{
		pitch=1
		yaw=1
		roll=1
	}
	angle
	{
		x=5
		y=180
		z=0
	}
}
audio
{
  skid
  {
    sample=skid.wav
    sample2=skid.wav
  }
  horn
  {
    sample=horn.wav
  }
  acc_all
  {
    attack=1000
    decay=1000
  }
  accelerate_out
  {
    smp0~audio.acc_all
    {
      sample=idle.wav
      volume=0.45
      min=300
      max=1500
      attack=50
      decay=800
      natural=800
    }
    smp1~audio.acc_all
    {
      sample=ajv8_2000.wav
      min=1000
      max=7000
      natural=4000
      attack=1000
      decay=1000
      volume=0.15
}
    smp2~audio.acc_all
    {
      sample=7000.wav
      min=1000
      max=7000
      natural=5500
      attack=1000
      decay=1000
      volume=0.3
}
    smp3~audio.acc_all
    {
      sample=turbo2.wav
      min=2700
      max=3901
      natural=1500
      volume=0.1
    }
    smp4~audio.acc_all
    {
      sample=turbo3.wav
      min=4000
      max=8501
      natural=2500
      volume=0.1
    }
  }
     }  
  decelerate_out
  {
    smp0~audio.acc_all
    {
      sample=idle.wav
      volume=0.45
      min=300
      max=1500
      attack=50
      decay=800
      natural=800
    }
    smp1~audio.acc_all
    {
      sample=ajv8_2000.wav
      min=1000
      max=7000
      natural=4000
      attack=1000
      decay=1000
      volume=0.25
}
    smp2~audio.acc_all
    {
      sample=7000decc.wav
      min=1000
      max=7000
      natural=5500
      attack=1000
      decay=1000
      volume=0.2
}
    smp3~audio.acc_all
    {
      sample=turbo2.wav
      min=2700
      max=3901
      natural=1500
      volume=0.1
    }
    smp4~audio.acc_all
    {
      sample=turbo3.wav
      min=4000
      max=8501
      natural=2500
      volume=0.1
    }
}       
  accelerate_in
  {
    smp0~audio.acc_all
    {
      sample=idle.wav
      volume=0.45
      min=300
      max=1500
      attack=50
      decay=800
      natural=800
    }
    smp1~audio.acc_all
    {
      sample=ajv8_2000.wav
      min=1000
      max=7000
      natural=4000
      attack=1000
      decay=1000
      volume=0.45
}
    smp2~audio.acc_all
    {
      sample=7000.wav
      min=1000
      max=7000
      natural=5500
      attack=1000
      decay=1000
      volume=0.5
}
    smp3~audio.acc_all
    {
      sample=turbo2.wav
      min=2700
      max=3901
      natural=1500
      volume=0.1
    }
    smp4~audio.acc_all
    {
      sample=turbo3.wav
      min=4000
      max=8501
      natural=2500
      volume=0.1
    }
  }  
  decelerate_in
  {
    smp0~audio.acc_all
    {
      sample=idle.wav
      volume=0.45
      min=300
      max=1500
      attack=50
      decay=800
      natural=800
    }
    smp1~audio.acc_all
    {
      sample=ajv8_2000.wav
      min=1000
      max=7000
      natural=4000
      attack=1000
      decay=1000
      volume=0.45
}
    smp2~audio.acc_all
    {
      sample=7000decc.wav
      min=1000
      max=7000
      natural=5500
      attack=1000
      decay=1000
      volume=0.5
}
    smp3~audio.acc_all
    {
      sample=turbo2.wav
      min=2700
      max=3901
      natural=1500
      volume=0.1
    }
    smp4~audio.acc_all
    {
      sample=turbo3.wav
      min=4000
      max=8501
      natural=2500
      volume=0.1
    }
  }  
  gearwhine
  {
    smp0~audio.acc_all
    {
      sample=tw-extonhigh.wav
      volume=0.05
      min=1
      max=2
      decay=1000
      natural=500
    }
  }
  wind
  {
    smp0~audio.acc_all
    {
      sample=wind.wav
      volume=0.8
      min=11
      max=150
      attack=10
      natural=50
    }
  }
 skid
  {
    volume=1
    smp0
    {
      volume=1
      sample=skid.wav
      min=0.4
      max=1
      attack=0.35
      decay=1.0
    }
    smp1
    {
      volume=1
      sample=skid.wav
      min=0.9
      max=20
      attack=.7
      decay=0
    }
  }
}

;----------------------driving aids----------------------
abs
{
  enable=1
  max_velocity_ratio=1.09 
  min_velocity_ratio=1.08
  min_velocity=1
}
traction_control
{
  	enable=1
  	min_velocity=3
  	max_velocity_ratio=1.050
  	min_velocity_ratio=1.300

}