car
{
	name=Fiat Multipla I 1.9 JTD (Minivan)
	year=2001 (vmax:175 km/h; 0-100:12,7s)
        credits= Converted By Fabikan75;Model by lazlow555
        comments=Poj: 1910cc,Moc: 110 KM (81kW) przy 4000 obr/min,Mmo: 200 Nm przy 1500 obr/min
	id=ugly
        version=050f
	wheels=4
	skid
	{
		sample=skid.wav
	}
	shadow
	{
		texture=shadow.tga
		width=0
		length=0
	}
	cg
	{
		x=0
		y=-0.068	;1444mm high, 38% of roof height ~ 55cm CofG
		z=0.2	;59/41
	}
	ff_factor=0.25
}

graphics
{
	intensity=0.3
	shadow
	{
		model
		{
			file=body.dof
			use_shaders=0
		}
	}
}

body
{
	x=0
	y=0
	z=0
	mass=1370
	inertia
	{
		x=1850
		y=2100
		z=520
	}
	restitution_coeff=0.1
	width=1.871
	height=1.695
	length=3.994
	manual_box=1
	model
	{
		file=body.dof
	}
	model_incar
	{
		file=gti.dof
	}
	model_braking_l
	{
		file=brakes.dof
	}
	model_light_l
	{
		file=lights.dof
       	}
 model_lightroad_l
 {
  file=lightsin.dof
 }
 model_reverse_l
  {
    file=wsteczny.dof
  }
}
lights
{
  ; Projected lights
  light0
  {
    texture=light.tga
    ; Field of view (vertical)
    fov=35
    ; Aspect (horizontal)
    aspect=5
    ; Distance to car
    z=1.3
    ; Pitching with respect to car (in degrees)
    pitch=0
    ; Fall-off distance
    far=100
  }
  light1
  {
    texture=light.tga
    ; Field of view (vertical)
    fov=25.0
    ; Aspect (horizontal)
    aspect=1.3
    ; Distance to car
    z=1.3
    ; Pitching with respect to car (in degrees)
    pitch=10
  }
}
steer
{
	x=0.46
	y=0.08
	z=0.5
	xa=15
	lock=360
	linearity=0.3
	model
	{
		file=str.dof
		lod0_z=0
		lod_out=2
	}
}

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

	idle_rpm=750
	max_rpm=5000
	stall_rpm=200
	start_rpm=1000
	start_stalled=1
	starter_torque=500
	autoclutch_rpm=1200

	curve_torque=torque.crv
	max_torque=200
	shifting
	{
		automatic=0
		shift_up_rpm=4500
		shift_down_rpm=1200
		time_to_declutch=200
      time_to_clutch=200
      time_in_neutral=100
      time_to_declutch_down=135
      time_to_clutch_down=135
      time_in_neutral_down=135
	}
	inertia
	{
		engine=0.27
		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=-2.923
    		inertia=0.2
  	}
gear1
  	{
    		ratio=3.6
    		inertia=0.02

  	}
gear2
  	{
    		ratio=2.5
    		inertia=0.04
  	}
gear3
  	{
    		ratio=1.85
    		inertia=0.06

  	}
gear4
  	{
    		ratio=1.5
    		inertia=0.08

  	}
gear5
  	{
    		ratio=1.25
    		inertia=0.10
  	}
}

differential
{
	type=1
	ratio=2.7
	inertia=0.1
	locking_coeff=25
	output0=0
	output1=1
}

clutch
{
	max_torque=195
}

handbrakes
{
	wheels=23
}

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

antirollbar
{
	count=2
	arb0
	{
		susp_left=0
		susp_right=1
		k=41000
	}
	arb1
	{
		susp_left=2
		susp_right=3
		k=34000
	}
}

susp_front
{
	y=-0.43
	z=1.23
	restlen=0.451			;293	395kg
	minlen=0.22
	maxlen=0.46
	k=27000			;@ static load and 1.316 NF SR
	bump_rate=1350		;0.7	1944
	rebound_rate=4600	;0.7	6531
	bump_function=0
	bump_max=1500
	rebound_function=0
	anti_pitch=0.1
	camber_change_per_m=0.067
	roll_center
	{
		x=0
		y=-0.552	;60mm
		z=0
	}
}

susp_rear
{
	y=-0.43
	z=-1.42
	restlen=0.420			;305	275kg
	minlen=0.2
	maxlen=0.43
	k=24500			;@ static load and 1.502 NF SR
	bump_rate=1400		;0.75	1852
	rebound_rate=4200	;0.8	5191
	bump_function=0
	bump_max=1500
	rebound_function=0
	anti_pitch=0.1
	camber_change_per_m=0.14
	roll_center
	{
		x=0
		y=-0.504	;120mm
		z=0
	}
}

