; Shark (2010)
; prototype by ekoz
; ekoz@free.fr
car
{
	name=shark6
	year=2010
	credits=ekozdesign (ekoz@free.fr) - ini with help of StOfF and Iroker 
	comments=beta version(6) - 100% brutal / 0% asistance
   comments=v1.1 
	id=shark
	version=054
	wheels=4
	shadow
	{
		texture=shark_shadow.tga
		width=2.5
		length=4.75
		offset_z=-0.03
		intensity_dark=1
		intensity_light=0.6
	}
	cg
	{
		x=0
		y=-0.32
		z=0.27
	}
	 ff_factor=0.14
}
graphics
{
	shadow
	{
		model
		{
			file=shark-shadow.dof
			use_shaders=0
		}
		intensity=0.2
	}
}
body
{
   mass=650
   inertia
   {
      x=2065
      y=2680
      z=423
   }
	width=1.76
	height=0.9
	length=4.6
	manual_box=0
	cockpit_start=1
	cockpit_length=1
	model
	{
		file=shark-body2.dof
	}  
	model_incar
	{
		file=shark-body.dof
	}
	model_braking_l
	{
		file=shark-blight.dof

	}
	model_light_l
	{
		file=shark-lights.dof
	}
}  
steer
{
	x=0.30
	y=0.09
	z=0.4
	radius=20
	xa=25
   lock=45
   linearity=0.590000
	model
	{
		file=shark-steer.dof
	}
}
engine
{
   mass=250
   max_rpm=8950
   idle_rpm=900
   stall_rpm=600
   start_rpm=700
   autoclutch_rpm=1500
   starter=0
   starter_torque=50
   curve_torque=torque.crv
   max_torque=400
   reaction=1
   shifting
   {
      automatic=0
      shift_up_rpm=6800
      shift_down_rpm=3500
      time_to_declutch=50
      time_to_clutch=50
   }
   inertia
   {
      engine=0.15
      final_drive=0.12
   }
   braking_coeff=3.2
   rolling_friction_coeff=0.9
   start_stalled=1
}
gearbox
{
   gears=7
   gear0
   {
      ratio=-3.2
      inertia=0.1
   }
   gear1
   {
      ratio=2.9
      inertia=0.1
   }
   gear2
   {
      ratio=2
      inertia=0.07
   }
   gear3
   {
      ratio=1.5
      inertia=0.04
   }
   gear4
   {
      ratio=1.2
      inertia=0.03
   }
   gear5
   {
      ratio=0.99
      inertia=0.01
   }
   gear6
   {
      ratio=0.87
      inertia=0.01
   }
}
clutch
{
   max_torque=1000
}
handbrakes
{
   wheels=23
}
differential
{
   type=1
   inertia=0.2
   ratio=4.1
   locking_coefficient=25
   locking_coeff=70
   clutches=12
   clutch_factor=1
   power_angle=0
   coast_angle=0
   output0=2
   output1=3
}
traction_control
{
  enable=0
  ; Allowed front/rear wheel speed ratio (1.1=10% difference allowed)
  max_velocity_ratio=4
  ; When to turn TC off
  min_velocity_ratio=1.0
}
abs
{
  enable=0
  max_velocity_ratio=2
  min_velocity_ratio=1
}
aero
{
   body
   {
      center=0 -0.2 0
      cx=0.3
      area=1.4
   }
   wings=3
   wing0
   {
      name=Front
      span=1.38
      cord=1
      coeff_drag=0.8
      coeff_down=8
      center=0.000 0.000 2.000
      angle=5
      angle_offset=3.5
   }
   wing1
   {
      name=Rear
      span=1.98
      cord=0.41
      coeff_drag=0.6
      coeff_down=7
      center=0.000 0.000 -2.150
      angle=10
      angle_offset=2
   }
   wing2
   {
      name=RearSpoilerandDiffuser
      span=1
      cord=0.1
      coeff_drag=3
      coeff_down=10
      center=0.000 -0.200 -1.270
      angle=0
      angle_offset=10
   }
}
antirollbar
{
   count=2
   arb0
   {
      susp_left=0
      susp_right=1
      k=40000
   }
   arb1
   {
      susp_left=2
      susp_right=3
      k=20000
   }
}
susp_front
{ 
	z=1.13	
	y=-0.04
   minlen=0.1
   maxlen=0.3
   restlen=0.25
   anti_pitch=0
   k=120000
   bump_rate=10000
   rebound_rate=10000
   roll_center
   {
      x=0
      y=-0.52
      z=0
   } 
}
susp_rear
{ 
	z=-1.35
	y=0
   minlen=0.1
   maxlen=0.3
   restlen=0.25
   anti_pitch=0
   k=120000
   bump_rate=10000
   rebound_rate=10000
   roll_center
   {
      x=0
      y=-0.6
      z=0
   }
}
susp0~susp_front
{
	x=0.78	
	;toe_change_per_m=0.01				
}
susp1~susp_front
{
	x=-0.78	
	;toe_change_per_m=-0.01
}
susp2~susp_rear
{
	x=0.76				
	;toe_change_per_m=0.01		
}
susp3~susp_rear
{
	x=-0.76
	;toe_change_per_m=-0.01		
}


