car
{
  	name=Fiat 131 S Mirafiori
  	year=1976
  	credits=Model - sin5k4. Adaptation - Damian A. Finalisation - Cosmo° & Hierafas.( ansebasti - skrypty i CG i inne)
  	comments=1585 cm3 straight four, 55 kW @ 5400 rpm, 124 Nm @ 3000 rpm.
  	id=Fiat131
  	version=090
  	wheels=4
   shadow
   {
   texture=txt_shadow.tga
   width=2.1
   length=5
   offset_z=-0.2
   intensity_dark=0.7
   intensity_light=0.3 
   }
  	cg
  	{
    		x=0
		
    		y=-0.26
		
    		z=0.29
  	}
	ff_factor=0.45
}

abs
{
  	enable=0
	min_velocity=0
  	max_velocity_ratio=0
  	min_velocity_ratio=0
}

traction_control
{
  	enable=0
	min_velocity=0
  	max_velocity_ratio=0
  	min_velocity_ratio=0
}

graphics 
{
  shadow 
  {
    texture=shadow.tga
    model
    {
      file=body.dof
    }
  }

	generic
	{
		model0
		{
		file=engine.dof
		}
		model1
		{
		file=xxx.dof
		}
		model2
		{
		file=xxx.dof
		}
		model3
		{
		file=signal_left.dof
		}
    		model4
    		{
      		file=signal_right.dof
    		}
    		model5
    		{
      		file=xxx.dof
    		}
    		model6
    		{
      		file=xxx.dof
    		}
    		model7
    		{
      		file=xxx.dof
    		}
    		model8
    		{
      		file=pozycja.dof
    		}
    		model9
    		{
      		file=pozycja.dof
    		}
    		model10
    		{
      		file=dlugie.dof
    		}
    		model11
    		{
      		file=xxx.dof
    		}
    		model12
    		{
      		file=xxx.dof
    		}
    		model13
    		{
      		file=xxx.dof
    		}
    		model14
    		{
      		file=bonnet.dof
    		}
    		model15
    		{
      		file=boot.dof
    		}
    model16
    {
      file=door_fl.dof
    }
    model17
    {
      file=door_fr.dof
    }
    model18
    {
      file=door_rl.dof
    }
    model19
    {
      file=door_rr.dof
    }
    		model20
    		{
      		file=xx.dof
    		}

	}
}

animation
{
	flash_lights=0
}

lights
{
  ; Projected lights
  light0
  {
    texture=txt_light.tga
    ; Field of view (vertical)
    fov=25.0
    ; Aspect (horizontal)
    aspect=4.0
    ; Distance to car
    z=0.5
    ; Pitching with respect to car (in degrees)
    pitch=7
  }
}

wipers
{
  count=3

; Front left
  wiper0
  {
    x=0.3721
    y=0.1201
    z=1.0149
    xa=50
    min_angle=-3
    max_angle=-100
    model
    {
      file=wycierP.dof
    }
  }

; Front right
  wiper1
  {
    x=-0.111
    y=0.1215
    z=1.03
    xa=40
  
    min_angle=-5
    max_angle=-100
    model
    {
      file=wycierprawa.dof
    }
  }
}

body
{
	;985kg + 75kg driver + 25kg fuel - 125kg engine - 110kg unsprung mass
  	mass=850
  	length=4.264
  	width=1.651
  	height=1.381
  	manual_box=1
	box_offset=0.000 0.000 0.000
  	inertia
  	{
    		x=1700
    		y=1800
    		z=350
  	}
  	model
  	{
		file=mdl_body.dof
		offset
		{
			x=0
			y=0
			z=0
		}
	}
  	model_incar
  	{
    		file=mdl_body.dof
  	}
  	model_braking_l
  	{
    		file=mdl_brakelights.dof
  	}
	model_braking_r
	{
		file=
	}
  	model_light_l
  	{
    		file=mdl_lights.dof
  	}
	model_light_r
	{
		file=
	}
	model_lightroad_l
	{
		file=mdl_lightsin.dof
	}
	model_lightroad_r
	{
		file=
	}
        model_reverse_l
       {
        ; Reverse gear indicators
                file=stop_R.dof
       }
        model_reverse_r
       {
                 file=stop_R.dof
        }
}

steer
{
  	x=0.37
  	y=0.04
  	z=0.6
  	xa=15
  	lock=1224
	;900° mode
	linearity=0.735
	;720° mode
	;linearity=0.588
	;540° mode
	;linearity=0.441
	;450° mode
	;linearity=0.368
	;270° mode
	;linearity=0.221
	;180° mode
	;linearity=0.147
  	model
  	{
    		file=mdl_steer.dof
  	}
}

