car
{
   name=Volkswagen Corrado
  year=1993
  credits=
  comments=
   wheels=4
  id=r32
  version=090b
  skid
  {
    sample=skid.wav
  }
 cg
 {
  x=0
  y=-0.15
  z=0.0
 }
  ff_factor=1.0
  ff_friction=0.9
  ff_stickfriction=0.45
  ff_damping=1.0
  ff_inertia=1.0
  ff_gain=1.0
}

graphics
{
  shadow
  {
    model
    {
      ;file=shadown.dof
      use_shaders=1
    }
    intensity=0.3
  }
  generic
  {
    model0
    {
      file=interior.dof
    }
    model1
    {
      file=body.dof
    }
    model2
    {
      file=maskaMP.dof
    }
    model3
    {
      file=silnik.dof
    }
    model4
    {
      file=silnik2.dof
    }
    model5
    {
      file=silnik1.dof
   }
  }
}
particles
{
  backfire
  {
    exhaust0
    {
      pos=0.45 -0.44 -2.1410
      normal=0.000 0.400 -1.000
    }
    type=backfire
    min_rpm=5500
    max_rpm=6800
    likeliness_percentage=15
  }
}
body
{
  mass=1220
  inertia
  {
    x=2300
    y=2400
    z=475
  }
  model
  {
    file=corrado.dof
  }
  model_incar
  {
    file=corrado.dof
  }
  model_light_l
  {
  file=lights.dof
  }
	model_braking_l
	{
		file=brakes.dof
	}
 model_lightroad_l
 {
  file=lightsin.dof
 }
  model_reverse_l
  {
    ; Reverse gear indicators
    file=re.dof
  }
  model_reverse_r
  {
    file=re.dof
}
  width=2.145
  height=0.75
  length=4.796
  manual_box=1
}
steer
{
  x=0.3615
  y=0.1920
  z=0.46
  radius=15
  xa=22
   lock=900
  linearity=1.5
  model
  {
      file=kierownica.dof
  }
}
lights
{
  light0
  {
    texture=light.tga
    fov=55.0
    aspect=5.0
    z=1
    far=120
    pitch=0
    color=2.25 2.25 3
  }
}
animation
{
  flash_lights=0
}
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=1
  max_velocity_ratio=1.09 
  min_velocity_ratio=1.08
  min_velocity=1
}
traction_control
{
  	enable=0
  	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.30
    area=2.29		
  }
  wings=1
  wing0
  {
    name=Overall aerodynamic effect R
    span=1
    cord=0.1
    coeff_drag=0
    coeff_down=8.5
    center=0 0.03 -1.38
    angle=0
    angle_offset=1
  }
}
antirollbar
{
  count=2
  arb0
  {
    susp_left=1
    susp_right=0
    k=21000 ;36600
  }
  arb1
  {
    susp_left=3
    susp_right=2
    k=16000  ;21800
  }
}
susp_front                    
{
  y=-0.090
  z=1.3999
  restlen=0.332		;245mm,288.2kg/2826N, 12.5cm ground clearance
  minlen=0.17
  maxlen=0.34
  k=41000 	;k=m(nf/0.159)sq NF ~ 1.7 ~ 36936N/m
  bump_rate=1300	;1283*1.0
  rebound_rate=4950	;6163*0.8
  bump_function=0
  bump_max=1300
  rebound_function=0
  anti_pitch=0.09
  camber_change_per_m=0
  roll_center
  {
    x=0
    y=-0.78	;-1.5cm
    z=0
  }
}
susp_rear
{
  y=-0.1
  z=-1.443
  restlen=0.331		;255mm, 366.8kg/3597N
  minlen=0.125
  maxlen=0.34
  k=50000 	;k=m(nf/0.159)sq NF ~ 1.8 ~ 58036N/m
  bump_rate=1800	;1814*1.0
  rebound_rate=6650	;8305*0.8
  bump_function=0
  bump_max=1800
  rebound_function=0
  anti_pitch=0.14
  camber_change_per_m=0.45	;2.3 degree per 0.1m deflection!
  roll_center
  {
    x=0
    y=-0.731		;6.5cm
    z=0
  }
}
susp0~susp_front
  {
    x=0.785
    toe_change_per_m=0.029		;-0.23 static toe. 0.13 degrees change with 0.078m travel. Bump out to ~0.1 toe.!
    camber_change_steering=0.1062	;using caster angle 5.78 degrees @ max_lock, outside wheel camber wrt y axis = 3.54 degrees!
    caster_offset=0		;5.78 degrees static caster -0.017!
    
  }