susp0~susp_front
{
	x=0.77
	camber_change_steering=0.147	;0.25 rad ~ 14.5 degree camber with 1 radian rotation of steering @ 8 degree caster
	caster_offset=-0.0235		;8 degrees static caster -0.0235	
	toe_change_per_m=0
}
susp1~susp_front
{
	x=-0.77
	camber_change_steering=-0.147	;0.25 rad ~ 14.5 degree camber with 1 radian rotation of steering @ 8 degree caster
	caster_offset=-0.0235		;5.78 degrees static caster -0.0235
	toe_change_per_m=0
}

susp2~susp_rear
{
	x=0.77
}
susp3~susp_rear
{
	x=-0.77
}

;----------------------tyres----------------------

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.5
    a1=-35
    a2=1100			;FRONT wheels grip
    a3=500			;UNDERSTEER tendency. higher value - less understeer
    a4=9
    a5=0.015
    a6=-0.25
    a7=1.0
    a8=-0.03
    a9=-0.001
    a10=-0.15
    a111=-8.5
    a112=-0.29
    a12=17.8
    a13=-2.4
    b0=1.6
    b1=-70
    b2=1080	;REAR wheels grip
    b3=20
    b4=325
    b5=0.08
    b6=0
    b7=0.05
    b8=-0.025
    b9=0.015
    b10=0.25
    b11=-80
    b12=350
    c0=2.3
    c1=-3.8
    c2=-3.14
    c3=-1.16
    c4=-7.2
    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.11
    optimal_slipangle=0.159
}

skidding_default
{
	long_start=0.1
	long_max=1.0
	long_start_n=0.1
	long_max_n=1.0
	lat_start=0.1
	lat_max=1.0
}

;----------------------wheels----------------------

wheel_front
{
	y=0
	z=0
	steering=1
	powered=1
	lock=52
	mass=20
	inertia=1.4
	radius=0.3135
        width=0.205	
	rolling_coeff=0.001
	max_braking=1800
	braking_factor=1
	tire_rate=250000
	pacejka~pacejka
	{
	}
}

wheel_rear
{
	y=0
	z=0
	steering=0
	powered=0
	mass=20
	inertia=1.35
	radius=0.3135
        width=0.205		
	rolling_coeff=0.001
	max_braking=1700
	braking_factor=0.25
	max_handbrake_torque=3400
	tire_rate=230000
	pacejka~pacejka
	{
		optimal_slipratio=0.11
		optimal_slipangle=0.155
	}
}

wheel0~wheel_front
{
	x=0
	ackerman=1.15
	toe=-0
	camber=0.007	;-0.6
	model
	{
		file=left.dof
	}
	model2
	{
		file=wheel_lf_blur1.dof
		velocity=20
	}
	model3
	{
		file=wheel_lf_blur2.dof
		velocity=60
	}
	model_brake
	{
		file=brake_lf.dof
	}
}

wheel1~wheel_front
{
	x=0
	ackerman=-1.15
	toe=0
	camber=0.007
	model
	{
		file=right.dof
	}
	model2
	{
		file=wheel_rf_blur1.dof
		velocity=20
	}
	model3
	{
		file=wheel_rf_blur2.dof
		velocity=60
	}
	model_brake
	{
		file=brake_rf.dof
	}
}

wheel2~wheel_rear
{
	x=0
	toe=-0.21	;toe in, goes to out under bump like M3 Z axle
	camber=-0.588	;-1.5
	model
	{
		file=left.dof
	}
	model2
	{
		file=wheel_lr_blur1.dof
		velocity=20
	}
	model3
	{
		file=wheel_lr_blur2.dof
		velocity=60
	}
	model_brake
	{
		file=brake_lr.dof
	}
}

wheel3~wheel_rear
{
	x=0
	toe=0.21	;toe in, goes to out under bump like M3 Z axle
	camber=-0.588
	model
	{
		file=right.dof
	}
	model2
	{
		file=wheel_rr_blur1.dof
		velocity=20
	}
	model3
	{
		file=wheel_rr_blur2.dof
		velocity=60
	}
	model_brake
	{
		file=brake_rr.dof
	}
}

;	------------------ Artyfishul Intellygents -----------------
     
ai
{
	grip_factor=1.1
}

;	------------------ 5.1 ALPHA AUDIO COMPATABILTY -----------------

