car
{
  name=Alfa Romeo Giulietta QV
  year=2011
  credits=Converted by Kacper, www.racer-polska.pl
  id=alfagiulietta
  version=090
  comments=Quadrifoglio Verde 265 KM :)
  wheels=4
  ff_factor=0.8
  skid
  {
    sample=skid.wav
  }
  shadow
  {
    texture=shadow.tga
    width=2.4
    length=4.80
    offset_z=-0.06
  }
  cg
  {
    x=0
    y=-0.22	;53,7 cm (~38%)
    z=0.365	;64,1% devant
  }
}
  	fuel
  	{
  	bsfc=15e-5
  	max=70
  	type=0
}
graphics 
{
  shadow 
  {
    texture=shadow.tga
    model
    {
      file=giulietta.dof
    }
  }
	generic
	{
		model0
		{
		file=halogeny.dof
		}
		model1
		{
		file=dlugie.dof
		}
	}
}
lights
{
  light0
  {
    fov=35
    aspect=3.5
    z=1.5
    pitch=0
    far=25
    texture=light.tga
  }
}
flares
{
  flare0
  {
    pos=-0.6580 0.1015 1.9025
    color=100 60 40
	normal=0.05 0 1
	z_offset=-2500
	size_factor=0.7
	intensity=3
        hor_scale=0.7
  }
  flare1
  {
    pos=0.6580 0.1015 1.9025
    color=100 60 40
	normal=0.05 0 1
	z_offset=-2500
	size_factor=0.7
	intensity=3
        hor_scale=0.7
  }
}
body
{
  mass=1215
  inertia
  {
    x=2300
    y=2500
    z=700
  }
  width=1.480	;1986 mm
  height=1.779	;1332 mm
  length=4.199	;4118 mm
  manual_box=0
  model
  {
    file=giulietta.dof
  }
  model_incar
  {
    file=giulietta.dof
  }
  model_braking_l
  {
    file=stop.dof
  }
  model_light_l
  {
    file=lights.dof
  }
  model_lightroad_l
  {
    file=lightsin.dof
  }
  model_lightsteer_l
  {
    file=steerlight.dof
  }
  model_collide
  {
    file=ombre_e.dof
  }
  model_reverse_l
  {
    file=rev.dof
  }
  model_reverse_r
  {
    file=rev.dof
  }
}
steer
{
  x=0.3398
  y=0.34
  z=0.315
  xa=22
  lock=900		;2.69 turns lock-to-lock, 10.34 m turning circle
  linearity=0.78        ;900/1152 = 0.78
  model
  {
    file=steering.dof
  }
}
engine
{
	x=0
	y=0
	z=0.75
	size=0
	mass=150
        idle_rpm=900
	max_rpm=7300
	stall_rpm=400
	start_rpm=1000
	start_stalled=1
	starter_torque=100
	autoclutch_rpm=1000

	curve_torque=torque.crv
	max_torque=340

	shifting
	{
		automatic=0
		shift_up_rpm=7300
		shift_down_rpm=3000
		time_to_declutch=50
		time_to_clutch=50
		time_in_neutral=100
		time_to_declutch_down=50
		time_to_clutch_down=50
		time_in_neutral_down=100
	}
	inertia
	{
		engine=0.25
		final_drive=0.1
	}
	braking_coeff=2.5
	rolling_friction_coeff=0.1
	sample=8000.wav
	sample_rpm=8000
}

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

gearbox
{
	gears=7

	gear0
	{
		ratio=-2.83
		inertia=.028
		linearity=1
	}

	gear1
	{
		ratio=3.266
		inertia=.032
		linearity=1
	}

	gear2
	{
		ratio=2.13
		inertia=.021
		linearity=1
	}

	gear3
	{
		ratio=1.517
		inertia=.015
		linearity=1
	}

	gear4
	{
		ratio=1.147
		inertia=.011
		linearity=1
	}

	gear5
	{
		ratio=0.921
		inertia=.009
		linearity=1
	}

	gear6
	{
		ratio=0.74
		inertia=.007
		linearity=1
	}
}