engine
{
	x=0
	y=0.3
	z=-1
	size=0.25
  	mass=125
  	idle_rpm=875
  	max_rpm=7000
 	start_rpm=1250
  	stall_rpm=550
	autoclutch=0
  	autoclutch_rpm=1550
  	starter=0
  	starter_torque=70
  	start_stalled=0
	enable_stall=1
  	curve_torque=torque_131_1585.crv
  	max_torque=1
  	torque_reaction=0.15
	friction=0
  	braking_coeff=2.5
	braking_offset=0
  	inertia
  	{
    		engine=0.35
  	}
	jitter
	{
		amplitude=0
		frequency_min=0
		frequency_var=0
		time_min=0
		time_var=0
	}
  	shifting
  	{
    		automatic=0
		blip_throttle=0
		cut_throttle=0
		fast=0
    		shift_up_rpm=6150
    		shift_down_rpm=3400
    		time_to_declutch=200
		time_in_neutral=100
    		time_to_clutch=200
		time_to_declutch_down=375
		time_in_neutral_down=50
		time_to_clutch_down=175
  	}
}

gearbox
{
   	gears=6
   	gear0
   	{
      		ratio=-3.244
      		inertia=0.10
		engine_map=1.00
   	}
   	gear1
   	{
      		ratio=3.612
      		inertia=0.02
		engine_map=1.00
   	}
   	gear2
   	{
      		ratio=2.045
      		inertia=0.04
		engine_map=1.00
   	}
   	gear3
   	{
      		ratio=1.357
      		inertia=0.06
		engine_map=1.00
   	}
   	gear4
   	{
      		ratio=1.000
      		inertia=0.08
		engine_map=1.00
   	}
   	gear5
   	{
      		ratio=0.870
      		inertia=0.10
		engine_map=1.00
   	}
}

clutch
{
   	max_torque=200
}

handbrakes
{
   	wheels=23
}

differentials
{
	count=1
	diff0
	{
  		type=1
  		ratio=4.440
		inertia=0.1
		friction=110
		locking_coeff=135
		output0=2
		output1=3
	}
}

aero
{
  	body
  	{
    		center=0.000 0.000 0.000
    		cx=0.45
    		area=1.8558
 	}
	draft
	{
		scale_lat_rear=0.4
		scale_lon_rear=1
		scale_lat_front=0.08
		scale_lon_front=0.2
	}
	wings=1
	wing0
	{
		name=body_lift
		center=0.000 0.000 0.000
	      	span=1
	      	cord=1
		coeff_drag=0
		coeff_down=-5.3
		angle=0
		angle_offset=1
	}
}

antirollbar
{
   	count=2
   	arb0
   	{
      		susp_left=0
      		susp_right=1
      		k=20000
   	}
   	arb1
   	{
      		susp_left=2
      		susp_right=3
      		k=-5000
   	}
}

susp_front
{
  	y=0.000
  	z=1.43464
  	restlen=0.6425
  	minlen=0.397
  	maxlen=0.6485
	k=17550
	;k_curve=
	bumpstop_k=100000
	bumpstop_len=0
	;damper_curve=
	bump_rate=823
	bump_function=0
	bump_max=
	rebound_rate=2880
	rebound_function=0
	anti_pitch=0.14
  	roll_center
  	{
    		x=0
    		y=-0.632
    		z=0
  	}
}

susp0~susp_front
{
  	x=0.686
	camber_change_per_m=0.140
	camber_change_steering=0.101
	caster_angle=0.052
	caster_offset=-0.015
	kingpin_angle=-0.140
	kingpin_offset=-0.020
	toe_change_per_m=0.014
	model
	{
		file=
	}
}

susp1~susp_front
{
  	x=-0.686
	camber_change_per_m=0.140
	camber_change_steering=-0.101
	caster_angle=0.052
	caster_offset=-0.015
	kingpin_angle=-0.140
	kingpin_offset=0.020
	toe_change_per_m=-0.014
	model
	{
		file=
	}
}

susp_rear
{
  	y=0.000
  	z=-1.05536
  	restlen=0.610
  	minlen=0.418
  	maxlen=0.650
	k=23000
	;k_curve=
	bumpstop_k=100000
	bumpstop_len=0
	;damper_curve=
	bump_rate=850
	bump_function=0
	bump_max=
	rebound_rate=2975
	rebound_function=0
	anti_pitch=0.08
  	roll_center
  	{
    		x=0
    		y=-0.522
    		z=0
  	}
}

susp2~susp_rear
{
  	x=0.6575
	camber_change_per_m=0
	camber_change_steering=0
	caster_angle=0
	caster_offset=0
	kingpin_angle=0
	kingpin_offset=0
	toe_change_per_m=0
	model
	{
		file=
	}
}