audio
{
  skid
  {
    sample=skid_01.wav
    sample2=skid_02.wav 
  }
  skid
  {
    sample=skid.wav
  }
  acc_all
  {
    attack=1000
    decay=1000
  }
  acc_turbo
  {
   attack=2000
   decay=2000
  }
  accelerate_out
  {
    volume=2.0
    smp0~audio.acc_all
    {
      sample=idle.wav
      min=700
      max=2300
      attack=1200
      decay=1000
      natural=750
      volume=1
    }
    smp1~audio.acc_all
    {
      sample=.wav
      min=1000
      max=4600
      attack=1000
      decay=1000
      natural=11000
      volume=0.15
    }
    smp2~audio.acc_all
    {
      sample=2.wav
      min=1500
      max=5000
      attack=1800
      decay=1800
      natural=3500
    }
    smp3~audio.acc_all
    {
      sample=4500.wav
      min=4000
      max=6000
      attack=4000
      decay=4000
      natural=16000
    }
    smp4~audio.acc_turbo
    {
     sample=turbo.wav
     min=1300
     max=5800
     natural=1800
     volume=0.5
    }
  }
}

;----------------------driving aids----------------------

traction_control
{
	max_velocity_ratio=1.2
	min_velocity_ratio=1.1
	enable=0
}

abs
{
	max_velocity_ratio=1.2
	min_velocity_ratio=1.15
	enable=1
}


;---------------------------------------------
;Cameras
;---------------------------------------------

camera0
{
  offset
  {
    x=0
    y=1.513334
    z=-5.045006
  }
  angle
  {
    x=21
    y=180
    z=50
  }
  name=Close Behind
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  fov=50
  model=0
  wheels=0
  view=0
  src
  {
    mass=1
    k=200
    damping=30
    maxdist=1.5
  }
  dst
  {
    mass=1
    k=150
    damping=20
    maxdist=1.5
  }
}
camera1
{
  offset
  {
    x=-0.006250
    y=3.
    z=-7.495010
  }
  angle
  {
    x=15.138849
    y=180.173615
    z=180.000000
  }
  name=High Behind
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  fov=50
  model=0
  wheels=0
  view=0
  src
  {
    mass=1
    k=200
    damping=30
    maxdist=1.5
  }
  dst
  {
    mass=1
    k=150
    damping=20
    maxdist=1.5
  }
}
camera2
{
 offset
 {
  x=0
  y=0.15
  z=2.100000
 }
 angle
 {
  x=0.000000
  y=180.000000
  z=0.000000
 }
 name=Hi-Speed Bumper Cam
 follow
 {
  pitch=1
  yaw=1
  roll=1
 }
 fov=85
 model=2
 wheels=0
 view=2
}
camera3
{
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=0
    y=-0.7
    z=0.7
  }
  angle
  {
    x=9.027775
    y=180
    z=0.000000
  }
  name=Hood Cam
  fov=60
  model=0
  wheels=0
  view=0
}
camera4
{
  offset
  {
    x=-0.670312
    y=-0.166667
    z=-3.944994
  }
  angle
  {
    x=2.500038
    y=-152.604248
    z=-15.017359
  }
  follow
  {
    pitch=0
    yaw=0
    roll=0
  }
  fov=50
  model=0
  wheels=0
  view=0
  name=Effect Cam 1
}

camera5
{
 follow
 {
  pitch=0
  yaw=0
  roll=0
 }
 offset
 {
  x=0.0
  y=-0.25
  z=-5.5
 }
 angle
 {
  x=6.0
  y=30.853992
  z=0.0
 }
 name=Effect Cam 2
 fov=60
 model=0
 wheels=1
 view=1
}
camera6
{
 follow
 {
  pitch=0
  yaw=1
  roll=0
 }
 offset
 {
  x=0
  y=0
  z=-9
 }
 angle
 {
  x=3.861111
  y=33.853992
  z=-14.322908
 }
 fov=80
 model=0
 wheels=1
 view=0
 name=Effect Cam 3
}
camera7
{
 offset
 {
  x=1.150625
  y=0.2
  z=0.350000
 }
 angle
 {
  x=-2.00
  y=-175.472336
  z=-7.017359
 }
 follow
 {
  pitch=1
  yaw=1
  roll=1
 }
 fov=72
 model=0
 wheels=0
 view=0
 name=Effect Cam 4 - Wheel
}
camera8
{
 follow
 {
  pitch=0
  yaw=0
  roll=0
 }
 offset
 {
  x=0
  y=0.25
  z=-9
 }
 angle
 {
  x=10
  y=150
  z=0
 }
 fov=25
 model=0
 wheels=1
 view=0
 name=Effect Cam 5
}
camera9
{
	name=Driver
	fov=60
	model=0
	wheels=0
	view=1
	name=Inside
	fov=55

	follow
	{
		pitch=1
		yaw=1
		roll=1
	}
	offset
	{
		x=0.358
		y=0.4
		z=-0.10
	}
	offset_to
	{
		x=0
		y=0
		z=10
	}
	angle
	{
		x=1.000000
		y=180.000000
		z=0.000000
	}
	src
	{
		mass=5
		k=750
		damping=75
		maxdist=0.2
	}
	dst
	{
		mass=0
		k=0
		damping=0
		maxdist=0
	}
}