car
{
  name=VW Scirocco
  year=1976
  credits=Oryginal model FM4/Mods GTA SA BMWFans/Mods Racer FaNtOM
  comments=
  id=vwsci
  version=090b
  wheels=4        
ff_factor=0.5
  skid
  {
    sample=skid.wav
  }
  shadow
  {
    texture=shadow.tga
    width=2.59
    length=5.5
    offset_z=-0.03
  }
  cg
  {
    x=0
    y=-0.31
    z=0.135
  }
}
lights
{
  ; Projected lights
  light0
  {
    texture=lampy.tga
    ; Field of view (vertical)
    fov=35
    ; Aspect (horizontal)
    aspect=5
    ; Distance to car
    z=0.2
    ; Pitching with respect to car (in degrees)
    pitch=0
    ; Fall-off distance
    far=100
  }
  light1
  {
    texture=lampy.tga
    ; Field of view (vertical)
    fov=25.0
    ; Aspect (horizontal)
    aspect=1.3
    ; Distance to car
    z=2
    ; Pitching with respect to car (in degrees)
    pitch=10
  }
}
body
{
  mass=1685
  restitution_coeff=0.25
  inertia
  {
    x=3060
    y=3250
    z=555
  }
  x=0
  y=0
  z=0
  width=1.826
  height=1.406
  length=4.717
  manual_box=1
  cockpit_start=1
  cockpit_length=1
  model
  {
    file=body.dof
  }
  model_incar
  {
    file=body.dof
  }
 model_light_l
  {
    file=light.dof
  }
  model_reverse_r
  {
    file=camera.dof
  }

  model_braking_l
  {
    file=brake.dof
   
  }
}
}
graphics
{
  shadow
  {
    model
    {
      file=body.dof
      use_shaders=1
    }
    intensity=0.3
  }
  generic
  {
    model2
    {
      file=signal_left.dof
    }
    model3
    {
      file=signal_right.dof
    }
    model4
    {
      file=bonnet.dof
    }
    model5
    {
      file=boot.dof
    }
    model6
    {
      file=door_fl.dof
    }
    model7
    {
      file=door_fr.dof
    }
    model8
    {
      file=door_rl.dof
    }
    model9
    {
      file=door_rr.dof
    }
	model10
    {
      file=leftk.dof
    }
	model11
    {
      file=rightk.dof
    }
	model12
    {
      file=leftkp.dof
    }
	model13
    {
      file=rightkp.dof
    }
	model14
    {
      file=insidek.dof
    }
	model15
    {
      file=insidekp.dof
    }
	model18
    {
      file=beam.dof
    }
	model19
    {
      file=beaml.dof
    }
  }
}
steer
{
  x=0.36
  y=0.310
  z=0.405
  radius=10
  xa=10
  lock=900
  model
  {
      file=kierownica.dof
  }
}
engine
{
	x=0
	y=0
	z=0
	size=0
	mass=0

	idle_rpm=850
	max_rpm=7000
	stall_rpm=500
	start_rpm=1500
	start_stalled=1
	starter_torque=100
	autoclutch_rpm=1500

	curve_torque=torque.crv
	max_torque=0.67		;hmmmmm, lowering torque here seems to mess with the actual engine output wrt
				;the braking coeff and engine inertia, but it needs to be altered to affect the
				;4wd system while still incorporating the current single diff setup. This means
				;revving up seems really slow as the engine torque is not enough for the inertia
				;for that engine. However, drivetrain lag and braking coeff need to be high so
				;when we lift off the gas it reacts accurately with high resistance.
				;Basically, a bad fudge that messes up other things as we see here :(
				;Need real 4wd, or at least not such a fudgey fudge!
	shifting
	{
		automatic=0
		shift_up_rpm=6500
		shift_down_rpm=3000
		time_to_declutch=50
		time_to_clutch=50
		time_in_neutral=200
		time_to_declutch_down=150
		time_to_clutch_down=50
		time_in_neutral_down=200
	}
	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=-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
	}

}

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