differential
{
	type=0
	ratio=4.267
	inertia=0.1
	locking_coeff=25
	output0=0
	output1=1
}
clutch
{
	max_torque=450
}
handbrakes
{
	wheels=23
}
abs
{
  enable=1
  braking_factor=1
  max_velocity_ratio=1.100
  min_velocity_ratio=1.095
  min_velocity=3.61
}
traction_control
{
  enable=1
  max_velocity_ratio=1.04
  min_velocity_ratio=1.035
  min_velocity=3.61
}
aero
{
  body
  {
    center=0 0 0
    cx=0.33
    area=2.12
  }
  wings=2
  wing0
  {
    name=Front axle lift
    span=1
    cord=1
    coeff_drag=0
    coeff_down=-5
    center=0 0 1.3125
    angle=0
    angle_offset=1
  }
  wing1
  {
    name=Rear axle lift
    span=1
    cord=1
    coeff_drag=0
    coeff_down=-5
    center=0 0 -1.3125
    angle=0
    angle_offset=1
  }
}
antirollbar
{
  count=2
  arb0
  {
    susp_left=0
    susp_right=1
    k=30000
  }
  arb1
  {
    susp_left=2
    susp_right=3
    k=7100
  }
}
susp_front
{
  y=0.12
  z=1.2499
  restlen=0.53
  maxlen=0.47
  minlen=0.27	;0.3
  warplen=0.409
  k=32000		
  damper_curve=suspension_damper_front.crv
  bumpstop_len=0.050
  bumpstop_k=164000
  bumpstop_damping=3700
  reboundstop_len=0.010
  reboundstop_k=50000
  reboundstop_damping=1000
  toe_change_per_steering=7
  camber_change_per_steering=0.6
  camber_change_m=-0.04
  anti_pitch=0.12
  roll_center
  {
    x=0
    y=-0.55	
    z=0
  }
}
susp_rear
{
  y=0.12
  z=-1.367
  restlen=0.539  ;angle de 1,0055°
  maxlen=0.480
  minlen=0.280
  warplen=0.425
  k=18500		
  damper_curve=suspension_damper_rear.crv
  bumpstop_len=0.050
  bumpstop_k=96000
  bumpstop_damping=2200
  reboundstop_len=0.010
  reboundstop_k=50000
  reboundstop_damping=1000
  anti_pitch=0.9
  camber_change_per_m=0.075
  roll_center
  {
    x=0
    y=-0.585
    z=0
  }
}
susp0~susp_front
{
  x=0.77
}
susp1~susp_front
{
  x=-0.77
}
susp2~susp_rear
{
  x=0.77
}
susp3~susp_rear
{
  x=-0.77
}
pacejka
{
  a0=1.4	
  a1=-46	;ps (from pacejkaseries.txt, 205/55 R16)
  a2=1300
  a3=2000
  a4=11
  a5=0.015
  a6=-0.25
  a7=1.0
  a8=-0.03
  a9=-0.001
  a10=-0.15
  a111=0	;ps
  a112=-0.29
  a12=17.8
  a13=-2.4
  b0=1.5
  b1=-92	;ps doubled
  b2=1360
  b3=23.3
  b4=325
  b5=0.08
  b6=0.0
  b7=0.05
  b8=-0.024
  b9=0.015
  b10=0.25
  b11=-86
  b12=0.0
  c0=2.3
  c1=-3.8
  c2=-3.14
  c3=-1.0
  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.04
  c15=-1.029
  c16=0.27
  c17=-1.1
  optimal_slipratio=0.12
  optimal_slipangle=0.22
}
wheel_front
{
  x=0
  y=0
  z=0
  tire_damping=500
  tire_damping_lowspeed=2500
  tire_damping_threshold=5.0
  brake_heating=0.003
  brake_dissipation=0.0005
  brake_max_temp=1000
  steering=1
  ackerman=1.2
  lock=67.89
  mass=30
  inertia=1.35
  rolling_coeff=0.009
  width=0.225
  radius=0.345
  max_braking=3000
  braking_factor=0.7
  tire_rate=210000
  pacejka~pacejka
  {
  }
}
;225/45 R17 (!)
wheel_rear
{
  x=0
  y=0
  z=0
  tire_damping=500
  tire_damping_lowspeed=2500
  tire_damping_threshold=5.0
  brake_heating=0.003
  brake_dissipation=0.0005
  brake_max_temp=1000
  steering=0
  mass=30
  inertia=1.35
  rolling_coeff=0.009
  width=0.225
  radius=0.345
  max_braking=430
  max_handbrake_torque=4300
  braking_factor=0.5
  tire_rate=210000
  pacejka~pacejka
  {
  }
}
;225/45 R17 (!)
wheel0~wheel_front
{
	x=0
	toe=-0.1695
	camber=0	
	model
	{
		file=lf.dof
	}
	model_brake
	{
		file=lewyprzod.dof
	}
}