susp1~susp_front
  {
    x=-0.785
    toe_change_per_m=-0.029		;-0.23 static toe. 0.13 degrees change with 0.078m travel. Bump out to ~0.1 toe.!
    camber_change_steering=-0.1062	;using caster angle 5.78 degrees @ max_lock, outside wheel camber wrt y axis = 3.54 degrees!
    caster_offset=0		;5.78 degrees static caster -0.017!
  }
susp2~susp_rear
  {
    x=0.855
    toe_change_per_m=0.019		;-0.27 static toe. 0.1 degrees change with 0.09m travel. Bump out to ~0.2 toe.!
  }
susp3~susp_rear
  {
    x=-0.855
    toe_change_per_m=-0.019		;-0.27 static toe. 0.1 degrees change with 0.09m travel. Bump out to ~0.2 toe.!
  }
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.25
    	a1=-35
    	a2=1350
    	a3=2100
    	a4=8
    	a5=0.015
    	a6=-0.25
    	a7=0.1
    	a8=-0.03
    	a9=-0.001
    	a10=-0.15
    	a111=-4.3
    	a112=-0.29
    	a12=17.8
    	a13=-2.4

    	b0=1.5
    	b1=-70
    	b2=1500 ;1550
    	b3=21
    	b4=325
    	b5=0.08
    	b6=0
    	b7=0.05
    	b8=-0.025
    	b9=0.015
    	b10=0.4
    	b11=-50
    	b12=0

    	c0=2.2
    	c1=-4
    	c2=-3
    	c3=-1
    	c4=-7
    	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.157
}
wheel_front
{
  y=0
  z=0
  steering=1
  powered=1
  power_gearing=0.75
  lock=51
  mass=30
  inertia=1.5
  radius=0.325
  width=0.205
  rolling_coeff=0.0180
  friction_road=1
  max_braking=1800
  braking_factor=1
  tire_rate=265000
  pacejka~pacejka
  {
  }
}
wheel_rear
{
  y=0
  z=0
  steering=0
  powered=0
  mass=30
  inertia=1.5
  radius=0.325
  width=0.205
  rolling_coeff=0.0205
  friction_road=1
  max_braking=500
  max_handbrake_torque=1900
  braking_factor=1
  tire_rate=268000
  pacejka~pacejka
  {

  }
}
wheel0~wheel_front
{
  x=0
  ackerman=1.1
  toe=-0.36
  camber=-0.2
  model
  {
    file=lf.dof
  }
  model_brake
  {
    file=caliper_lf_front.dof
  }
}
wheel1~wheel_front
{
  x=0
  ackerman=1.1
  toe=0.36
  camber=-0.2
  model
  {
    file=rf.dof
  }
  model_brake
  {
    file=caliper_rf_front.dof
  }
}
wheel2~wheel_rear
{
  x=0
  toe=-0.37
  camber=-.1
  model
  {
    file=lf.dof
    offset
    {
    x=-0.014
    }
  }
  model_brake
  {
    file=caliper_lf_front.dof
  }
}
wheel3~wheel_rear
{
  x=0
  toe=0.37
  camber=-.1
  model
  {
    file=rf.dof
    offset
    {
    x=0.014
    }
  }
  model_brake
  {
    file=caliper_rf_front.dof
  }
}
camera0
{
  name=Driver
  fov=70
  model=1
  wheels=0
  view=1
  offset
  {
    x=0.35
    y=0.39
    z=-0.11
  }
  offset_to
  {
    x=0.39
    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=1
  wheels=0
  view=1
  offset
  {
    x=0.37
    y=0.40
    z=-0.03
  }
  offset_to
  {
    x=10.43
    y=0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.3
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera2
{
  name=Driver, right
  fov=60
  model=1
  wheels=0
  view=1
  offset
  {
    x=0.37
    y=0.40
    z=-0.03
  }
  offset_to
  {
    x=-9.57
    y=0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.3
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera3
{
  name=Driver, rear
  fov=-65
  model=1
  wheels=0
  view=0
  offset
  {
    x=0.1
    y=0.40
    z=-0.03
  }
  offset_to
  {
    x=-1
    y=0.5
    z=-10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.3
  }
  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
  	{
    		sample=sound\skid.wav
  	}
  	acc_all
  	{
    		attack=600
    		decay=600
  	}
  	accelerate_out
  	{
    		smp0~audio.acc_all
    		{
      			volume=0.6
			sample=sound\1000.wav
      			min=0
      			max=1200
      			natural=700
    		}
    		smp1~audio.acc_all
    		{
      			volume=1
			sample=sound\1900.wav
      			min=0
      			max=2500
      			natural=1900
    		}
		smp2~audio.acc_all
    		{
      			volume=1
     			sample=sound\3000.wav
      			min=2500
      			max=3500
      			natural=3000
    		}
		smp3~audio.acc_all
    		{
      			volume=1
     			sample=sound\4000.wav
      			min=3500
      			max=4500
      			natural=4000
    		}
		smp4~audio.acc_all
    		{
			volume=1.1
     			sample=sound\5000.wav
      			min=4500
      			max=5500
      			natural=5000
    		}
		smp5~audio.acc_all
    		{

			volume=1.15
     			sample=sound\6100.wav
      			min=5500
      			max=6500
      			natural=6100
    		}
		smp6~audio.acc_all
    		{

			volume=1.2
     			sample=sound\6900.wav
      			min=6500
      			max=7000
      			natural=6900
    		}
		smp7~audio.acc_all
    		{

			volume=1.2
     			sample=sound\7900.wav
      			min=7000
      			max=12000
      			natural=7900
    		}
    		smp8~audio.acc_all
    		{
      			volume=1
			sample=sound\en1900.wav
      			min=1000
      			max=2500
      			natural=1900
    		}
		smp9~audio.acc_all
    		{
      			volume=1
     			sample=sound\en3000.wav
      			min=2500
      			max=3500
      			natural=3000
    		}
		smp10~audio.acc_all
    		{
      			volume=1
     			sample=sound\en4000.wav
      			min=3500
      			max=4500
      			natural=4000
    		}
		smp11~audio.acc_all
    		{
			volume=1.1
     			sample=sound\en5000.wav
      			min=4500
      			max=5500
      			natural=5000
    		}
		smp12~audio.acc_all
    		{

			volume=1.15
     			sample=sound\en6100.wav
      			min=5500
      			max=6500
      			natural=6100
    		}
		smp13~audio.acc_all
    		{

			volume=1.2
     			sample=sound\en6900.wav
      			min=6500
      			max=7000
      			natural=6900
    		}
		smp14~audio.acc_all
    		{

			volume=1.2
     			sample=sound\en7900.wav
      			min=7000
      			max=12000
      			natural=7900
    		}
  	}
  	decelerate_out
  	{
    		smp0~audio.acc_all
    		{
      			volume=0.8
			sample=sound\1000.wav
      			min=0
      			max=1200
      			natural=700
    		}
    		smp1~audio.acc_all
    		{
      			volume=1
			sample=sound\1900.wav
      			min=750
      			max=2500
      			natural=1900
    		}
		smp2~audio.acc_all
    		{
      			volume=1
     			sample=sound\3000.wav
      			min=2500
      			max=3500
      			natural=3000
    		}
		smp3~audio.acc_all
    		{
      			volume=1
     			sample=sound\4000.wav
      			min=3500
      			max=4500
      			natural=4000
    		}
		smp4~audio.acc_all
    		{
			volume=1.1
     			sample=sound\5000.wav
      			min=4500
      			max=5500
      			natural=5000
    		}
		smp5~audio.acc_all
    		{

			volume=1.15
     			sample=sound\6100.wav
      			min=5500
      			max=6500
      			natural=6100
    		}
		smp6~audio.acc_all
    		{

			volume=1.2
     			sample=sound\6900.wav
      			min=6500
      			max=7000
      			natural=6900
    		}
		smp7~audio.acc_all
    		{

			volume=1.2
     			sample=sound\7900.wav
      			min=7000
      			max=12000
      			natural=7900
    		}
    		smp8~audio.acc_all
    		{
      			volume=1
			sample=sound\en1900.wav
      			min=1000
      			max=2500
      			natural=1900
    		}
		smp9~audio.acc_all
    		{
      			volume=1
     			sample=sound\en3000.wav
      			min=2500
      			max=3500
      			natural=3000
    		}
		smp10~audio.acc_all
    		{
      			volume=1
     			sample=sound\en4000.wav
      			min=3500
      			max=4500
      			natural=4000
    		}
		smp11~audio.acc_all
    		{

			volume=4.5
     			sample=sound\6900ev.wav
      			min=1500
      			max=7000
      			natural=2500
    		}
		smp12~audio.acc_all
    		{
			volume=1.1
     			sample=sound\en5000.wav
      			min=4500
      			max=5500
      			natural=5000
    		}
		smp13~audio.acc_all
    		{

			volume=1.15
     			sample=sound\en6100.wav
      			min=5500
      			max=6500
      			natural=6100
    		}
		smp14~audio.acc_all
    		{

			volume=1.2
     			sample=sound\en6900.wav
      			min=6500
      			max=7000
      			natural=6900
    		}
		smp15~audio.acc_all
    		{

			volume=1.2
     			sample=sound\en7900.wav
      			min=7000
      			max=12000
      			natural=7900
    		}
  	}
  	accelerate_in
  	{
    		smp0~audio.acc_all
    		{
      			volume=0.6
			sample=sound\in1000.wav
      			min=0
      			max=2500
      			natural=1900
    		}
		smp1~audio.acc_all
    		{
      			volume=1
     			sample=sound\in3000.wav
      			min=2500
      			max=3500
      			natural=3000
    		}
		smp2~audio.acc_all
    		{
      			volume=1
     			sample=sound\in4000.wav
      			min=3500
      			max=4500
      			natural=4000
    		}
		smp3~audio.acc_all
    		{
			volume=1.1
     			sample=sound\in5000.wav
      			min=4500
      			max=5500
      			natural=5000
    		}
		smp4~audio.acc_all
    		{

			volume=1.15
     			sample=sound\in6100.wav
      			min=5500
      			max=6500
      			natural=6100
    		}
		smp5~audio.acc_all
    		{

			volume=1.2
     			sample=sound\in6900.wav
      			min=6500
      			max=7000
      			natural=6900
    		}
		smp6~audio.acc_all
    		{

			volume=1.2
     			sample=sound\in7900.wav
      			min=7000
      			max=12000
      			natural=7900
    		}
  	}
  	decelerate_in
  	{
   		volume=0.6
		smp0~audio.acc_all
    		{
      			sample=sound\1000.wav
      			min=0
      			max=2500
      			natural=1900
    		}
		smp1~audio.acc_all
    		{
     			sample=sound\in3000.wav
      			min=2500
      			max=3500
      			natural=3000
    		}
		smp2~audio.acc_all
    		{
     			sample=sound\in4000.wav
      			min=3500
      			max=4500
      			natural=4000
    		}
		smp3~audio.acc_all
    		{
     			sample=sound\in5000.wav
      			min=4500
      			max=5500
      			natural=5000
    		}
		smp4~audio.acc_all
    		{
     			sample=sound\in6100.wav
      			min=5500
      			max=6500
      			natural=6100
    		}
		smp5~audio.acc_all
    		{
     			sample=sound\in6900.wav
      			min=6500
      			max=12000
      			natural=6900
    		}
		smp6~audio.acc_all
    		{

			volume=1.2
     			sample=sound\in7900.wav
      			min=7000
      			max=12000
      			natural=7900
    		}
}