tire_model
{
  relaxation_length_lat=0.91
  relaxation_length_long=.091
  damping_speed=0.15
  damping_coefficient_lat=35
  damping_coefficient_long=1
}



tire_model_front
{
   damping_predict_lat=0.672
   damping_predict_long=0.128
}
tire_model_rear
{
   damping_predict_lat=0.734
   damping_predict_long=0.091
}
pacejka
{
   a0=1.60
   a1=-40
   a2=1700
   a3=3200 ;2800
   a4=7.2
   a5=0.014
   a6=-0.24
   a7=1.0
   a8=-0.03
   a9=-0.0013
   a10=-0.15
   a111=-8.5
   a112=-0.29
   a12=17.8
   a13=-2.4
   b0=1.75
   b1=-80
   b2=1800
   b3=23.3
   b4=390
   b5=0.05
   b6=0
   b7=0.055
   b8=-0.024
   b9=0.014
   b10=0.26
   c0=2.2
   c1=-4.1
   c2=-4.2
   c3=-1.8
   c4=-9.1
   c5=0.0225
   c6=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.1
   optimal_slipangle=0.11
}
skidding_default
{
   long_start=0.1
   long_max=1.0
   long_start_n=0.5
   long_max_n=1.0
   lat_start=2
   lat_max=3.0
}
wheel_front
{
  steering=1
  lock=40
  mass=16
  inertia=1.1
  radius=0.36
  width=0.26
  slices=20
  ackerman=1.1
   rolling_coeff=0.015
   max_braking=2100
   braking_factor=1
   tire_rate=300000
   pacejka~pacejka
   {
   }
}
wheel0~wheel_front
{
  toe=0
    camber=-3.6
	model
	{
		file=shark-fwheel.dof
	}
	model2
	{
		file=shark-fwheelb.dof
		velocity=100
	}
	model_brake
	{
		file=shark-brake.dof
	}
}
wheel1~wheel_front
{
  toe=0
    camber=-3.6
	model
	{
		file=shark-fwheel2.dof
	}
	model2
	{
		file=shark-fwheelb2.dof
		velocity=100
	}
	model_brake
	{
		file=shark-brake2.dof
	}
}
wheel_rear
{
  steering=0
  mass=16
  inertia=1.1
  width=.325
    radius=0.37
  slices=20
   rolling_coeff=0.015
   max_braking=800
   braking_factor=1
   tire_rate=300000
   max_handbrake_torque=2500
   pacejka~pacejka
   {
      a1=-55
      a2=2250
      b1=-110
      b2=2100
      b4=410
      b5=0.075
      c1=-4.3
      c2=-4.4
      c3=-1.9
      c4=-9.6
      optimal_slipratio=0.1
      optimal_slipangle=0.135
   }
   skidding~skidding_default
   {
   }
}
wheel2~wheel_rear
{
	   x=0
   toe=-1.5
   camber=-2.5
	model
	{
		file=shark-rwheel.dof
	}
	model2
	{
		file=shark-rwheelb.dof
		velocity=100
	}
	model_brake
	{
		file=shark-brake.dof
	}
}
wheel3~wheel_rear
{
	   x=0
   toe=1.5
   camber=-2.5
	model
	{
		file=shark-rwheel2.dof
	}
	model2
	{
		file=shark-rwheelb2.dof
		velocity=100
	}
	model_brake
	{
		file=shark-brake2.dof
	}
}
camera0
{
	name=0
	model=0
	wheels=0
	view=0
	fov=50
	offset
	{
		x=0
		y=0.9
		z=-4.6
	}
	src
	{
		mass=6
		k=600
		damping=320
		maxdist=2
	}
}
camera1
{
	follow
	{
		pitch=1
		yaw=1
		roll=1
	}
	offset
	{
		x=0.30
		y=0.28
		z=0.09
	}
	offset_to
	{
		x=0.3
		y=0
		z=10
	}
	angle
	{
		x=0
		y=0
		z=0
	}
	fov=65
	model=1
	wheels=0
	view=1
	name=1
	src
	{
		mass=5
		k=750
		damping=85
		maxdist=0.25
	}
	dst
	{
		mass=1
		k=0
		damping=0
		maxdist=0
	}
}
;camera2
;{
;	follow
;	{
;		pitch=1
;		yaw=1
;		roll=1
;	}
;	offset
;	{
;		x=0
;		y=0.18
;		z=0.49
;	}
;	offset_to
;	{
;		x=0
;		y=0.03 
;		z=3
;	}
;	angle
;	{
;		x=0
;		y=0
;		z=0
;	}
;	fov=65
;	model=2
;	wheels=0
;	view=2
;	name=inside
;	src
;	{
;		mass=5
;		k=750
;		damping=85
;		maxdist=0.25
;	}
;	dst
;	{
;		mass=1
;		k=0
;		damping=0
;		maxdist=0
;	}
;}