wheel1~wheel_front
{
	x=0
	toe=0.1695
	camber=0
	model
	{
		file=rf.dof
	}
	model_brake
	{
		file=prawyprzod.dof
	}
}

wheel2~wheel_rear
{
	x=0
	toe=-0.133
	camber=0	
	model
	{
		file=lf.dof
	}
	model_brake
	{
		file=lewytyl.dof
	}
}

wheel3~wheel_rear
{
	x=0
	toe=0.133
	camber=0
	model
	{
		file=rf.dof
	}
	model_brake
	{
		file=prawytyl.dof
	}
}
camera0
{
  name=Driver
  fov=70
  model=1
  wheels=0
  view=1
  offset
  {
    x=0.35
    y=0.56
    z=-0.06
  }
  offset_to
  {
    x=0.43
    y=0.03
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera1
{
  name=Driver, left
  fov=60
  model=1
  wheels=0
  view=1
  offset
  {
    x=0.35
    y=0.56
    z=-0.06
  }
  offset_to
  {
    x=10.43
    y=0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera2
{
  name=Driver, right
  fov=60
  model=1
  wheels=0
  view=1
  offset
  {
    x=0.35
    y=0.56
    z=-0.06
  }
  offset_to
  {
    x=-9.57
    y=0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera3
{
  name=Driver, rear
  fov=-65
  model=0
  wheels=0
  view=0
  offset
  {
    x=0.0
    y=0.56
    z=-0.06
  }
  offset_to
  {
    x=-1
    y=0.5
    z=-10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0
  }
  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=-17
  }
  angle
  {
    x=10
    y=50
    z=0
  }
}
camera9
{
	name=Bonnet
	fov=60
	model=0
	wheels=0
	view=0
	offset
	{
		x=0.356
    		y=-0.75
    		z=0.55
	}
	follow
	{
		pitch=1
		yaw=1
		roll=1
	}
	angle
	{
		x=5
		y=180
		z=0
	}
}
audio
{
	skid
	{
	volume=2
        sample=skid.wav
        sample2=skid.wav
	}
	horn
	{
		sample=horn.wav
	}
	shiftout
	{
		sample=audio/shiftout.wav
	}
	shiftin
	{
		sample=audio/shiftin.wav
	}
	acc_all
	{
		attack=1350
		decay=1350
		volume=1
	}
	accelerate_out
	{
		smp0~audio.acc_all
		{
			sample=1000.wav
			min=1000
			max=1001
			natural=1100
			volume=0.7
		}
		smp1~audio.acc_all
		{
			sample=2000.wav
			min=2000
			max=2001
			natural=2100
		}
		smp2~audio.acc_all
		{
			sample=3200.wav
			min=3000
			max=3001
			natural=3100
		}
		smp3~audio.acc_all
		{
			sample=4300.wav
			min=4000
			max=4001
			natural=3750
		}
		smp4~audio.acc_all
		{
			sample=5200.wav
			min=5000
			max=5001
			natural=4750
		}
		smp5~audio.acc_all
		{
			sample=6500.wav
			min=6000
			max=6001
			natural=5750
		}
		smp6~audio.acc_all
		{
			sample=7100.wav
			min=7000
			max=7001
			natural=6750
		}
	}
	accelerate_in
	{
		smp0~audio.acc_all
		{
			sample=i1000.wav
			min=1000
			max=1001
			natural=1100
			volume=0.7
		}
		smp1~audio.acc_all
		{
			sample=i2000.wav
			min=2000
			max=2001
			natural=2100
			volume=0.7
		}
		smp2~audio.acc_all
		{
			sample=i3200.wav
			min=3000
			max=3001
			natural=3100
			volume=0.7
		}
		smp3~audio.acc_all
		{
			sample=i4300.wav
			min=4000
			max=4001
			natural=3750
			volume=0.7
		}
		smp4~audio.acc_all
		{
			sample=i5200.wav
			min=5000
			max=5001
			natural=4750
			volume=0.8
		}
		smp5~audio.acc_all
		{
			sample=i6500.wav
			min=6000
			max=6001
			natural=5750
			volume=0.9
		}
		smp6~audio.acc_all
		{
			sample=i7100.wav
			min=7000
			max=7001
			natural=6750
			volume=1
		}
	}
	decelerate_out
	{
		smp0~audio.acc_all
		{
			sample=1000.wav
			min=1000
			max=1001
			natural=1000
			volume=1
		}
		smp1~audio.acc_all
		{
			sample=2000.wav
			min=2000
			max=2001
			natural=2000
		}
		smp2~audio.acc_all
		{
			sample=3200.wav
			min=3000
			max=3001
			natural=3000
		}
		smp3~audio.acc_all
		{
			sample=4300.wav
			min=4000
			max=4001
			natural=3650
		}
		smp4~audio.acc_all
		{
			sample=5200.wav
			min=5000
			max=5001
			natural=4650
		}
		smp5~audio.acc_all
		{
			sample=6500.wav
			min=6000
			max=6001
			natural=5650
		}
		smp6~audio.acc_all
		{
			sample=7100.wav
			min=7000
			max=7001
			natural=6650
		}
	}
	decelerate_in
	{
		smp0~audio.acc_all
		{
			sample=i1000.wav
			min=1000
			max=1001
			natural=1000
			volume=1
		}
		smp1~audio.acc_all
		{
			sample=i2000.wav
			min=2000
			max=2001
			natural=2000
			volume=0.5
		}
		smp2~audio.acc_all
		{
			sample=i3200.wav
			min=3000
			max=3001
			natural=3000
			volume=0.6
		}
		smp3~audio.acc_all
		{
			sample=i4300.wav
			min=4000
			max=4001
			natural=3650
			volume=0.8
		}
		smp4~audio.acc_all
		{
			sample=i5200.wav
			min=5000
			max=5001
			natural=4650
			volume=0.9
		}
		smp5~audio.acc_all
		{
			sample=i6500.wav
			min=6000
			max=6001
			natural=5650
			volume=0.9
		}
		smp6~audio.acc_all
		{
			sample=i7100.wav
			min=7000
			max=7001
			natural=6650
			volume=1
		}
	}
	gearwhine
 	{
		smp0
		{
			sample=audio/tw-extonhigh.wav
			volume=0.05
			min=1
			max=2
			decay=1000
			natural=500
		}
	}
	wind
	{
		volume=14
		pitch_scale=1.25
		pitch_offset=0
 		smp0
		{
			sample=wind1.wav
			min=25
			max=26
			attack=33
			decay=33
			natural=80
		}
		smp1
		{
			sample=wind2.wav
			min=50
			max=51
			attack=33
			decay=33
			natural=80
		}
		smp2
		{
			sample=wind3.wav
			min=75
			max=76
			attack=33
			decay=33
			natural=80
		}
	}
}