car
{
	name=Skoda 120l
	year=1986
	credits=converted by Priban from GTA San Andreas
  	comments=1174 cm3, 46kW at 4700rpm, 85.2Nm at 2850rpm
  	wheels=4
  	id=skoda_130l
  	version=0655
  	shadow
  	{
    		texture=shadow.tga
    		width=2.2
    		length=5.0
    		offset_z=-0.06
  	}
  	cg
  	{
    		x=0
		;1380mm * 0.37 = 511mm, formula by IH8COPS
    		y=0.1835
		;52.4% / 47.6%
    		z=0.1768
  	}
  	ff_factor=0.33
}
  	fuel
  	{
  	bsfc=15e-5
  	max=10
  	type=0
}
pilot

{
        helmet
        {
       ;Zapach
        model
        {
        file=
        }
        pos=0.01 0.68 0.7
    }
}
graphics 
{
  shadow 
  {
    texture=shadow.tga
    model
    {
      file=body.dof
    }
  }
}
flares
{
  ; Front lights
  flare0
  {
    pos=-0.48 0.43  1.95
	normal=0 0 1
	z_offset=-3000
	size_factor=1.05
  }
  flare1
  {
    pos=0.48 0.43  1.95
	normal=0 0 1
	z_offset=-3000
	size_factor=1.05
  }
 
 }
graphics
{
	generic
	{
	model1
	{
	file=lusterka.dof
        }
	model2
	{
	file=silnik.dof
	}
	}
        }
        }
}
lights
{
    light0
      {
        texture=light.tga
        fov=55
        aspect=5
        z=2
        pitch=0
        far=100
      }
      OLD_light0
      {
        texture=light.tga
        fov=25.0
        aspect=4.0
        z=2
        pitch=10
      }
}

body
{
  	mass=885
  	inertia
  	{
    		x=1860
    		y=1970
    		z=420
  	}
  	model
  	{
    		file=skoda130l.dof
  	}
	model_incar
	{
		file=skoda130l.dof
	}
 	model_light_l
  	{
    		file=lights.dof
  	}
 	model_light_r
  	{
    		;file=swiatla.dof
  	}
  	model_braking_l
  	{
    		file=braking.dof
  	}
  	model_braking_r
  	{
    		;file=
  	}
        model_reverse_l
        {
                file=wsteczny.dof
        }
        model_reverse_r
        {
               ;file=lampka.dof
        }
        model_lightroad_l
        {
                file=swiatla_int.dof
        }
  	width=1.974
  	height=1.421
  	length=4.548
  	manual_box=1
}

steer
{
  	x=0.3
  	y=0.7
  	z=0.46
  	radius=10
  	xa=30
  	lock=1360
  	linearity=0.2
  	model
  	{
    		file=stw.dof
  	}
}

engine
{
  	mass=1
  	idle_rpm=750
        ;max rpm gaźnik
  	max_rpm=5000
  	start_rpm=750
  	stall_rpm=400
  	autoclutch_rpm=0
  	starter=1
  	starter_torque=50
  	start_stalled=1
  	curve_torque=Torque_1500.crv
  	max_torque=0.89
  	torque_reaction=0.15
  	shifting
  	{
    		automatic=0
		fast=0
    		shift_up_rpm=5300
    		shift_down_rpm=3000
    		time_to_declutch=150
    		time_in_neutral=100
    		time_to_clutch=150
    		time_to_declutch_down=150
    		time_in_neutral_down=100
    		time_to_clutch_down=150
  	}
  	inertia
  	{
    		engine=0.20
  	}
  	braking_coeff=2.35
}

gearbox
{
	gears=5
  	gear0
  	{
    		ratio=-3.27
    		inertia=0.10
    		engine_map=1.00
  	}
  	gear1
  	{
    		ratio=3.8
    		inertia=0.01
    		engine_map=1.00
  	}
  	gear2
  	{
    		ratio=2.12
    		inertia=0.02
    		engine_map=1.00
  	}
  	gear3
  	{
    		ratio=1.41
    		inertia=0.04
    		engine_map=1.00
  	}
  	gear4
  	{
    		ratio=1.00
    		inertia=0.06
    		engine_map=1.00
  	}
}

