car
{
	name=Saab 93 Turbo X 2008
	year=
	credits=Converted by Fiecu
        comments=
	id=93turbox
	version=090b
	wheels=4
	skid
	{
		sample=skid.wav
	}
	cg
	{
		x=0
		y=-0.13
		z=0.33
	}
	ff_factor=0.25
}
graphics 
{
  shadow 
  {
    texture=shadow.tga
    model
    {
      file=body.dof
    }
  }

	generic
	{
		model0
		{
		file=boot.dof
		}
		model1
		{
		file=body.dof
		}
		model2
		{
		file=inter.dof
		}
		model3
		{
		file=karoseria.dof
		}
		model4
		{
		file=ileft.dof
		}
		model5
		{
		file=iright.dof
		}
	}
}
body
{
	x=0
	y=0
	z=0
	mass=1300	;1480kg kerb weight, -140kg unsprung +80kg driver 20kg fuel
	inertia
	{
		x=1850
		y=2100
		z=520
	}
	restitution_coeff=0.1
	width=1.64
	height=1.20
	length=3.71
	manual_box=1
	model
	{
		file=body.dof
	}
	model_incar
	{
		file=inter.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
}
}

lights
{
  ; Projected lights
  light0
  {
    texture=lampy.tga
    ; Field of view (vertical)
    fov=35
    ; Aspect (horizontal)
    aspect=5
    ; Distance to car
    z=0.5
    ; 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.3
    ; Pitching with respect to car (in degrees)
    pitch=10
  }
  light2
  {
    texture=light0.tga
    ; Field of view (vertical)
    fov=35.0
    ; Aspect (horizontal)
    aspect=1.8
    ; Distance to car
    z=2.3
    ; Pitching with respect to car (in degrees)
    pitch=10
  }
}
steer
{
	x=0.37
	y=0.135
	z=0.4
	xa=15
	lock=1080				
	linearity=0.3
	model
	{
		file=steer.dof
		lod0_z=0
		lod_out=2
	}
}
engine
{
	x=0
	y=0
	z=0
	size=0
	mass=0
	idle_method=1
	idle_throttle=0.05
	idle_rpm=900
	min_warn_rpm=6700
	max_warn_rpm=7000
	max_rpm=7000
	start_rpm=1300
	stall_rpm=450
	autoclutch=1
	autoclutch_rpm=
	starter=1
	starter_torque=100
	start_stalled=1   ;1
	enable_stall=1
	curve_torque=torque.crv
	max_torque=1
	torque_reaction=0.25
	braking_coeff=
	braking_offset=
	braking_torque_curve=braking_torque.crv
	friction=0
	cylinders=6
	cylinder_angle=0
	rumble_amplitude=
	rumble_maxrpm=
	inertia
	{
		engine=0.38
	}
	jitter
	{
		amplitude=0.2
		frequency_min=1
		frequency_var=0.1
		time_min=150
		time_var=10
	}
	shifting
	{
		automatic=0
		blip_throttle=0.3
		cut_throttle=1
		fast=1
		shift_up_rpm=6100
		shift_down_rpm=2600
		time_to_declutch=55
		time_in_neutral=75
		time_to_clutch=55
		time_to_declutch_down=75
		time_in_neutral_down=75
		time_to_clutch_down=75
	}
}

fuel
{
	bsfc=6.5e-5
	max=30
	type=0
}
gearbox
{
   gears=7
   gear0
   {
      ratio=-3.394
      inertia=0.1
   }
   gear1
   {
      ratio=4.148
      inertia=0.01
   }
   gear2
   {
      ratio=2.370
      inertia=0.02
   }
   gear3
   {
      ratio=1.556
      inertia=0.03
   }
   gear4
   {
      ratio=1.155
      inertia=0.04
   }
   gear5
   {
      ratio=0.859
      inertia=0.05
   }
   gear6
   {
      ratio=0.686
      inertia=0.04
   }
}


clutch
{
   max_torque=500
}
differential
{
	type=1
	ratio=4.11
	inertia=0.16
	locking_coeff=100 ;25
	output1=1
	output0=0
}


handbrakes
{
	wheels=23
}
aero
{
	body
	{
		center=0 0 0
		cx=0.335
		area=2.06
	}
	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=12500
	}
	arb1
	{
		susp_left=2
		susp_right=3
		k=12250
	}
}