camera2
{
	name=Bumper
	model=2
	wheels=2
	view=0
	fov=60
	follow
	{
		pitch=1
		yaw=1
		roll=1
	}
	offset
	{
		x=0.0
		y=-0.20
		z=0.92
	}
	angle
	{
		x=5
		y=180.0
		z=0.0
	}
}
camera3
{
  name=St0fF's Bonnet View
  fov=60
  offset
  {
    x=0.000000
    y=-0.220000
    z=0.500000
  }
  angle
  {
    x=-1
    y=180.000000
    z=0
  }
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
}
camera4
{
	offset
	{
		x=-0.381252
		y=0.439585
		z=-20
	}
	angle
	{
		x=16.5
		y=130
		z=0.25
	}
	name=4
	fov=60
}
camera5
{
	follow
	{
		pitch=0
		yaw=1
		roll=0
	}
	offset
	{
		x=0.0
		y=0.0
		z=-4.5
	}
	angle
	{
		x=0
		y=35
		z=0
	}
	name=5
	fov=60
}
camera6
{
	offset
	{
		x=0
		y=0
		z=-3.944994
	}
	angle
	{
		x=2.500038
		y=-152.604248
		z=-10.017359
	}
	follow
	{
		pitch=0
		yaw=0
		roll=0
	}
	fov=50
	model=1
	wheels=1
	view=1
	name=6
}
camera7
{
	offset
	{
		x=1
		y=0.06
		z=-0.6
	}
	angle
	{
		x=-2.25
		y=-161
		z=3.3
	}
	follow
	{
		pitch=0
		yaw=1
		roll=1
	}
	fov=60
	name=7
}
camera8
{
	follow
	{
		pitch=1
		yaw=1
		roll=1
	}
	offset
	{
		x=-0.3
		y=-0.13
		z=-0.6
	}
	angle
	{
		x=6
		y=45
		z=0.0
	}
	name=8
	fov=85
}
camera9
{
	follow
	{
		pitch=1
		yaw=1
		roll=1
	}
	offset
	{
		x=1.18
		y=-0.0
		z=-0.6
	}
	angle
	{
		x=14
		y=19.5
		z=7.5
	}
	name=9
	fov=65
}
audio
{
	skid
	{
	  sample=skid.wav
	}  	
	shiftout
	{
		sample=shark-shift.wav
	}
	shiftin
	{
		sample=shark-shift.wav
	}
;  throttle_off
;  {
;    smp0
;    {
;      sample=blowoff.wav
;    }
;  }
	acc_all
	{
  	attack=1300
  	decay=1300
	}
	accelerate_out
	{	
		smp0~audio.acc_all
		{
			volume=1			
			sample=shark-1000.wav
			min=0
			max=1100
			natural=800
		}
		smp1~audio.acc_all
		{
			volume=0.9
			sample=shark-6000.wav
			min=1000
			max=8500
			natural=2800
		}
		smp2~audio.acc_all
		{
	    	volume=0.6
			sample=shark-6000.wav
			min=9000
			max=10000
			natural=2800
			attack=4000
    }
    smp3~audio.acc_all
    {
      volume=0.03
      sample=turbo.wav
      min=5000
      max=8000
      natural=5000
      attack=1000
      decay=600
    }
	}
	decelerate_out
	{
  		smp0~audio.acc_all
		{
			volume=1		
			sample=shark-1000.wav
			min=0
			max=1100
			natural=1000
		}
		smp1~audio.acc_all
		{
			volume=0.8
			sample=shark-6000.wav
			min=1000
			max=9200
			natural=5500
		}		
  }
	accelerate_in
	{	
		smp0~audio.acc_all
		{
			volume=1			
			sample=shark-1000.wav
			min=0
			max=1100
			natural=800
		}
		smp1~audio.acc_all
		{
			volume=0.9
			sample=shark-6000.wav
			min=1000
			max=8500
			natural=2800
		}
		smp2~audio.acc_all
		{
      volume=0.6
			sample=shark-6000.wav
			min=9000
			max=10000
			natural=2800
			attack=4000
    }
    smp3~audio.acc_all
    {
      volume=0.03
      sample=turbo.wav
      min=5000
      max=8000
      natural=5000
      attack=1000
      decay=600
    }
	}
	decelerate_in
	{
  	smp0~audio.acc_all
		{
			volume=1		
			sample=shark-1000.wav
			min=0
			max=1100
			natural=1000
		}
		smp1~audio.acc_all
		{
			volume=0.8
			sample=shark-6000.wav
			min=1000
			max=9200
			natural=6000
		}		
  }
}