car
{
	name=Skoda Superb TDI psp
	year=2001-2008
	credits=Silnik 1.9 TDI PD 131 KM
        comments=conwert to racer 23.10.2014  by ansebasti
	id=SkodaSuperb
        version=090b
	wheels=4
	skid
	{
		sample=skid.wav
	}
	
	cg
	{
		x=0
		y=0	
		z=0	
	}
	ff_factor=0.25
}
graphics
{
  	shadow
  	{
    		model
    		{
      			file=body.dof
			use_shaders=1
    		}
		intensity=0.6
  }

	generic
	{
		model0
		{
		file=
		}
		model1
		{
		file=
		}
		model2
		{
		file=
		}
		model3
		{
		file=
		}
    		model4
    		{
      		file=
    		}
    		model5
    		{
      		file=
    		}
    		model6
    		{
      		file=
    		}
    		model7
    		{
      		file=
    		}
    		model8
    		{
      		file=
    		}
    		model9
    		{
      		file=
    		}
    		model10
    		{
      		file=
    		}
    		model11
    		{
      		file=
    		}
    		model12
    		{
      		file=
    		}
    		model13
    		{
      		file=
    		}
    		model14
    		{
      		file=
    		}
    		model15
    		{
      		file=
    		}
    model16
    {
      file=
    }
    model17
    {
      file=
    }
    model18
    {
      file=
    }
    model19
    {
      file=
    }
    	
}
}
body
{
  mass=1265
  inertia
  {
    x=2300
    y=2500
    z=700
  }
  width=1.735
  height=1.446
  length=4.376
  manual_box=0
  model
  {
    file=body.dof
  }
  model_incar
  {
    file=body.dof
  }
  model_braking_l
  {
    file=brake.dof
  }
  model_light_l
  {
    file=mijania.dof
  }
  model_lightroad_l
  {
    file=lights.dof
  }
  model_reverse_l
  {
    file=
  }
  model_reverse_r
  {
    file=
  }
}
lights
{
  ; Projected lights
  light0
  {
    texture=light.tga
    ; Field of view (vertical)
    fov=35
    ; Aspect (horizontal)
    aspect=4.5
    ; Distance to car
    z=1.1
    ; 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=2
    ; Pitching with respect to car (in degrees)
    pitch=10
  }
}
steer
{
	x=0.3584
	y=0.3558
	z=0.5822
	xa=20
	lock=960
	linearity=0.78
	model
	{
		file=kierownica.dof
		lod0_z=0
		lod_out=2
	}
}
engine
{
  mass=0
  max_rpm=4735
  idle_rpm=750
  curve_torque=torque.crv
  max_torque=1
  autoclutch_rpm=850
  starter=1
  starter_torque=70
  start_stalled=1
  stall_rpm=500
  start_rpm=800
  torque_reaction=1.0
  shifting
  {
    automatic=0
    shift_up_rpm=3900
    shift_down_rpm=2000
    time_to_declutch=200
    time_in_neutral=100
    time_to_clutch=200
    time_to_declutch_down=200
    time_in_neutral_down=100
    time_to_clutch_down=200
  }
  inertia
  {
    engine=0.29
  }
  braking_coeff=3
}
gearbox
{
gears=6
gear0
  	{
    		ratio=-2.923
    		inertia=0.2
  	}
gear1
  	{
    		ratio=3.56
    		inertia=0.02

  	}
gear2
  	{
    		ratio=1.96
    		inertia=0.04
  	}
gear3
  	{
    		ratio=1.36
    		inertia=0.06

  	}
gear4
  	{
    		ratio=1.06
    		inertia=0.08

  	}
gear5
  	{
    		ratio=0.76
    		inertia=0.10
  	}

  
}
differential
{
	type=1
	ratio=3.389
	inertia=0.1
	locking_coeff=25
	output0=0    ;FWD
	output1=1    ;FWD
}
clutch
{
	max_torque=400
}
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.12
	z=1.4515
	restlen=0.451			;293	395kg
	minlen=0.22
	maxlen=0.46
	k=27000			;@ static load and 1.316 NF SR
	bump_rate=1350		;0.7	1944
	rebound_rate=4600	;0.7	6531
	bump_function=0
	bump_max=1500
	rebound_function=0
	anti_pitch=0.1
	camber_change_per_m=0
	roll_center
	{
		x=0
		y=-0.552	;60mm
		z=0
	}
}

susp_rear
{
	y=0.05
	z=-1.3657
	restlen=0.420			;305	275kg
	minlen=0.2
	maxlen=0.43
	k=22500			;@ static load and 1.502 NF SR
	bump_rate=1300		;0.75	1852
	rebound_rate=4100	;0.8	5191
	bump_function=0
	bump_max=1500
	rebound_function=0
	anti_pitch=0.1
	camber_change_per_m=0
	roll_center
	{
		x=0
		y=-0.504	;120mm
		z=0
	}
}

