car
{
       name=Skoda Favorit 1.3i
       year=1994
       credits=Model by Rybi Poter, Serbian Mods, converted by Miguel1.8Turbo
       comments=136: 1.3 8v 68cv @ 5.500 rpm/ 100 nm @ 3.000-3.750 rpm
       id=favorit
       version=050b6
       wheels=4
       shadow
       {
           texture=shadow.tga
           width=2.1
           length=4.8
           offset_z=0.0
           offset=0
       }
       cg
       {
          x=0
          y=-0.35
          z=0.22
       }
}
graphics
{
  intensity=1
  shadow
  {
    model
    {
      file=shadow.dof
      use_shaders=0
    }
  }
  generic
  {
    model0
    {
      file=puertas.dof
    }
    model1
    {
      file=puertas2.dof
    }
   model2
    {
      file=paragolpes.dof
    }
  }
}
flares
{
  flare0
  {
    pos=-0.5 0.065 1.8
	normal=1 1 1
      color=1 1 0.7
	z_offset=-3000
	size_factor=0.8
  }
  flare1
  {
    pos=0.5 0.065 1.8
	normal=1 1 1
      color=1 1 0.7
	z_offset=-3000
	size_factor=0.8
  }
}

::::::::::::::::::::::::::::::::::::::KOROSERIA::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
body
{
  	mass=800
  	inertia
  	{
    		x=1855
    		y=1959
    		z=409
  	}
  	model
  	{
    		file=chasis.dof
  	}
  	model_incar
  	{
    		file=chasis.dof
  	}
	model_light_l
	{
		file=light.dof
	}
	model_braking_l
	{
		file=brakes.dof
	}
 model_lightroad_l
 {
  file=lights.dof
 }
  model_reverse_l
  {
    file=brakes.dof
  }
  model_reverse_r
  {
    file=brakes.dof
}
        width=1.886
        height=1.486
        length=5.113
  	manual_box=1
}
steer
{
        x=0.312
        y=0.219
        z=0.358
  	xa=24
  	linearity=0.4
        lock=1332; (3,7 turns on stw * 360ş)
  	model
  	{
    		file=steer.dof
  	}
}
:::::::::::::::::::::::::::::::::ABS::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
abs
{
  	enable=0
	min_velocity=1.7
  	max_velocity_ratio=1.10
  	min_velocity_ratio=1.05
}
tc
{
  	enable=0
	min_velocity=1.2
  	max_velocity_ratio=1.05
  	min_velocity_ratio=1.1
}
engine
{
   mass=85
   idle_rpm=800
   max_rpm=6000
   max_torque=106
   curve_torque=torque.crv
   autoclutch_rpm=3400
   starter=1
   starter_torque=110
   start_stalled=1
   enable_stall=1
   stall_rpm=500
   start_rpm=1000
   shifting
   {
      automatic=0
      shift_up_rpm=4000
      shift_down_rpm=1200
       time_to_declutch=150
      time_to_clutch=150
      time_in_neutral=100
      time_to_declutch_down=150
      time_to_clutch_down=200
      time_in_neutral_down=150
   }
   inertia
   {
      engine=0.12
      final_drive=0.1
   }
   braking_coeff=2.5
   rolling_friction_coeff=0.1
}

gearbox
{
  gears=6
  gear0
  {
    ratio=-2.92
    inertia=0.2
  }
  gear1
  {
    ratio=3.31
    inertia=0.04
  }
  gear2
  {
    ratio=1.91
    inertia=0.02
  }
  gear3
  {
    ratio=1.27
    inertia=0.01
  }
  gear4
  {
    ratio=0.93
  }
 gear5
  {
    ratio=0.72
  }
  end_ratio=3.9
}

::::::::::::::::::::::::::::::::SPRZĘGŁO::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
clutch
{
	max_torque=245
}
:::::::::::::::::::::::::::::::::::::::H. RĘCZNY::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
handbrakes
{
   wheels=23
}
::::::::::::::::::::::::::::::::::::::NAPĘD:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

differential
{
	type=1
	ratio=4.3
	inertia=0.16
	locking_coeff=100
	output0=0
	output1=1
}

::::::::::::::::::::::::::::::::::AERO::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
aero
{
  body
  {
    center=0 0 0
    cx=0.4
    area=2.1		
  }
  wings=1
  wing0
  {
    name=Overall aerodynamic effect R
    span=1
    cord=0.1
    coeff_drag=0
    coeff_down=8.5
    center=0 0.03 -1.38
    angle=0
    angle_offset=1
  }
}

::::::::::::::::::::::::::::::::::::::::::ZAWIESZNIE:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
antirollbar
{
  	count=2
  	arb0
  	{
    		susp_left=0
    		susp_right=1
   		k=24000
  	}
  	arb1
  	{
    		susp_left=2
    		susp_right=3
    		k=24000
  	}
}


susp_rear
{
  	y=-0.02
  	z=-1.32
  	restlen=0.44
  	minlen=-0.1
  	maxlen=1.0
  	k=12000
 	bump_rate=5000
  	bump_function=0
  	rebound_rate=4500
  	rebound_function=0
  	anti_pitch=0
  	camber_change_per_m=0.4
  	roll_center
  	{
    		x=0
    		y=-0.7
    		z=0
  	}
}
susp_front
{
  	y=-0.11
  	z=1.14
  	restlen=0.44
  	minlen=-0.1
  	maxlen=1.0
  	k=12000
  	bump_rate=4500
  	bump_function=0
  	rebound_rate=2500
  	rebound_function=0
  	anti_pitch=0
  	camber_change_per_m=0.2
    	caster_offset=0.0
  	roll_center
  	{
    		x=0
    		y=-0.7
    		z=0
  	}
}
susp0~susp_front
{
    	x=0.7
    	camber_change_steering=0.050
    	toe_change_per_m=0.130
    
}
susp1~susp_front
{
    	x=-0.7
    	camber_change_steering=-0.050
    	toe_change_per_m=-0.130
}