susp3~susp_rear
{
  	x=-0.6575
	camber_change_per_m=0
	camber_change_steering=0
	caster_angle=0
	caster_offset=0
	kingpin_angle=0
	kingpin_offset=0
	toe_change_per_m=0
	model
	{
		file=
	}
}

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.3
	a1=-30
	a2=1000
	a3=1500
	a4=8.7
	a5=0.015
	a6=-0.25
	a7=0.1
	a8=0
	a9=0
	a10=0
	a111=-4.3
	a112=-0.29
	a12=17.8
	a13=-2.4
	b0=1.45
	b1=-40
	b2=1000
	b3=10
	b4=200
	b5=0.08
	b6=0
	b7=0.05
	b8=-0.025
	b9=0
	b10=0
	b11=-50
	b12=0
	c0=2.5
	c1=-4
	c2=-4
	c3=-1
	c4=-6
	c5=0
	c6=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.11
	optimal_slipangle=0.14
}

wheel_front
{
  	y=0
  	z=0
  	powered=0
  	steering=1
	reverse_steering=0
  	lock=65
	ackerman=1.2
	mass=25
  	inertia=0.7
  	radius=0.2971
	width=0.165
  	rolling_coeff=0.008
	friction_road=1
  	max_braking=1000
	max_handbrake_torque=0
  	braking_factor=1
	inboard_brakes=0
	brake_heating=0.00030
	brake_dissipation=0.00029
	brake_max_temp=650
  	tire_rate=205000
  	pacejka~pacejka
  	{
  	}
	skidding
	{
		long_start=0
		long_max=0
		long_start_n=0
		long_max_n=0
		lat_start=0
		lat_max=0
	}
}

wheel0~wheel_front
{
  	x=0
	;0.000°
  	camber=1.194
	;-0.100°
  	toe=-0.218
	model
	{
		file=mdl_left1.dof
		offset
		{
			x=0
		}
	}

	model_brake
	{
		file=mdl_left_front_caliper.dof
	}
}

wheel1~wheel_front
{
  	x=0
	;0.000°
  	camber=1.194
	;0.100°
  	toe=0.218
	model
	{
		file=mdl_right1.dof
		offset
		{
			x=0
		}
	}

	model_brake
	{
		file=mdl_right_front_caliper.dof
	}
}

wheel_rear
{
  	y=0
  	z=0
  	steering=0
	reverse_steering=0
	lock=0
	ackerman=0
  	mass=30
  	inertia=0.7
  	radius=0.2971
	width=0.165
  	rolling_coeff=0.008
	friction_road=1
  	max_braking=300
 	max_handbrake_torque=1500
  	braking_factor=1
	inboard_brakes=0
	brake_heating=0.00030
	brake_dissipation=0.00029
	brake_max_temp=650
  	tire_rate=205000
  	pacejka~pacejka
  	{
		optimal_slipratio=0.11
		optimal_slipangle=0.14
  	}
	skidding
	{
		long_start=0
		long_max=0
		long_start_n=0
		long_max_n=0
		lat_start=0
		lat_max=0
	}
}

wheel2~wheel_rear
{
  	x=0
  	camber=0
  	toe=0
	model
	{
		file=mdl_left1.dof
		offset
		{
			x=0
		}
	}

	model_brake
	{
		file=
	}
}

wheel3~wheel_rear
{
  	x=0
  	camber=0
  	toe=0
	model
	{
		file=mdl_right1.dof
		offset
		{
			x=0
		}
	}

	model_brake
	{
		file=
	}
}