susp_front
{
	y=-0.12
	z=1.35
	restlen=0.411			;293	395kg
	minlen=0.22
	maxlen=0.46
	k=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.067
	roll_center
	{
		x=0
		y=-0.552	;60mm
		z=0
	}
}

susp_rear
{
	y=-0.14
	z=-1.37
	restlen=0.370			;305	275kg
	minlen=0.2
	maxlen=0.43
	k=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.1
	camber_change_per_m=0.14
	roll_center
	{
		x=0
		y=-0.504	;120mm
		z=0
	}
}

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

;----------------------tyres----------------------

tire_model_front
{
	damping_predict_lat=0
	damping_predict_long=0
}
tire_model_rear
{
	damping_predict_lat=0
	damping_predict_long=0
}
pacejka
{
   ; Lateral force
   a0=1.246
   a1=-27
   a2=1450
   a3=1850
   a4=8.65 ;12
   a5=0.000 ;0.0
   a6=0 ;-0.04 ;0
   a7=0.7
   a8=0 ;0.003
   a9=0 ;-0.002
   a10=0 ;0.16
   a111=0
   a112=0 ;0.045
   a12=0 ;0.17
   a13=0 ;-23.5
   ; Longitudinal force
   b0=1.47
   b1=-15
   b2=1400
   b3=9.8
   b4=370
   b5=0
   b6=0
   b7=0
   b8=0
   b9=0
   b10=0
   b11=0
   b12=0
   ; Aligning moment
   c0=0.83
   c1=-2.2
   c2=9.39
   c3=0.219
   c4=-8.6
   c5=0.025
   c6=0.0
   c7=0.044
   c8=-0.58
   c9=0.18
   c10=0 ;0.043
   c11=0 ;0.048
   c12=0 ;-0.0035
   c13=0 ;-0.18
   c14=0 ;0.14
   c15=0 ;-1.029
   c16=0 ;0.27
   c17=0 ;-1.1
   optimal_slipratio=0.157
   optimal_slipangle=0.1507
}

;----------------------wheels----------------------

wheel_front
{
	y=0
	z=0
	steering=1
	powered=1
	lock=60
	mass=35
	inertia=1.4
	radius=0.36
        width=0.205		
	rolling_coeff=0.0180
	max_braking=1200
	braking_factor=1
	tire_rate=250000
	pacejka~pacejka
	{
	}
}

wheel_rear
{
	y=0
	z=0
	steering=0
	powered=1
	power_gearing=0.53	;20% rear drive, no diff, equal drive :eek:
	mass=35
	inertia=1.35
	radius=0.36
        width=0.205		;225/40 ZR18
	rolling_coeff=0.0180
	max_braking=400
	braking_factor=1
	max_handbrake_torque=3400
	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	;-0.6
	model
	{
		file=left.dof
	}
	model_brake
	{
		file=lewyprzod.dof
	}
}

