car
{
   name=Lancia Delta Hf Rallycar '92 Track-Day SET-UP v1.1
   year=1992
   credits=4WD, 4 cylinders, 16 valves, 2 litres. Power:295  bhp @7000 rpm Torque:430 Nm @4500 rpm
   comments=Model: The_Taggerung, conversion, textures, shader,ini physic,rim and sounds: Ariuken
   id=delta_hf_92
   version=050f
   wheels=4
   cg
  	{
    		x=0
		y=0.27	
		z=0.051	;Weight Distribution	52%/48%
  	}
   skid
   {
      sample=skid.wav
   }
   shadow
  	{
    	 	texture=shadow.tga
     	 	length=4.50
     	 	width=2.20
     		offset_z=-0.0
		intensity_dark=0.7
		intensity_light=0.5
  	}
		ff_factor=0.3
}

graphics
{
	shadow
	{
		model
		{
			file=DeltaHFrallycar.dof
			use_shaders=0
		}
		intensity=0.5
	}
}


body
{
   ;Dimensions:
   ;Length: 3900mm. 
   ;Width: 1770mm. 
   ;Height: 1360mm. 
   ;Wheelbase: 2480mm. 
   ;Weight: 1100kg minimum.
   ; Weight of the car's body (kg)
   ; This excludes wheels, driver and fuel
    mass=1020             ;1100kg kerb weight, -80kg unsprung
  inertia
  {
    x=2167
    y=2324	
    z=514	
  }
   ; Amount of rebound in a collision
   ; 0 is none, 1 is like a rubber ball
   restitution_coeff=0.05
   length=3.899
   width=1.771
   height=1.260
   manual_box=1
   model
   {
      file=DeltaHFrallycar.dof
   }
   model_incar
   {
      ;file=
   }
   model_light_l
   {
      file=lights.dof
   }
   model_light_r
   {
      ;file=
   }
   model_braking_l
   {
      file=brakelights.dof
   }
   model_braking_r
   {
      ;file=
  }
}
steer
{
   x=0.335
   y=0.68
   z=0.40
   radius=.0
   xa=2.5
   lock=240
   linearity=0
   model
   {
      file=wheel.dof
   }
}

engine
{
  	mass=0
  	start_rpm=1000
  	idle_rpm=1000
  	stall_rpm=500
  	autoclutch_rpm=3000
  	max_rpm=7500
  	starter=1
  	starter_torque=100
  	start_stalled=1
  	curve_torque=Delta HF.crv
  	max_torque=1
  	torque_reaction=1
  	shifting
  	{
    		automatic=0
    		shift_up_rpm=8500
    		shift_down_rpm=4500
    		time_to_declutch=100
		time_in_neutral=50
    		time_to_clutch=100
		time_to_declutch_down=100
		time_in_neutral_down=50
		time_to_clutch_down=100
  	}
  	inertia
  	{
    		engine=0.10
    		final_drive=0.12
  	}
  	braking_coeff=2.0
	sample=
	sample_rpm=8000
}

traction_control
{
   enable=0
   max_velocity_ratio=1.1
   min_velocity_ratio=1.0
}
gearbox
{
   gears=7
   ; Gear ratios; note that negative gears are reverse gears
   ; You may have multiple reverse gears (or 0)
   gear0
   {
      inertia=0.9
      ratio=-3.545
   }
   gear1
   {
      ratio=3.526
      inertia=0.13
   }
   gear2
   {
      ratio=2.153
      inertia=0.09
   }
   gear3
   {
      ratio=1.853
      inertia=0.07
   }
   gear4
   {
      ratio=1.350
      inertia=0.05
   }
   gear5
   {
      ratio=1.012
      inertia=0.03
   }
   gear6
   {
      ratio=0.852
      inertia=0.01
   }
}
clutch
{
   ; Maximum friction the clutch can generate (Nm)
   max_torque=610
}
handbrakes
{
   ; Apply to which wheels? (give indices starting at 0; mostly 23)
   wheels=23
}
;----------------------------------------------------------------------
;Differential:

differential
{
  diffcount=3
  {
    diff0
    {
    type=1
    ratio=1
    inertia=0.05
    locking_coeff=100
    locking_percentage=95
    power_angle=0
    coast_angle=0
    clutches=1
    clutch_factor=1.0
    ;split between output0 and output1 where 0.0 is all to output0 and 1 is all to output1 (and 0.5 is equal split)
    split=0.5
    output0=diff1
    output1=diff2
    }
    diff1
    {
    type=1
    ratio=3.111 
    inertia=0.05
    locking_coeff=40
    power_angle=0
    coast_angle=0
    clutches=2
    clutch_factor=1.0
    split=0.5
    output0=0
    output1=1
    }
    diff2
    {
    type=1
    ratio=2.363
    inertia=0.05
    locking_coeff=60
    power_angle=0
    coast_angle=0
    clutches=2
    clutch_factor=1.0
    split=0.5
    output0=2
    output1=3
    }
  }
}

aero
{
   body
   {
      ; Application center relative to the CG
      center=0 0 0
      ; Longitudinal drag coefficient (Cx, X-axis is SAE's car longitudinal)
      cx=0.44
      ; Frontal area in m^2
      area=2.2
   }
   wings=2
   wing0
   {
      name=FrontDam
      span=1.5
      cord=0.05
      coeff_drag=0.26
      coeff_down=1.0
      center=0.000 0.200 1.700
      ; Angle in degrees
      angle=5
      ; Angle offset; a zero degree wing still gives downforce often
      angle_offset=0
   }
   wing1
   {
      name=RearSpoiler
      span=1.5
      cord=0.15
      angle=45
      angle_offset=0
      coeff_drag=0.85
      coeff_down=1.5
      center=0.000 1.100 -1.700
   }
}
antirollbar
{
   count=2
   ; The anti-roll bars add forces to the suspension as follows:
   ; diff=compression_left-compression_right
   ; force=diff*k
   ; So it's linearly related to the difference in suspension compression
   arb0
   {
      susp_left=0
      susp_right=1
      k=25800
   }
   arb1
   {
      susp_left=2
      susp_right=3
      k=19000
   }
}

susp_front
{
	y=0.37
	z=1.24
	restlen=0.20			
	minlen=0.050
	maxlen=0.20
	k=54500		
	bump_rate=4600	
	rebound_rate=5700
	bump_function=0
	bump_max=1500
	rebound_function=0
	anti_pitch=0.15
	camber_change_per_m=0.0
	roll_center
	{
		x=0
		y=0.080
		z=0
	}
}

susp_rear
{
	y=0.35
	z=-1.24
	restlen=0.20			
	minlen=0.050
	maxlen=0.20
	k=48500		
	bump_rate=4100	
	rebound_rate=5000	
	bump_function=0
	bump_max=1500
	rebound_function=0
	anti_pitch=0.15
	camber_change_per_m=0.0
	roll_center
	{
		x=0
		y=0.080
		z=0
	}
}

susp0~susp_front
{
  	x=0.763
	camber_change_steering=0.0
	caster_offset=-0.064		
	toe_change_per_m=0
}

susp1~susp_front
{
  	x=-0.763
	camber_change_steering=-0.0
	caster_offset=-0.064		
	toe_change_per_m=0
}


susp2~susp_rear
{
  	x=0.763
	toe_change_per_m=-0.00
}

susp3~susp_rear
{
  	x=-0.763
	toe_change_per_m=0.00
}

;----------------------tyres----------------------
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
   a1=-106
   a2=2029
   a3=1743
   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
   a13=-2.4
   b0=1.35326
   b1=-90.00000
   b2=1670.00000
   b3=23.30000
   b4=400.00000
   b5=0.00000
   b6=0.00680
   b7=0.05500
   b8=-0.02400
   b9=0.01400
   b10=0.26000
   b12=0
   c0=2.10000
   c1=-3.90000
   c2=-3.90000
   c3=-1.26000
   c4=-8.20000
   c5=0.02500
   c6=0.00000
   c7=0.04400
   c8=-0.58000
   c9=0.18000
   c10=0.04300
   c11=0.04800
   c12=-0.00350
   c13=-0.18000
   c14=0.14000
   c15=-1.02900
   c16=0.27000
   c17=-1.10000
   optimal_slipratio=0.18276
   optimal_slipangle=0.21185
}

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
  	camber=-1.80
  	steering=1
  	powered=1
  	lock=70
	mass=20
  	inertia=1
  	radius=0.315
  	rolling_coeff=0.015
	friction_road=1.7
  	max_braking=2200
  	braking_factor=0.67
  	tire_rate=410000
  	pacejka~pacejka
  	{		
 	}
}

