car
{
	name=VW Golf III GTI
	year=1994
        credits=Converted by Filip Z M3
        comments=Golf III GTI
	id=vwgolfmkIIIGTI
        version=090b
	wheels=4
	skid
	{
		sample=skid.wav
	}
	shadow
	{
		texture=shadow.tga
		width=2.1
		length=4.376
	}
  	cg
  	{
    		x=0
    		y=-0.1835
    		z=0.1768
  	}
	ff_factor=0.25
}
pilot
{
        helmet
        {
       ;Zapach
        model
        {
        file=inne.dof
        }
        pos=-0.0066 0.5548 0.1009
    }
}
graphics
{
  	shadow
  	{
    		model
    		{
      			file=buda_gti.dof
			use_shaders=1
    		}
		intensity=0.6
  	}
  generic
  {
   model0
   {
     file=capot.dof
   }
   model1
   {
     file=front_bumper.dof
   }
   model2
   {
     file=mala.dof
   }
   model3
   {
     file=porta_condutor.dof
   }
   model4
   {
     file=porta_passageiro.dof
   }
   model5
   {
     file=rear_bumper.dof
   }
   model6
   {
     file=sun_roof.dof
   }
   model7
   {
     file=escape.dof
   }
   model8
   {
     file=komora.dof
   }
   model9
   {
     file=motor.dof
   }
  }
}
body
{
  mass=1253
  inertia
  {
    x=2300
    y=2500
    z=700
  }
  width=1.735
  height=1.446
  length=4.376
  manual_box=0
  model
  {
    file=buda_gti.dof
  }
  model_incar
  {
    file=buda_gti.dof
  }
  model_braking_l
  {
    file=brake.dof
  }
  model_light_l
  {
    file=lampy.dof
  }
  model_lightroad_l
  {
    file=lampy.dof
  }
  model_reverse_l
  {
    file=rev.dof
  }
  model_reverse_r
  {
    file=rev.dof
  }
}
lights
{
  ; Projected lights
  light0
  {
    texture=light.tga
    ; Field of view (vertical)
    fov=35
    ; Aspect (horizontal)
    aspect=4.5
    ; Distance to car
    z=0.7
    ; 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
    ; Distance to car
    z=1.5
    ; Pitching with respect to car (in degrees)
    pitch=10
  }
}
steer
{
	x=0.3222
	y=0.187
	z=0.36
	xa=20
	lock=960
	linearity=0.78
	model
	{
		file=kiera.dof
		lod0_z=0
		lod_out=2
	}
}
fuel
{
  bsfc=6.8e-5
  max=62
  type=0
}
engine
{
	x=0
	y=0.5
	z=0.5
	size=0.25
	mass=80  "peso motor" + total bruto 850kg"

	idle_rpm=900
	max_rpm=7000
	stall_rpm=400
	start_rpm=1500
	start_stalled=1
	starter_torque=200
	autoclutch_rpm=1500

	curve_torque=dyn.crv
	max_torque=150
      reaction=1
	shifting
	{
		automatic=0
      shift_up_rpm=13000
      shift_down_rpm=4500
      time_to_declutch=100
		time_to_clutch=80
		time_in_neutral=100
		time_to_declutch_down=135
		time_to_clutch_down=135
		time_in_neutral_down=135
	}
	inertia
	{
		engine=0.1984
	}
	braking_coeff=2.5
	rolling_friction_coeff=0.1
      friction=0
	sample=ex_power4380.wav
	sample_rpm=4500
}

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