clutch
{
	max_torque=120
}

handbrakes
{
	wheels=23
}

differential
{
  	type=1
  	ratio=3.9
  	inertia=0.1
  	locking_coeff=70
  	output0=2
  	output1=3
}

aero
{
  	body
  	{
    		center=0 0 0
    		cx=0.37
    		area=1.83
  	}
  	wings=2
  	wing0
  	{
    		name=front lift
    		span=1.0
    		cord=1.0
    		coeff_drag=0.0
   		coeff_down=-17.33
    		center=0.000 0.000 1.350
    		angle=0
    		angle_offset=1
  	}
  	wing1
  	{
    		name=rear lift
    		span=1.0
    		cord=1.0
    		coeff_drag=0.0
   		coeff_down=-5.67
    		center=0.000 0.000 -1.05
    		angle=0
    		angle_offset=1
  	}
}

antirollbar
{
  	count=2
  	arb0
  	{
    		susp_left=0
    		susp_right=1
   		k=18000
  	}
  	arb1
  	{
    		susp_left=2
    		susp_right=3
    		k=8000
  	}
}

susp_front
{
  	y=0.50
  	z=1.19
  	restlen=0.500
  	minlen=0.280
  	maxlen=0.530
  	k=23886
  	bump_rate=1399
  	bump_function=0
  	rebound_rate=2899
  	rebound_function=0
  	anti_pitch=-0.5
  	camber_change_per_m=0.4
    	caster_offset=-0.046
  	roll_center
  	{
    		x=0
    		y=-0.625
    		z=0
  	}
}

susp_rear
{
  	y=0.55
  	z=-1.24
  	restlen=0.500
  	minlen=0.280
  	maxlen=0.550
  	k=25981
  	bump_rate=1356
  	bump_function=0
  	rebound_rate=2799
  	rebound_function=0
  	anti_pitch=-0.5
  	camber_change_per_m=0.3
    	caster_offset=-0.046
  	roll_center
  	{
    		x=0
    		y=-0.6
    		z=0
  	}
}

susp0~susp_front
{
    	x=0.68
    	camber_change_steering=0.050
    	toe_change_per_m=0.13
    
}
susp1~susp_front
{
    	x=-0.68
    	camber_change_steering=-0.050
    	toe_change_per_m=-0.13
}

susp2~susp_rear
{
    	x=0.68
    	toe_change_per_m=-0.01
}

susp3~susp_rear
{
    	x=-0.68
    	toe_change_per_m=0.01
}

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.25
    	a1=-30
    	a2=1035
    	a3=1560
    	a4=8
    	a5=0.015
    	a6=-0.25
    	a7=0.1
    	a8=-0.03
    	a9=-0.001
    	a10=-0.15
    	a111=-8.5
    	a112=-0.29
    	a12=17.8
    	a13=-2.4
    	b0=1.5
    	b1=-60
    	b2=1150
    	b3=2
    	b4=350
    	b5=0.08
    	b6=0
    	b7=0.05
    	b8=-0.025
    	b9=0.015
    	b10=0.4
    	b11=-80
    	b12=0
    	c0=2.2
    	c1=-4
    	c2=-3
    	c3=-1.0
    	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.08276
    	optimal_slipangle=0.14444
}

wheel_front
{
	y=0
	z=0
	powered=0
  	steering=1
	reverse_steering=0
	lock=46
	ackerman=1.22
	mass=20
	inertia=1.0
	radius=0.325
	rolling_coeff=0.015
	friction_road=1
	max_braking=1000
	braking_factor=1
	inboard_brakes=0
	tire_rate=175000
	pacejka~pacejka
	{
	}
}

wheel0~wheel_front
{
	x=0
	toe=-0.97
	camber=2
    	model
  	{
    		file=left.dof
  	}
}

wheel1~wheel_front
{
  	x=0
  	toe=0.97
  	camber=2
    	model
  	{
    		file=right.dof
  	}
}