clutch
{
	max_torque=410
}

handbrakes
{
	wheels=23
}

traction_control
{
	max_velocity_ratio=1.2
	min_velocity_ratio=1
	enable=0
}
abs
{
	max_velocity_ratio=1.2
	min_velocity_ratio=1.17
	enable=1
}
aero
{
  body
  {
    center=0 0 0
    cx=0.30	
    area=2.26
  }
  wings=1
  wing0
  {
    name=overall body lift
; 13kg front, 19kg rear at 200kmh
    span=1
    cord=1
    coeff_drag=0
    coeff_down=-9
    center=0 0 0.135
    angle=0
    angle_offset=1
  }
}
antirollbar
{
  count=2
  arb0
  {
    susp_left=0
    susp_right=1
    k=40000
  }
  arb1
  {
    susp_left=2
    susp_right=3
    k=20000	;Adjust for under/over steer attitude... 25000 generates lots more oversteer, 18000 understeer
  }
}
susp_front
{
	y=0.10
	z=1.33
	restlen=0.451			;293	395kg
	minlen=0.22
	maxlen=0.46
	k=33448			;@ static load and 1.316 NF SR
	bump_rate=3000		;0.7	1944
	rebound_rate=5243	;0.7	6531
	bump_function=0
	rebound_function=0
	anti_pitch=0.2
	camber_change_per_m=0.067
	roll_center
	{
		x=0
		y=-0.5
		z=0
	}
}

susp_rear
{
	y=0.09
	z=-1.426
	restlen=0.420			;305	275kg
	minlen=0.2
	maxlen=0.43
	k=35491			;@ static load and 1.502 NF SR
	bump_rate=3200		;0.75	1852
	rebound_rate=6500	;0.8	5191
	bump_function=0
	rebound_function=0
	anti_pitch=0.1
	camber_change_per_m=0.14
	roll_center
	{
		x=0
		y=-0.5
		z=0
	}
}

susp0~susp_front
{
	x=0.78
	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.78
	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.79
}
susp3~susp_rear
{
	x=-0.79
}

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=1380
a3=1650
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=1510
  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=1450
a3=1700
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 
}

wheel_front
{
  y=0
  z=0
  steering=1
  lock=71.2
  powered=1
  mass=30
  inertia=1.9
  radius=0.305	;225/40 R19
  rolling_coeff=0.0150
  friction_road=1
  max_braking=2000
  braking_factor=1
  tire_rate=180000
  pacejka~pacejka
  {
  }
}
wheel_rear
{
  y=0
  z=0
  steering=0
  mass=30
  inertia=1.9
  radius=0.305	;255/35 R19
  rolling_coeff=0.015
  friction_road=1
  max_braking=750
  max_handbrake_torque=1100
  braking_factor=1
  tire_rate=180000
  pacejka~pacejka_rear
  {
  }
}
wheel0~wheel_front
{
  x=0
  ackerman=1.2247
  toe=-0.36
  camber=-0.33	;-0.72
  model
  {
    file=rf.dof
  }
  model_brake
  {
    file=
    offset
    {
      z=-0.16
    }
  }
}
wheel1~wheel_front
{
  x=0
  ackerman=1.2247
  toe=-0.36
  camber=-0.33	;-0.72
  model
  {
    file=lf.dof
  }
  model_brake
  {
    file=
    offset
    {
      z=-0.16
    }
  }
}
wheel2~wheel_rear
{
  x=0
  toe=-0.37
  camber=-1.25	;-1.82
  model
  {
    file=rf.dof
  }
  model_brake
  {
    file=
    offset
    {
      z=-0.16
    }
  }
}
wheel3~wheel_rear
{
  x=0
  toe=-0.37
  camber=-1.25	;-1.82
  model
  {
    file=lf.dof
  }
  model_brake
  {
    file=
    offset
    {
      z=-0.16
    }
  }
}

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