audio
{
	skid
	{
		sample=snd_skid.wav
		sample2=
	}
	horn
	{
		sample=snd_horn.wav
                volume=5
	}
  	shiftout
  	{
    		sample=snd_shift_Out.wav
  	}
	acc_all
	{
		attack=2600
		decay=2600
	}
	accelerate_out
	{
		smp0~audio.acc_all
		{
			sample=snd_1000.wav
			min=1000
			max=1001
			natural=1000
			volume=1
		}
		smp1~audio.acc_all
		{
			sample=snd_2000.wav
			min=2000
			max=2001
			natural=2000
			volume=1.3
		}
		smp2~audio.acc_all
		{
			sample=snd_3000.wav
			min=3000
			max=3001
			natural=3000
			volume=1.6
		}
		smp3~audio.acc_all
		{
			sample=snd_4000.wav
			min=4000
			max=4001
			natural=4000
			volume=1.9
		}
		smp4~audio.acc_all
		{
			sample=snd_5000.wav
			min=5000
			max=5001
			natural=5000
			volume=2.2
		}
		smp5~audio.acc_all
		{
			sample=snd_6000.wav
			min=6000
			max=6001
			natural=6000
			volume=2.5
		}
		smp6~audio.acc_all
		{
			sample=snd_7000.wav
			min=7000
			max=7001
			natural=7000
			volume=2.8
		}
	}
	decelerate_out
	{
		smp0~audio.acc_all
		{
			sample=snd_1000.wav
			min=1000
			max=1001
			natural=1000
			volume=1
		}
		smp1~audio.acc_all
		{
			sample=snd_2000.wav
			min=2000
			max=2001
			natural=2000
			volume=1.3
		}
		smp2~audio.acc_all
		{
			sample=snd_3000.wav
			min=3000
			max=3001
			natural=3000
			volume=1.6
		}
		smp3~audio.acc_all
		{
			sample=snd_4000.wav
			min=4000
			max=4001
			natural=4000
			volume=1.9
		}
		smp4~audio.acc_all
		{
			sample=snd_5000.wav
			min=5000
			max=5001
			natural=5000
			volume=2.2
		}
		smp5~audio.acc_all
		{
			sample=snd_6000.wav
			min=6000
			max=6001
			natural=6000
			volume=2.5
		}
		smp6~audio.acc_all
		{
			sample=snd_7000.wav
			min=7000
			max=7001
			natural=7000
			volume=2.8
		}
	}
	wind
	{
		volume=9
		pitch_scale=1
		pitch_offset=30
		smp0
		{
			sample=snd_wind1.wav
			min=5
			max=6
			attack=33
			decay=33
			natural=80
		}
		smp1
		{
			sample=snd_wind2.wav
			min=30
			max=31
			attack=33
			decay=33
			natural=80
		}
		smp2
		{
			sample=snd_wind3.wav
			min=55
			max=56
			attack=33
			decay=33
			natural=80
		}
	}
}

camera0
{
	name=Driver
	fov=65
	model=1
	view=1
	wheels=0
	follow
	{
		pitch=1
		yaw=1
		roll=1
	}
	offset
	{
		x=0.350
		y=0.300
		z=0.100
	}
	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
	}
}

camera1
{
  	name=Close Behind
  	fov=50
  	model=0
  	view=0
  	wheels=0
	offset
  	{
    		x=0
    		y=1.5
    		z=-5
  	}
  	angle
  	{
    		x=21
    		y=180
    		z=50
  	}
  	follow
  	{
    		pitch=0
    		yaw=1
    		roll=0
  	}
  	src
  	{
    		mass=1
    		k=200
    		damping=30
   		maxdist=1.5
  	}
  	dst
  	{
   		mass=1
    		k=150
    		damping=20
    		maxdist=1.5
  	}
}

camera2
{
	name=Chase
  	fov=45
  	model=0
  	view=0
  	wheels=0
   	offset
   	{
      		x=0.00
      		y=1.50
      		z=-6.00
   	}
   	angle
   	{
      		x=15.50
      		y=180.00
      		z=0.00
   	}
   	follow
   	{
      		pitch=0
      		yaw=1
      		roll=0
   	}
 	src
 	{
  		mass=5
  		k=50
  		damping=100
  		maxdist=2
 	}
	dst
	{
		mass=1
		k=0
		damping=0
		maxdist=0
	}
}

camera3
{
 	name=Hi-Speed Bumper Cam
 	fov=85
 	model=2
 	view=2
 	wheels=0
 	offset
 	{
  		x=0
  		y=0.15
  		z=2.1
 	}
 	angle
 	{
  		x=0
  		y=180
  		z=0
 	}
 	follow
 	{
  		pitch=1
  		yaw=1
  		roll=1
 	}
}

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

camera5
{
  	name=Effect Cam 1
  	fov=68
  	model=0
  	view=0
  	wheels=0
  	offset
  	{
    		x=-0.67
    		y=-0.17
    		z=-3.94
  	}
  	angle
  	{
    		x=2.5
    		y=-150
    		z=-15
  	}
  	follow
  	{
    		pitch=0
    		yaw=0
    		roll=0
  	}
}

camera6
{
 	name=Effect Cam 2
 	fov=68
 	model=0
 	view=1
 	wheels=1
 	follow
 	{
  		pitch=0
  		yaw=0
  		roll=0
 	}
 	offset
 	{
  		x=0
  		y=-0.25
  		z=-5.5
 	}
 	angle
 	{
  		x=6
  		y=30
  		z=0
 	}
}

camera7
{
 	name=Effect Cam 3
 	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 4 - Wheel
 	fov=68
 	model=0
 	view=0
 	wheels=0
 	offset
 	{
  		x=1.15
  		y=0.2
  		z=0.35
 	}
 	angle
 	{
  		x=-2
  		y=-175
  		z=-7
 	}
 	follow
 	{
  		pitch=1
  		yaw=1
  		roll=1
 	}
}

camera9
{
 	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=22
  		y=90
  	z=0
 	}
}