wheel_rear
{
	y=0
	z=0
	powered=1
	steering=0
	reverse_steering=0
	lock=0
	mass=20
  	inertia=1.0
  	radius=0.325
  	rolling_coeff=0.015
  	friction_road=1
  	max_braking=450
  	max_handbrake_torque=1200
  	braking_factor=1
	inboard_brakes=0
  	tire_rate=175000
  	pacejka~pacejka
  	{
  	}
}

wheel2~wheel_rear
{
  	x=0
  	toe=-0.077
  	camber=-0.01
    	model
  	{
    		file=left.dof
  	}
}

wheel3~wheel_rear
{
  	x=0
  	toe=0.077
  	camber=-0.01
    	model
  	{
    		file=right.dof
  	}
}

camera0
{
	name=Driver
	fov=68
	model=0
	view=1
	wheels=0
	follow
	{
		pitch=1
		yaw=1
		roll=1
	}
	offset
	{
		x=0.30
		y=1.04
		z=-0.0
	}
	offset_to
	{
		x=0
		y=0
		z=10
	}
	angle
	{
		x=0
		y=180
		z=0
	}
	src
	{
		mass=5
		k=750
		damping=75
		maxdist=0
	}
	dst
	{
		mass=1
		k=0
		damping=0
		maxdist=0
	}
}

camera1
{
	name=Prawa
	fov=68
	model=1
	view=1
	wheels=0
	follow
	{
		pitch=1
		yaw=1
		roll=1
	}
	offset
	{
		x=0.355
		y=1.04
		z=-0
	}
	offset_to
	{
		x=-20
		y=0
		z=20
	}
	angle
	{
		x=0
		y=180
		z=0
	}
	src
	{
		mass=5
		k=750
		damping=75
		maxdist=0.2
	}
	dst
	{
		mass=1
		k=0
		damping=0
		maxdist=0
	}
}

camera2
{
	name=Lewa
	fov=68
	model=1
	view=1
	wheels=0
	follow
	{
		pitch=1
		yaw=1
		roll=1
	}
	offset
	{
		x=0.355
		y=1.04
		z=-0
	}
	offset_to
	{
		x=20
		y=0
		z=20
	}
	angle
	{
		x=0
		y=180
		z=0
	}
	src
	{
		mass=5
		k=750
		damping=75
		maxdist=0.2
	}
	dst
	{
		mass=1
		k=0
		damping=0
		maxdist=0
	}
}

camera3
{
	name=Tył
	fov=-68
	model=1
	view=1
	wheels=0
	follow
	{
		pitch=1
		yaw=1
		roll=1
	}
	offset
	{
		x=0.355
		y=0.89
		z=0.25
	}
	offset_to
	{
                x=-1
                y=0.5
                z=-10
	}
	angle
	{
		x=0
		y=180
		z=0
	}
	src
	{
		mass=5
		k=750
		damping=75
		maxdist=0.2
	}
	dst
	{
		mass=1
		k=0
		damping=0
		maxdist=0
	}
}

camera4
{
  	name=Maska
  	fov=68
  	model=0
  	view=0
  	wheels=0
  	follow
  	{
    		pitch=1
    		yaw=1
    		roll=1
  	}
  	offset
  	{
    		x=0
    		y=-1.0
    		z=0.7
  	}
  	angle
  	{
    		x=10
    		y=180
    		z=0
  	}
}

camera5
{
	fov=50
	model=0
	name=Car
	wheels=1
	angle
	{
		x=0
		y=0
		z=0
	}
	follow
	{
		pitch=1
		roll=1
		yaw=1
	}
	offset
	{
		x=0
		y=1.5
		z=-6
	}
	offset_to
	{
		x=0
		y=0
		z=5
	}
	src
	{
		mass=5
		k=250
		damping=70
		maxdist=5
	}
	dst
	{
		mass=5
		k=250
		damping=70
		maxdist=5
	}
}