susp2~susp_rear
{
    	x=0.6825
	;estimation based on Gustave's M3 site
    	toe_change_per_m=-0.016
}

susp3~susp_rear
{
    	x=-0.6825
	;estimation based on Gustave's M3 site
    	toe_change_per_m=0.016
}

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=2000
    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=1100
    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

    optimal_slipratio=0.12
    optimal_slipangle=0.173
}
wheel_front
{
	y=0
	z=0
	powered=1
  	steering=1
                    power_gearing=1.85
	reverse_steering=0
	lock=60
	ackerman=1.215
	mass=30
	inertia=1.0
	radius=0.308
	rolling_coeff=0.015
	friction_road=1
	max_braking=2100
	braking_factor=0.75
	inboard_brakes=0
	tire_rate=175000
	pacejka~pacejka
	{
	}
}
wheel_rear
{
	y=0
	z=0
	powered=0
	steering=0
	reverse_steering=0
	lock=0
	mass=30
  	inertia=1.0
  	radius=0.308
  	rolling_coeff=0.015
  	friction_road=1
  	max_braking=500
  	max_handbrake_torque=7500
  	braking_factor=0.2
	inboard_brakes=0
  	tire_rate=175000
  	pacejka~pacejka
  	{
  	}
}
wheel0~wheel_front
{
	x=0
	toe=-0.980
	camber=1.980
    	model
  	{
    		file=left.dof
  	}
    		model_brake
  	{
    		file=lc.dof
  	}
}

wheel1~wheel_front
{
  	x=0
  	toe=0.980
  	camber=1.980
    	model
  	{
    		file=right.dof
  	}
    		model_brake
  	{
    		file=rc.dof
  	}
}



wheel2~wheel_rear
{
  	x=0
  	toe=-0.080
  	camber=-0.035
    	model
  	{
    		file=left.dof
  	}
   	model_brake
  	{
    		file=lcb.dof
  	}
}

wheel3~wheel_rear
{
  	x=0
  	toe=0.080
  	camber=-0.035
    	model
  	{
    		file=right.dof
  	}
    	model_brake
  	{
    		file=rcb.dof
  	}
}
::::::::::::::::::::::::::::::::::::::::::::::::::::::::KAMERAY::::::::::::::::::::::::::::::::::::::::::::::

camera0
{
  name=Driver
  fov=60
  model=1
  wheels=0
  view=1
  offset
  {
    x=0.33
    y=0.55
    z=-0.25
  }
  offset_to
  {

    x=0.35
    y=-0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.3
  }
  dst
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
}
camera1
{
  name=Driver, left
  fov=60
  model=1
  wheels=0
  view=1
  offset
  {
   x=0.33
    y=0.55
    z=-0.25
  }
  offset_to
  {
    x=10.43
    y=0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.3
  }
  dst
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
}
camera2
{
  name=Driver, right
  fov=60
  model=1
  wheels=0
  view=0
  offset
  {
   x=0.33
    y=0.55
    z=-0.25
  }
  offset_to
  {
    x=-9.57
    y=0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.3
  }
  dst
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
}
camera3
{
  name=Driver
  fov=60
  model=1
  wheels=0
  view=0
  offset
  {
   x=-0.33
    y=0.55
    z=-0.25
  }
  offset_to
  {

    x=0.43
    y=-0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.3
  }
  dst
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
}
camera4
{
  name=Chase
  fov=60
  model=0
  wheels=0
  view=0
  offset
  {
    x=0
    y=-0.3
    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=-7
  }
  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=-7
  }
  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
{
  offset
  {
    x=0.0
    y=1.4
    z=-4
  }
  angle
  {
    x=0.000000
    y=130.000000
    z=0.000000
  }
  name=Chase Close
  follow
  {
    pitch=0
    yaw=0
    roll=0
  }
  fov=75
  model=0
  wheels=0
  view=0
  src
  {
    mass=6
    k=250
    damping=90
    maxdist=2
  }
  dst
  {
    mass=1
    k=100
    damping=70
    maxdist=2
  }
}
camera9
{
  name=Chase rear
  fov=60
  model=1
  wheels=0
  view=1
  offset
  {
    x=0.0
    y=-0.65
    z=0.0
  }
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  angle
  {
    x=15
    y=0
    z=0
  }
}
audio
{
  skid
  {
    volume=0.8
    sample=skid.wav
    sample2=skid.wav
  }
  horn
  {
    sample=v8/horn.wav
  }
  accelerate_out
  {
    smp0~audio.acc_all
    {
      sample=skodasound/7000x.wav
      min=100
      max=8000
      natural=4100
    }
  } 
  decelerate_out
  {
        smp0~audio.acc_all
    {
      sample=skodasound/7000x.wav
      min=100
      max=8000
      natural=4100
    }
  }
  accelerate_in
  {
      smp0~audio.acc_all
    {
      sample=skodasound/7000xin.wav
      min=100
      max=8000
      natural=4100
    }
  }
decelerate_in
  {
       smp0~audio.acc_all
    {
      sample=skodasound/7000xin.wav
      min=100
      max=8000
      natural=4100
    }
  }
  gearwhine
  {
    smp0
    {
      sample=v8/tw-extonhigh.wav
      volume=0.1
      min=1
      max=2
      decay=1000
      natural=500
    }
  }
 wind
  {
    smp0~audio.acc_all
    {
      sample=skodasound/wiater.wav
      volume=2
      min=5
      max=150
      attack=10
      natural=20
    }
  }
 }