car
{
	name=VW Golf III VR6
	year=1997
        credits=Converted by Filip Z M3
        comments=Golf III
	id=vwgolfmkIIIVR6
        version=090
	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_VR6.dof
			use_shaders=1
    		}
		intensity=0.6
  	}
  generic
  {
   model0
   {
     file=capot.dof
   }
   model1
   {
     file=choques_frente.dof
   }
   model2
   {
     file=choques_tras.dof
   }
   model3
   {
     file=escape.dof
   }
   model4
   {
     file=mala.dof
   }
   model5
   {
     file=motor.dof
   }
   model6
   {
     file=porta_condutor.dof
   }
   model7
   {
     file=porta_passageiro.dof
   }
   model8
   {
     file=bancos.dof
   }
   model9
   {
     file=
   }
  }
}
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_VR6.dof
  }
  model_incar
  {
    file=buda_VR6.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
  }
}
steer
{
	x=0.3222
	y=0.175
	z=0.395
	xa=20
	lock=960
	linearity=0.78
	model
	{
		file=kiera.dof
		lod0_z=0
		lod_out=2
	}
}
engine
{
	x=0
	y=0
	z=0
	size=0
	mass=220
	idle_method=1
	idle_throttle=0.05
	idle_rpm=950
	min_warn_rpm=6800
	max_warn_rpm=6900
	max_rpm=6900
	start_rpm=1500
	stall_rpm=350
	autoclutch=1
	autoclutch_rpm=
	starter=1
	starter_torque=100
	start_stalled=1   ;1
	enable_stall=1
	curve_torque=torque.crv
	max_torque=0.95
	torque_reaction=1.30
	braking_coeff=
	braking_offset=
	braking_torque_curve=C_a.crv
	friction=0
	cylinders=6
	cylinder_angle=24
	rumble_amplitude=
	rumble_maxrpm=
	inertia
	{
		engine=0.32
	}
	jitter
	{
		amplitude=0.1
		frequency_min=1
		frequency_var=0.1
		time_min=150
		time_var=10
	}
	shifting
	{
		automatic=0
		blip_throttle=0.5
		cut_throttle=1
		fast=1
		shift_up_rpm=6300
		shift_down_rpm=2500
		time_to_declutch=65
		time_in_neutral=15
		time_to_clutch=85
		time_to_declutch_down=95
		time_in_neutral_down=95
		time_to_clutch_down=95
	}
}

fuel
{
	bsfc=6.5e-5
	max=90
	type=0
}

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

gearbox 
{
	gears=7

	gear0
	{
		ratio=-4.107
		inertia=0.02
		linearity=0.5
	}

	gear1
	{
		ratio=3.36
		inertia=0.03
		linearity=1
	}

	gear2
	{
		ratio=2.09
		inertia=0.04
		linearity=1.2
	}

	gear3
	{
		ratio=1.47
		inertia=0.05
		linearity=1.4
	}

	gear4
	{
		ratio=1.10
		inertia=0.06
		linearity=1.6
	}

	gear5
	{
		ratio=0.86
		inertia=0.08
		linearity=1.8
	}

	gear6
	{
		ratio=0.68
		inertia=0.1
		linearity=2
	}
}

differential
{
	type=1
	ratio=4.24
	inertia=0.16
	locking_coeff=100 ;25
	output2=2
	output3=3
}

abs
{
  enable=3
  max_velocity_ratio=1.09 
  min_velocity_ratio=1.08
  min_velocity=1
}
traction_control
{
  	enable=4
  	min_velocity=1.667
  	max_velocity_ratio=1.050
  	min_velocity_ratio=1.300

}

clutch
{
	max_torque=425 
}
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.185
	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=lewa.dof
	}
	model_brake
	{
		file=pinca_esquerda.dof
	}
}

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

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

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

audio
{
  skid
  {
    ; New style (multiple samples mixed)
    ; Master volume for this set
    volume=1
    ; Acceleration
	; Outside of the car
    smp0
    {
      volume=0.6
      sample=audio/skid_01.wav
      min=0.3
      max=0.3
      attack=0.2
      decay=0.4
    }
    smp1
    {
      volume=0.6
      sample=audio/skid_02.wav
      min=0.6
      max=20
      attack=0.4
      decay=0
    }
  }
  acc_all
  {
    attack=750
    decay=750
	;pitch_scale=3
	; pitch = pitch_scale * pitch_input + pitch_offset
	;pitch_offset=50
  }
  accelerate_out
  {
    smp0~audio.acc_all
    {
      sample=audio/1442.wav
      min=400
      max=1889
      natural=1442
      volume=0.95
    }
    smp1~audio.acc_all
    {
      sample=audio/1889.wav
      min=1889
      max=2442
      natural=1889
	  ;attack=2000
	  ;decay=2000
      volume=0.95
    }
    smp2~audio.acc_all
    {
      sample=audio/2442.wav
      min=2442
      max=3345
      natural=2442
	  ;attack=2000
	  ;decay=2000
      volume=0.95
    }
    smp3~audio.acc_all
    {
      sample=audio/3345.wav
      min=3345
      max=4408
      natural=3345
	  ;attack=2000
	  ;decay=2000
      volume=0.95
    }
    smp4~audio.acc_all
    {
      sample=audio/4408.wav
      min=4408
      max=5412
      natural=4408
	  ;attack=2000
	  ;decay=2000
      volume=0.95
    }
    smp5~audio.acc_all
    {
      sample=audio/5412.wav
      min=5412
      max=6445
      natural=5412
	  ;attack=2000
	  ;decay=2000
      volume=1.95
    }
    smp6~audio.acc_all
    {
      sample=audio/6445.wav
      min=6445
      max=6845
      natural=6845
	  ;attack=2000
	  ;decay=2000
      volume=0.95
    }
    smp7~audio.acc_all
    {
      sample=audio/6845.wav
      min=6845
      max=9500
      natural=6845
	  ;attack=2000
	  ;decay=2000
      volume=0.95
    }
  }
  wind
  {
    volume=2.20
    pitch_scale=1
    pitch_offset=50
    smp0
    {
      sample=audio/wind1.wav
      min=25
      max=26
      attack=33
      decay=33
      natural=80
    }
    smp1
    {
      sample=audio/wind2.wav
      min=50
      max=51
      attack=33
      decay=33
      natural=80
    }
    smp2
    {
      sample=audio/wind3.wav
      min=75
      max=76
      attack=33
      decay=33
      natural=80
    }
  }
  horn
  {
	sample=audio/horn.wav
  }
      smp3~audio.acc_all
      {
         sample=audio/turbo.wav
         min=0
         max=8000
         natural=7000
         volume=0.5
      }
      smp4~audio.acc_all
      {
         sample=audio/pressure.wav
         min=4500
         max=9000
         natural=10000
         volume=0.25
    }
  }
}
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
    }
}