audio
{
	skid
	{
		sample=skid.wav
	}
	acc_all
	{
		attack=2600
		decay=2600
	}

;	------------------ OUT

	accelerate_out
	{
		smp0~audio.acc_all
		{
			sample=a1000.wav
			min=1
			max=1001
			natural=1000
			volume=1
			attack=1300
			decay=1300
		}
		smp1~audio.acc_all
		{
			sample=a2000.wav
			min=2000
			max=2001
			natural=2000
			volume=1
			attack=1300
		}
		smp2~audio.acc_all
		{
			sample=a4000.wav
			min=4000
			max=4001
			natural=4000
			volume=1
		}
		smp3~audio.acc_all
		{
			sample=a6000.wav
			min=6000
			max=9000
			natural=6000
			volume=1
		}
	}

	decelerate_out
	{
		smp0~audio.acc_all
		{
			sample=d850.wav
			min=1
			max=1001
			natural=850
			volume=1.25
			attack=1300
			decay=1300
		}
		smp1~audio.acc_all
		{
			sample=d2000.wav
			min=2000
			max=2001
			natural=2000
			volume=1
			attack=1300
		}
		smp2~audio.acc_all
		{
			sample=d4000.wav
			min=4000
			max=4001
			natural=4000
			volume=1
		}
		smp3~audio.acc_all
		{
			sample=d6000.wav
			min=6000
			max=9000
			natural=6000
			volume=1
		}
	}

;	------------------ IN

	accelerate_in
	{
		smp0~audio.acc_all
		{
			sample=a1000i.wav
			min=1
			max=1001
			natural=1000
			volume=1
			attack=1300
			decay=1300
		}
		smp1~audio.acc_all
		{
			sample=a2000i.wav
			min=2000
			max=2001
			natural=2000
			volume=1
			attack=1300
		}
		smp2~audio.acc_all
		{
			sample=a4000i.wav
			min=4000
			max=4001
			natural=4000
			volume=1
		}
		smp3~audio.acc_all
		{
			sample=a6000i.wav
			min=6000
			max=9000
			natural=6000
			volume=1
		}
	}


	decelerate_in
	{
		smp0~audio.acc_all
		{
			sample=d850i.wav
			min=1
			max=1001
			natural=850
			volume=1.25
			attack=1300
			decay=1300
		}
		smp1~audio.acc_all
		{
			sample=d2000i.wav
			min=2000
			max=2001
			natural=2000
			volume=1
			attack=1300
		}
		smp2~audio.acc_all
		{
			sample=d4000i.wav
			min=4000
			max=4001
			natural=4000
			volume=1
		}
		smp3~audio.acc_all
		{
			sample=d6000i.wav
			min=6000
			max=9000
			natural=6000
			volume=1
		}
	}

	wind
	{
		volume=1
		pitch_scale=0
		pitch_offset=50
		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
		}
	}
}

camera0
{
  name=Driver
  fov=70
  model=0
  wheels=0
  view=1
  offset
  {
    x=0.37
    y=0.63
    z=-0.10
  }
  offset_to
  {
    x=0.5
    y=-0.5
    z=10
  }
  src
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
  dst
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
}
camera1
{
  name=Driver, left
  fov=60
  model=0
  wheels=0
  view=1
  offset
  {
    x=0.37
    y=0.63
    z=-0.03
  }
  offset_to
  {
    x=10.43
    y=0.5
    z=10
  }
  src
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
  dst
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
}
camera2
{
  name=Driver, right
  fov=60
  model=0
  wheels=0
  view=1
  offset
  {
    x=0.37
    y=0.63
    z=-0.03
  }
  offset_to
  {
    x=-9.57
    y=0.5
    z=10
  }
  src
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
  dst
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
}
camera3
{
  name=Driver, rear
  fov=-65
  model=0
  wheels=0
  view=0
  offset
  {
    x=0.1
    y=0.63
    z=-0.03
  }
  offset_to
  {
    x=-1
    y=0.5
    z=-10
  }
  src
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
  dst
  {
    mass=0
    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
	}
}