gearbox
{
   gears=6
   gear0
   {
      ratio=-4.107
      inertia=-0.04
   }
   gear1
   {
      ratio=3.300
      inertia=-0.04
    engine_map=13.81
   }
   gear2
   {
      ratio=1.944
      inertia=-0.05
    engine_map=8.05
   }
   gear3
   {
      ratio=1.308
      inertia=-0.06
    engine_map=5.35
   }
   gear4
   {
      ratio=1.034
      inertia=-0.07
    engine_map=3.98
   }
   gear5
   {
      ratio=0.838
      inertia=0.07
    engine_map=3.28
   }
}
differential
{
   type=1
   ratio=3.389
   inertia=0.15
   clutches=1
   output0=0
   output1=1
}
clutch
{
	max_torque=210
}
handbrakes
{
	wheels=23
}
aero
{
	body
	{
		center=0 0 0
		cx=0.36
		area=1.9
	}
	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.05
	z=1.1721
	restlen=0.38			;293	395kg
	minlen=0.19
	maxlen=0.43
	k=60000 ;43781.6943144			;@ static load and 1.316 NF SR
	bump_rate=4600		;0.7	1944
	rebound_rate=4600	;0.7	6531
	bump_function=0
	rebound_function=0
	anti_pitch=0.1
	camber_change_per_m=0.05
	roll_center
	{
		x=0
		y=-0.552	;60mm
		z=0
	}
}

susp_rear
{
	y=0.03
	z=-1.2286
	restlen=0.345			;305	275kg
	minlen=0.19
	maxlen=0.39
	k=60000 ;43781.6943144			;@ static load and 1.502 NF SR
	bump_rate=4600		;0.75	1852
	rebound_rate=4200	;0.8	5191
	bump_function=0
	rebound_function=0
	anti_pitch=0.6
	camber_change_per_m=0.1
	roll_center
	{
		x=0
		y=-0.504	;120mm
		z=0
	}
}
susp0~susp_front
{
  x=0.72
}
susp1~susp_front
{
  x=-0.74
}
susp2~susp_rear
{
  x=0.72
}
susp3~susp_rear
{
  x=-0.74
}
tire_model_front
{
	damping_predict_lat=0
	damping_predict_long=0
}
tire_model_rear
{
	damping_predict_lat=0
	damping_predict_long=0
}
pacejka
{
  ; Pacejka constants for all tires
  ; Lateral force
a0=1.45 
a1=-37.5
a2=1530
a3=1710
a4=9.4
a5=0.013
a6=-0.336
a7=1.14
a8=0.019
a9=-0.019
a10=-0.18
a111=-20.7
a112=-0.021
a12=0.48
a13=12.2
; Longitudinal force
  b0=1.45
  b1=-75
  b2=1320
  b3=23.3
  b4=350
  b5=0
  b6=0.00
  b7=0.055
  b8=-0.024
  b9=0
  b10=0.26
  b11=-86
  b12=0
; Aligning moment
  c0=2.3 
  c1=-3.8 
  c2=-3.14 
  c3=0.24
  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 
}
pacejka_rear
{
a0=1.35
a1=-37.5
a2=1630
a3=1900
a4=9.4
a5=0.013
a6=-0.336
a7=1.14
a8=0.019
a9=-0.019
a10=-0.18
a111=-20.7
a112=-0.021
a12=0.48
a13=12.2
 
; Longitudinal force
  b0=1.55
  b1=-75
  b2=1570
  b3=23.3
  b4=375
  b5=0
  b6=0
  b7=0.055
  b8=-0.024
  b9=0
  b10=0.26
  b11=-86
  b12=0
; Aligning moment
  c0=2.3 
  c1=-3.8 
  c2=-3.14 
  c3=0.24
  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 
}
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=35
	inertia=1.4
	radius=0.33
        width=0.185	
	rolling_coeff=0.0180
	max_braking=4800
	braking_factor=1
	tire_rate=250000
	pacejka~pacejka
	{
	}
}

wheel_rear
{
	y=0
	z=0
	steering=0
	powered=0
	power_gearing=0.53	;20% rear drive, no diff, equal drive :eek:
	mass=35
	inertia=1.35
	radius=0.33
        width=0.185		
	rolling_coeff=0.0180
	max_braking=1700
	braking_factor=0.25
	max_handbrake_torque=20800
	tire_rate=230000
	pacejka~pacejka
	{
		optimal_slipratio=0.11
		optimal_slipangle=0.155
	}
}
wheel0~wheel_front
{
	ackerman=1.15
	toe=-0
	camber=-1
	model
	{
		file=lewaa.dof
	}
	model_brake
	{
		file=pinca_esquerda.dof
	}
}