camera6
{
	fov=60
	model=0
	name=Car
	wheels=1
	angle
	{
		x=0
		y=0
		z=0
	}
	follow
	{
		pitch=1
		roll=1
		yaw=1
	}
	offset
	{
		x=0
		y=1.5
		z=-6
	}
	offset_to
	{
		x=0
		y=0
		z=5
	}
	src
	{
		mass=5
		k=250
		damping=70
		maxdist=5
	}
	dst
	{
		mass=5
		k=250
		damping=70
		maxdist=5
	}
}
camera7
{
 	name=free
 	fov=68
 	model=0
 	view=0
 	wheels=1
 	follow
 	{
  		pitch=0
  		yaw=1
  		roll=0
 	}
 	offset
 	{
  		x=0
  		y=0
  		z=-9
 	}
 	angle
 	{
  		x=4
  		y=34
  		z=-14
 	}
}

camera8
{
 	name=Effect Cam 5
 	fov=25
 	model=0
 	view=0
 	wheels=1
 	follow
 	{
  		pitch=0
  		yaw=0
  		roll=0
 	}
 	offset
 	{
  		x=0
  		y=-0.25
  		z=-9
 	}
 	angle
 	{
  		x=10
  		y=150
  	z=0
 	}
}

camera9
{
	name=Driver
	fov=68
	model=1
	view=1
	wheels=0
	follow
	{
		pitch=1
		yaw=1
		roll=1
	}
	offset
	{
		x=-0.4
		y=1.04
		z=0.15
	}
	offset_to
	{
		x=0
		y=0
		z=10
	}
	angle
	{
		x=0
		y=180
		z=0
	}
	src
	{
		mass=5
		k=750
		damping=75
		maxdist=0.2
	}
	dst
	{
		mass=1
		k=0
		damping=0
		maxdist=0
	}
}

audio
{
   horn
   {
      sample=horn.wav
   }
   skid
   {
      sample=skida.wav
      sample2=
   }
   acc_all
   {
      min_vol=0.5
      max_vol=0.5
   }
   accelerate_out
   {
      smp0~audio.acc_all
      {
         attack=200
         decay=1000
         sample=idle.wav
         min=800
         max=1500
         natural=750
         volume=3
      }     
      smp1~audio.acc_all
      {
         attack=1500
         decay=1000
         sample=2000a.wav
         min=1500
         max=2500
         natural=2000
      }     
      smp2~audio.acc_all
      {
         attack=1000
         decay=1000
         sample=3000a.wav
         min=2500
         max=3500
         natural=2800
      }     
      smp3~audio.acc_all
      {
         attack=1000
         decay=1000
         sample=4000a.wav
         min=3500
         max=6500
         natural=3800
      }     
      smp4~audio.acc_all
      {
         attack=1000
         decay=1000
         sample=6000.wav
         min=4500
         max=5500
         natural=6000
      }   
      smp5~audio.acc_all
      {
         attack=1000
         decay=2000
         sample=6000.wav
         min=5500
         max=6500
         natural=6000
      }
  }        
  decelerate_out
  {
      smp0~audio.acc_all
      {
         attack=200
         decay=1000
         sample=idle.wav
         min=800
         max=1500
         natural=750
         volume=3
      }    
      smp1~audio.acc_all
      {
         attack=1000
         decay=1000
         sample=2000.wav
         min=1500
         max=2500
         natural=2000

      }     
      smp2~audio.acc_all
      {
         attack=1000
         decay=1000
         sample=3000.wav
         min=2500
         max=3500
         natural=3000        
      }      
      smp3~audio.acc_all
      {
         attack=1000
         decay=1000
         sample=4000.wav
         min=3500
         max=6500
         natural=4000

      }     
      smp4~audio.acc_all
      {
         attack=1000
         decay=1000
         sample=6000.wav
         min=4500
         max=5500
         natural=6000

      }     
      smp5~audio.acc_all
      {
         attack=1000
         decay=2000
         sample=6000.wav
         min=5500
         max=6500
         natural=6000
      }
   }

   wind
   {
      smp0
      {
         sample=wind_ext.wav
         min=16.1111
         max=150
         attack=5.56
         decay=33
         natural=38
         volume=0.5
         pitch_scale=0
         pitch_offset=50
      }
      smp1
      {
         sample=road.wav
         min=0
         max=180
         attack=0
         decay=0
         natural=12
         volume=3
         pitch_scale=0
         pitch_offset=50
      }
   }
}