wheel1~wheel_front
{
	x=0
	ackerman=-1.15
	toe=0
	camber=0
	model
	{
		file=right.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	;-1.5
	model
	{
		file=left.dof
	}
	model_brake
	{
		file=lewytyl.dof
	}
}

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

;	------------------ Artyfishul Intellygents -----------------
     
ai
{
	grip_factor=1.1
}

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

audio
{
	skid
	{
	volume=2
        sample=skid.wav
        sample2=skid.wav
	}
	horn
	{
		sample=horn.wav
	}
	shiftout
	{
		sample=audio/shiftout.wav
	}
	shiftin
	{
		sample=audio/shiftin.wav
	}
	acc_all
	{
		attack=1350
		decay=1350
		volume=1
	}
	accelerate_out
	{
		smp0~audio.acc_all
		{
			sample=1000.wav
			min=1000
			max=1001
			natural=1100
			volume=0.7
		}
		smp1~audio.acc_all
		{
			sample=2000.wav
			min=2000
			max=2001
			natural=2100
		}
		smp2~audio.acc_all
		{
			sample=3200.wav
			min=3000
			max=3001
			natural=3100
		}
		smp3~audio.acc_all
		{
			sample=4300.wav
			min=4000
			max=4001
			natural=3750
		}
		smp4~audio.acc_all
		{
			sample=5200.wav
			min=5000
			max=5001
			natural=4750
		}
		smp5~audio.acc_all
		{
			sample=6500.wav
			min=6000
			max=6001
			natural=5750
		}
		smp6~audio.acc_all
		{
			sample=7100.wav
			min=7000
			max=7001
			natural=6750
		}
	}
	accelerate_in
	{
		smp0~audio.acc_all
		{
			sample=i1000.wav
			min=1000
			max=1001
			natural=1100
			volume=0.7
		}
		smp1~audio.acc_all
		{
			sample=i2000.wav
			min=2000
			max=2001
			natural=2100
			volume=0.7
		}
		smp2~audio.acc_all
		{
			sample=i3200.wav
			min=3000
			max=3001
			natural=3100
			volume=0.7
		}
		smp3~audio.acc_all
		{
			sample=i4300.wav
			min=4000
			max=4001
			natural=3750
			volume=0.7
		}
		smp4~audio.acc_all
		{
			sample=i5200.wav
			min=5000
			max=5001
			natural=4750
			volume=0.8
		}
		smp5~audio.acc_all
		{
			sample=i6500.wav
			min=6000
			max=6001
			natural=5750
			volume=0.9
		}
		smp6~audio.acc_all
		{
			sample=i7100.wav
			min=7000
			max=7001
			natural=6750
			volume=1
		}
	}
	decelerate_out
	{
		smp0~audio.acc_all
		{
			sample=1000.wav
			min=1000
			max=1001
			natural=1000
			volume=1
		}
		smp1~audio.acc_all
		{
			sample=2000.wav
			min=2000
			max=2001
			natural=2000
		}
		smp2~audio.acc_all
		{
			sample=3200.wav
			min=3000
			max=3001
			natural=3000
		}
		smp3~audio.acc_all
		{
			sample=4300.wav
			min=4000
			max=4001
			natural=3650
		}
		smp4~audio.acc_all
		{
			sample=5200.wav
			min=5000
			max=5001
			natural=4650
		}
		smp5~audio.acc_all
		{
			sample=6500.wav
			min=6000
			max=6001
			natural=5650
		}
		smp6~audio.acc_all
		{
			sample=7100.wav
			min=7000
			max=7001
			natural=6650
		}
	}
	decelerate_in
	{
		smp0~audio.acc_all
		{
			sample=i1000.wav
			min=1000
			max=1001
			natural=1000
			volume=1
		}
		smp1~audio.acc_all
		{
			sample=i2000.wav
			min=2000
			max=2001
			natural=2000
			volume=0.5
		}
		smp2~audio.acc_all
		{
			sample=i3200.wav
			min=3000
			max=3001
			natural=3000
			volume=0.6
		}
		smp3~audio.acc_all
		{
			sample=i4300.wav
			min=4000
			max=4001
			natural=3650
			volume=0.8
		}
		smp4~audio.acc_all
		{
			sample=i5200.wav
			min=5000
			max=5001
			natural=4650
			volume=0.9
		}
		smp5~audio.acc_all
		{
			sample=i6500.wav
			min=6000
			max=6001
			natural=5650
			volume=0.9
		}
		smp6~audio.acc_all
		{
			sample=i7100.wav
			min=7000
			max=7001
			natural=6650
			volume=1
		}
	}
	gearwhine
 	{
		smp0
		{
			sample=audio/tw-extonhigh.wav
			volume=0.05
			min=1
			max=2
			decay=1000
			natural=500
		}
	}
	wind
	{
		volume=14
		pitch_scale=1.25
		pitch_offset=0
 		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
		}
	}
}
;----------------------driving aids----------------------
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

}
;---------------------------------------------
;Cameras
;---------------------------------------------

camera0
{
  name=Driver
  fov=70
  model=0
  wheels=0
  view=1
  offset
  {
    x=0.37
    y=0.46
    z=-0.35
  }
  offset_to
  {
    x=0.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
  }
}
camera1
{
  name=Driver, left
  fov=60
  model=0
  wheels=0
  view=1
  offset
  {
    x=0.37
    y=0.46
    z=-0.35
  }
  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=0
  wheels=0
  view=1
  offset
  {
    x=0.37
    y=0.46
    z=-0.35
  }
  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=0
  wheels=0
  view=0
  offset
  {
    x=0.2
    y=0.46
    z=-0.35
  }
  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.4
    z=-7
  }
  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=-20
  }
  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
	}
}