susp0~susp_front
{
	x=0.749
	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.749
	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.749
}
susp3~susp_rear
{
	x=-0.749
}



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=1200
	a3=2000
	a4=8
	a5=0.015
	a6=-0.25
	a7=0.1
	a8=-0.03
	a9=-0.001
	a10=-0.15
	a111=-8.5
	a112=-0.29
	a12=17.8
	a13=-2.4
	b0=1.5
	b1=-70
	b2=1300
	b3=20
	b4=325
	b5=0.08
	b6=0
	b7=0.05
	b8=-0.025
	b9=0
	b10=0
	b11=0
	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.145
}

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
}



wheel_front
{
	y=0
	z=0
	steering=1
	powered=1
	lock=60
	mass=35
	inertia=1.4
	radius=0.321
        width=0.205	
	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.321
        width=0.205		
	rolling_coeff=0.0180
	max_braking=1700
	braking_factor=0.25
	max_handbrake_torque=9800
	tire_rate=230000
	pacejka~pacejka
	{
		optimal_slipratio=0.11
		optimal_slipangle=0.155
	}
}

wheel0~wheel_front
{
	x=0
	ackerman=1.15
	toe=-0
	camber=0
	model
	{
		file=lf.dof
	}
	model_brake
	{
		file=lewyprzod.dof
	}
}

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

wheel2~wheel_rear
{
	x=0
	toe=-0.21	;toe in, goes to out under bump like M3 Z axle
	camber=0
	model
	{
		file=lf.dof
	}
	model_brake
	{
		file=lewyprzod.dof
	}
}

wheel3~wheel_rear
{
	x=0
	toe=0.21	;toe in, goes to out under bump like M3 Z axle
	camber=0
	model
	{
		file=rf.dof
	}
	model_brake
	{
		file=prawyprzod.dof
	}
}

abs
{
  enable=1
  max_velocity_ratio=1.09 
  min_velocity_ratio=1.08
  min_velocity=1
}
traction_control
{
  	enable=1
  	min_velocity=3
  	max_velocity_ratio=1.050
  	min_velocity_ratio=1.300
}    
ai
 {
  understeer_correct=10
  oversteer_correct=10
  grip_factor=1.3
}
audio
{
  skid
  {
    sample=skid.wav
  }
  acc_all
  {
    attack=1000
    decay=1000
  }
  acc_turbo
  {
   attack=2000
   decay=2000
  }
  accelerate_out
  {
    volume=2.0
    smp0~audio.acc_all
    {
      sample=idle.wav
      min=0
      max=800
      attack=1000
      decay=1000
      natural=1500
    }
    smp1~audio.acc_all
    {
      sample=low.wav
      min=1000
      max=2000
      attack=1000
      decay=1000
      natural=10000
    }
    smp2~audio.acc_all
    {
      sample=mid.wav
      min=2000
      max=3000
      attack=1000
      decay=1000
      natural=20000
    }
    smp3~audio.acc_all
    {
      sample=hi.wav
      min=3000
      max=5000
      attack=1000
      decay=1000
      natural=30000
    }
    smp4~audio.acc_turbo
    {
    sample=turbo.wav
    min=2000
    max=7000
    natural=6000
    attack=1500
    decay=1500
    }
  }
}
gearwhine
{
  volume=0.5
  pitch_scale=0.001
  pitch_offset=0
  smp0~audio.acc_all
  {
    sample=gearwhine.wav
    min=0
    max=10000
    natural=7000
  }
}
wind
{
  volume=3
  volume_scale=0.1
  volume_offset=0
  pitch_scale=0
  pitch_offset=0
  smp0
  {
    sample=wind_ext.wav
    ; Speeds in m/s
    min=0
    max=9999
    natural=4000
  }
}
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

}
camera0
{
  name=Chase
  fov=80
  model=0
  wheels=0
  view=1
  offset
  {
    x=0.3584
    y=0.6
    z=0.08
  }
  offset_to
  {
    x=0.3684
    y=-0.6
    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=80
  model=1
  wheels=0
  view=0
  offset
  {
    x=0.40
    y=0.57
    z=0.08
  }
  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=80
  model=1
  wheels=0
  view=1
  offset
  {
    x=0.40
    y=0.57
    z=0.08
  }
  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=-80
  model=0
  wheels=0
  view=0
  offset
  {
    x=0.0
    y=0.57
    z=0.08
  }
  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=20
    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
    }
}