wheel_rear
{
  	y=0
  	z=0
  	camber=-1.0
  	steering=0
  	powered=1
  	mass=20
  	inertia=1
  	radius=0.315
  	rolling_coeff=0.015
	friction_road=1.7
  	max_braking=2200
  	braking_factor=0.33
 	max_handbrake_torque=3800
  	tire_rate=410000
  	pacejka~pacejka
  	{
	}
}
wheel0~wheel_front
{
  x=0
  toe=0
  model
 	{
  		file=Speedline2015l.dof
 	}
 	model2
 	{
  		file=Speedline2015l_blur1.dof
  		velocity=30
 	}
 	model3
 	{
  		file=Speedline2015l_blur2.dof
  		velocity=60
 	}
 	model4
 	{
  		file=Speedline2015l_blur3.dof
  		velocity=90
 	}
  model_brake
  {
    file=left_caliper.dof
  }
}
wheel1~wheel_front
{
  x=0
  toe=0  
  model
 	{
  		file=Speedline2015r.dof
 	}
 	model2
 	{
  		file=Speedline2015r_blur1.dof
  		velocity=30
 	}
 	model3
 	{
  		file=Speedline2015r_blur2.dof
  		velocity=60
 	}
 	model4
 	{
  		file=Speedline2015r_blur3.dof
  		velocity=90
 	}
  model_brake
  {
    file=right_caliper.dof
  }
}
wheel2~wheel_rear
{
  x=0
  toe=0
  model
 	{
  		file=Speedline2015l.dof
 	}
 	model2
 	{
  		file=Speedline2015l_blur1.dof
  		velocity=30
 	}
 	model3
 	{
  		file=Speedline2015l_blur2.dof
  		velocity=60
 	}
 	model4
 	{
  		file=Speedline2015l_blur3.dof
  		velocity=90
 	}
  model_brake
  {
    file=left_caliper.dof
  }
}
wheel3~wheel_rear
{
  x=0
  toe=0
  model
 	{
  		file=Speedline2015r.dof
 	}
 	model2
 	{
  		file=Speedline2015r_blur1.dof
  		velocity=30
 	}
 	model3
 	{
  		file=Speedline2015r_blur2.dof
  		velocity=60
 	}
 	model4
 	{
  		file=Speedline2015r_blur3.dof
  		velocity=90
 	}
  model_brake
  {
    file=right_caliper.dof
  }
}
;
; Cameras
; Type of model to use; 0=outside, 1=inside, 2=none
;
camera0
{
   follow
   {
      pitch=1
      yaw=1
      roll=1
   }
   offset
   {
      x=0
      y=-1.162501
      z=0.635000
   }
   angle
   {
      x=9.027775
      y=180
      z=0.000000
   }
   name=Hood
   fov=62
   model=0
   wheels=0
   view=0
}
camera1
{
   offset
   {
      x=0
      y=-0.454165
      z=-4.649996
   }
   angle
   {
      x=11.000005
      y=-180.000000
      z=0.000000
   }
   name=Chase High
   follow
   {
      pitch=0
      yaw=1
      roll=0
   }
   fov=50
   model=0
   wheels=0
   view=0
}
camera2
{
   offset
   {
      x=0
      y=-0.4
      z=2.100000
   }
   angle
   {
      x=0.000000
      y=180.000000
      z=0.000000
   }
   name=Bumper
   follow
   {
      pitch=1
      yaw=1
      roll=1
   }
   fov=60
   model=2
   wheels=0
   view=2
}
camera3
{
   offset
   {
      x=0
      y=-0.513334
      z=-5.745006
   }
   angle
   {
      x=21
      y=180
      z=0
   }
   name=Chase Close
   follow
   {
      pitch=0
      yaw=1
      roll=0
   }
   fov=50
   model=0
   wheels=0
   view=0
}
camera4
{
   offset
   {
      x=-0.670312
      y=-0.166667
      z=-3.944994
   }
   angle
   {
      x=2.500038
      y=-152.604248
      z=-15.017359
   }
   follow
   {
      pitch=0
      yaw=1
      roll=0
   }
   fov=50
   model=0
   wheels=0
   view=0
   name=Rear Side
}
camera5
{
   follow
   {
      pitch=0
      yaw=1
      roll=0
   }
   offset
   {
      x=-0.121874
      y=-0.064583
      z=-5.590004
   }
   angle
   {
      x=35.555546
      y=-83.159645
      z=16.579861
   }
   name=Side High
   fov=40
   model=0
   wheels=1
   view=0
}
camera6
{
   follow
   {
      pitch=0
      yaw=1
      roll=0
   }
   offset
   {
      x=-0.231250
      y=-0.050001
      z=-4.834995
   }
   angle
   {
      x=7.361108
      y=27.083181
      z=18.923620
   }
   fov=30
   model=0
   wheels=1
   view=0
   name=Front Side
}
camera7
{
   follow
   {
      pitch=0
      yaw=1
      roll=0
   }
   offset
   {
      x=-0.001563
      y=-0.179167
      z=-9.000000
   }
   angle
   {
      x=44.000000
      y=0.000000
      z=0.000000
   }
   fov=26
   model=0
   wheels=1
   view=0
   name=Front High
}
camera8
{
   offset
   {
      x=0.365
      y=-1.0
      z=-0.4
   }
   angle
   {
      x=8.000000
      y=180.000000
      z=0.000000
   }
   follow
   {
      pitch=1
      yaw=1
      roll=1
   }
   fov=60
   model=0
   wheels=0
   view=1
   name=Inside Black
}
camera9
{
   follow
   {
      pitch=1
      yaw=1
      roll=1
   }
   offset
   {
      x=0.365
      y=-0.6
      z=-0.4
   }
   angle
   {
      x=0
      y=180
      z=0
   }
   fov=60
   ; Type of model to use; 0=outside, 1=inside, 2=none
   model=1
   wheels=0
   view=1
   name=Inside Dash
}
;----------------------------------------------------------------------------
; Audio for Racer 0.5.2 beta 5
;----------------------------------------------------------------------------
audio
{

  skid
  {
    volume=.5
    sample=skid1_dry_ex.wav    
  }
  volume=.2
  shiftout
  {
    sample=wiperdwn.wav
  }
  volume=.2
  shiftin
  {
    sample=wiperup.wav
  }
	acc_all
	{
		attack=1000
		decay=1000
	}
	accelerate_out
	{	
		smp0~audio.acc_all
		{
			volume=1.4			
			sample=idle-delta2.wav
			min=0
			max=1500
			natural=3000
		}
		smp1~audio.acc_all
		{
			volume=0.8
			sample=deltalow.wav
			min=1500
			max=4000
			natural=5000
		}
		smp2~audio.acc_all
		{
			volume=1.0
			sample=deltahigh.wav
			min=4200
			max=8500
			natural=14000
		}		
		smp3~audio.acc_all
   		 {
			volume=0.4
      			sample=trb_loop.wav
    			min=5000
 			max=9000
   			attack=2500
   			decay=2000
    			natural=8000
   		}		
      }
       decelerate_out
      {
  		smp0~audio.acc_all
		{
			volume=1.4			
			sample=idle-delta2.wav
			min=0
			max=1500
			natural=3000
		}
		smp1~audio.acc_all
		{
			volume=0.8
			sample=deltalow.wav
			min=1500
			max=4000
			natural=5000
		}
		smp2~audio.acc_all
		{
			volume=1.0
			sample=deltahigh.wav
			min=4200
			max=8500
			natural=14000
		}		
		smp3~audio.acc_all
                {
			volume=2
                 	sample=DeltaWaste.wav
                 	min=6000
                	max=6001
                 	attack=250
                  	decay=250
                  	natural=12000
                }
     		smp4~audio.acc_all
                {
			volume=4
                 	sample=scoppio.wav
                 	min=4200
                	max=4201
			attack=250
                  	decay=250
                  	natural=12000
                }
   	}
	gearwhine
  	{
    		smp0
    		{
      			sample=whine.wav
      			volume=0.5
      			min=1
      			max=100
      			decay=2000
      			natural=600
    		}
  	}
}