wheel1~wheel_front
{
	ackerman=-1.15
	toe=0
	camber=-1
	model
	{
		file=prawaa.dof
	}
	model_brake
	{
		file=pinca_direita.dof
	}
}

wheel2~wheel_rear
{
	toe=-0.21	
	camber=-2
	model
	{
		file=lewaa.dof
	}
	model_brake
	{
		file=pinca_esquerda.dof
	}
}

wheel3~wheel_rear
{
	toe=0.21	
	camber=-2
	model
	{
		file=prawaa.dof
	}
	model_brake
	{
		file=pinca_direita.dof
	}
}   
ai
{
	grip_factor=1.1
}
;##########################################
;Audio:

audio
{
  skid
  {
    sample=skid.wav
  }
  acc_all
  {
    attack=1000
    decay=1000
  }
  accelerate_out
  {
    volume=4.5
    smp0~audio.acc_all
    {
      sample=idle.wav
      min=0
      max=1250
      attack=1000
      decay=1000
      natural=1300
    }
    smp1~audio.acc_all
    {
      sample=7000.wav
      min=1500
      max=8001
      natural=5500
    }
    smp2~audio.acc_all
    {
      sample=turbo2.wav
      min=2700
      max=3901
      natural=1500
    }
    smp3~audio.acc_all
    {
      sample=turbo3.wav
      min=4000
      max=8501
      natural=2500
    }
  }
  accelerate_in
  {
    volume=4.5
    smp0~audio.acc_all
    {
      sample=idle.wav
      min=0
      max=1250
      attack=1000
      decay=1000
      natural=1300
    }
    smp1~audio.acc_all
    {
      sample=7000.wav
      min=1500
      max=8001
      natural=5500
    }
    smp2~audio.acc_all
    {
      sample=turbo2.wav
      min=2700
      max=3901
      natural=1500
    }
    smp3~audio.acc_all
    {
      sample=turbo3.wav
      min=4000
      max=8501
      natural=2500
    }
  }
  decelerate_in
  {
    volume=4.5
    smp0~audio.acc_all
    {
      sample=idle.wav
      min=0
      max=1250
      attack=1000
      decay=1000
      natural=1300
    }
    smp1~audio.acc_all
    {
      sample=7000.wav
      min=1500
      max=8001
      natural=5500
    }
    smp2~audio.acc_all
    {
      sample=turbo2.wav
      min=2700
      max=3901
      natural=1500
    }
    smp3~audio.acc_all
    {
      sample=turbo3.wav
      min=4000
      max=8501
      natural=2500
    }
  }
   wind
   {
      smp0
      {
         volume=0.7
         sample=wind1.wav
         pitch_scale=2
         pitch_offset=2
         ; Speeds in m/s
         min=.5
         max=9999
         natural=20
      }
      smp1
      {
         volume=.5
         sample=driveshaft.wav
         pitch_scale=.5
         pitch_offset=.7
         ; Speeds in m/s
         min=.5
         max=9999
         natural=22
      }
   }
}
camera0
{
  name=Driver
  fov=70
  model=1
  wheels=0
  view=1
  offset
  {
    x=0.3203
    y=0.4456
    z=-0.30
  }
  offset_to
  {
    x=0.43
    y=-0.5
    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=70
  model=1
  wheels=0
  view=1
  offset
  {
    x=0.3203
    y=0.4456
    z=-0.30
  }
  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=70
  model=1
  wheels=0
  view=1
  offset
  {
    x=0.3203
    y=0.4456
    z=-0.30
  }
  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=-70
  model=0
  wheels=0
  view=0
  offset
  {
    x=0.3203
    y=0.4456
    z=-0.30
  }
  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=67
  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=67
  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=100
  model=1
  wheels=0
  view=1
  offset
  {
    x=-0.22
    y=0.57
    z=-0.31
  }
  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
    }
}