car
{
	name=Land Rover 110 Defender
 	year=1988
 	credits=Converted by Priban from GTA San Andreas.
 	comments=Land-Rover 110 2.5 Litre, 62 kW, 181Nm
	id=landrover_defender_110
	version=0655
	wheels=4
	skid
	{
		sample=skid.wav
	}
	horn
  	{
  		sample=horn.wav
 	}
	shadow
	{
		texture=shadow.tga
		width=5
		length=4.6
	}
	; Center of gravity of car sprung mass
	cg
	{
		x=0.0
		y=-0.55	;not sure of this one
		z=0.0
	}
}
graphics
{
  ; Car models used
  shadow
  {
    model
    {
      ; Projected shadow model
      file=110.dof
      
      use_shaders=1
    }
  }
}
ai
{
  ;understeer_correct=20
  ;oversteer_correct=20
  ;grip_factor=1.2
}
body
{
	mass=1819         ;unladen weight
	inertia
	{
		x=3000 	
		y=3300   
		z=900   
	}
	width=1.79	;1790 mm, 
	height=2.1	;2060 mm
	length=4.6	;4599 mm, 2285 mm wheelbase
	manual_box=0
	model
	{
	file=landrover.dof
      
	}
	model_incar
	{
	    file=landrover.dof
 	}
	; 3D model of the brake lights.
	model_braking_l
	{
		file=blight.dof
	}
	model_light_r
	{
		file=hlight.dof
			 	
	}
	;model_light_l
	{
		;file=rlight.dof
		;lod_out=50

	}

	
	
  	 
}

steer
{
  x=0.47
  y=0.27
  z=0.6
  xa=27
  lock=720		;ratio 20.5-23.5, 54 degree lock
			; > 1107 to 1269 = 3.075 to 3.525 turns lock-to-lock
  linearity=0.2	;900 / 1107 = 0.813
			;"Min. turning radius 5,3m"
  model
  {
    file=volant.dof
    lod_out=50
  }
}

engine
{
  mass=0		
  max_rpm=5100
  idle_rpm=750
  stall_rpm=400
  start_rpm=900
  torque_reaction=1
  autoclutch_rpm=0
  starter_torque=90
  curve_torque=torque.crv
  max_torque=181	
  start_stalled=1
  shifting
  {
      automatic=0
      shift_up_rpm=3900
      shift_down_rpm=2000
      time_to_declutch=325
      time_to_clutch=25
  }
  inertia
  {
    engine=0.3
   final_drive=0.15
  }
  braking_coeff=2.4
  rolling_friction_coeff=1
  friction=0
}
clutch
{
  max_torque=250
}
gearbox
{
   gears=6
   gear0
   {
      ratio=-3.7007
      inertia=0.1
      engine_map=0.5
   }
   gear1
   {
      ratio=3.585
      inertia=0.06
      engine_map=1
   }
   gear2
   {
      ratio=2.3008
      inertia=0.05
      engine_map=1.1
   }
   gear3
   {
      ratio=1.5074
      inertia=0.04
      engine_map=1.2
   }
   gear4
   {
      ratio=1.0
      inertia=0.03
      engine_map=1.3
   }
   gear5
   {
      ratio=0.8314
      inertia=0.02
      engine_map=1.4
   }
}
differential
{
  type=1
  locking_coeff=80
  ratio=5	;3.70 or 4.11
  inertia=0.2
  output0=0 2
  output1=1 3
}
handbrakes
{
  wheels=23
}
aero
{
  body
 {
  center=0 0 0
  cx=0.4
   area=2.95
  }
  wings=0

}

antirollbar
{
  count=2
  arb0
  {
    susp_left=0
    susp_right=1
    k=8000
  }
  arb1
  {
    susp_left=2
    susp_right=3
    k=0
  }
} 
susp_front
{
  	y=-0.2
  	z=1.69
	restlen=0.41		;0.3              
	minlen=0.0		;0.1
	maxlen=0.9		;0.5                   
	k=55000                   
	bump_rate=3000        
	rebound_rate=10500	            
	bump_function=0
	rebound_function=0
	anti_pitch=0.2
	camber_change_per_m=0.05
	caster_offset=-0.0
	roll_center
	{
		x=0
		y=-0.92	
		z=0
	}
}
susp_rear
{
	y=-0.26
	z=-1.24
	restlen=0.41		;0.3           
	minlen=0.0		;0.1
	maxlen=0.9		;0.5              
	k=40000                 
	bump_rate=2000           
	rebound_rate=8500         
	bump_function=0
	rebound_function=0
	anti_pitch=0.2
	camber_change_per_m=0.05
	roll_center
	{
		x=0
		y=-0.67
		z=0
	}
}
susp0~susp_front
{
  x=0.78            ;0.85       
  camber_change_steering=0
  toe_change_per_m=0.05
}
susp1~susp_front
{
  x=-0.78         ;-0.5
  camber_change_steering=-0
  toe_change_per_m=-0.05
}
susp2~susp_rear
{
  x=0.78
  toe_change_per_m=-0.05
}
susp3~susp_rear
{
  x=-0.78
  toe_change_per_m=0.05
}

;----------------------------------------------------------------------------
; Wheels
;----------------------------------------------------------------------------

tire_model_front
{
damping_predict_lat=0.572
damping_predict_long=0.023
}
tire_model_rear
{
damping_predict_lat=0.560
damping_predict_long=0.022
}

pacejka
{
    a0=1.2
    a1=-25
    a2=1400
    a3=2000
    a4=9
    a5=0.015
    a6=-0.25
    a7=0
    a8=-0.03
    a9=-0.001
    a10=-0.15
    a111=-8.5
    a112=-0.29
    a12=17.8
    a13=-2.4
    b0=1.3
    b1=-40
    b2=2100 ;1200
    b3=20
    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.12
    optimal_slipangle=0.173
}

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
{
 	 x=0
  	y=0
  	z=0
  	powered=1
  	power_gearing=1.2 
  	steering=1
  	lock=70		
  	camber=-0.65
  	mass=60
 	 inertia=1.1
 	 radius=.4
  	width=.40
  	max_braking=2600
  	braking_factor=0.75
 	max_handbrake_torque=-500 
	 tire_rate=275000
  	pacejka~pacejka
  	{
  	}
}
wheel_rear
{
 	 x=0
  	y=0
 	 z=0
  	powered=1
  	power_gearing=1.5	
  	steering=0
 	camber=-0.55
  	mass=60
  	inertia=1.2
  	radius=.4
  	width=.40
  	max_braking=2600
  	braking_factor=0.5
  	max_handbrake_torque=4200
  	tire_rate=295000  
  	pacejka~pacejka
  	{
		a2=1480
        		a3=2150
        		b2=1630  
	}
}
wheel0~wheel_front
{
  toe=-0.4
  ackerman=1.185	;32 degrees inner wheel
  model
  {
    file=kolo_leve.dof
  }
  
}
wheel1~wheel_front
{
  toe=0.4
  ackerman=-1.185	;32 degrees inner wheel
  model
  {
    ;file=
   file=kolo_prave.dof
  }
  
}
wheel2~wheel_rear
{
  toe=-0.0
  model
  {
   file=kolo_leve.dof
  }
  
}
wheel3~wheel_rear
{
  toe=0.0
  model
  { 
    file=kolo_prave.dof
  }
  
}

;----------------------------------------------------------------------------
; Cameras
;----------------------------------------------------------------------------
camera0
{
  name=Driver
  fov=70
  model=1
  wheels=0
  view=1
  offset
  {
    x=0.47
    y=0.6
    z=0.1
  }
  offset_to
  {
    x=0.43
    y=-0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.3
  }
  dst
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
}
camera1
{
  name=Driver, left
  fov=60
  model=1
  wheels=0
  view=1
  offset
  {
    x=0.356
    y=0.6
    z=0.01
  }
  offset_to
  {
    x=10.43
    y=0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.3
  }
  dst
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
}
camera2
{
  name=Driver, right
  fov=60
  model=1
  wheels=0
  view=1
  offset
  {
    x=0.356
    y=0.6
    z=0.01
  }
  offset_to
  {
    x=-9.57
    y=0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.3
  }
  dst
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
}
camera3
{
  name=Driver, rear
  fov=-65
  model=1
  wheels=0
  view=0
  offset
  {
    x=0.2
    y=0.6
    z=0.8
  }
  offset_to
  {
    x=-1
    y=0.5
    z=-10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.3
  }
  dst
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
}
camera4
{
  name=Chase
  fov=60
  model=0
  wheels=0
  view=0
  offset
  {
    x=0
    y=-0.5
    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=-7
  }
  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=-7
  }
  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=Bumper
	fov=60
	model=2
	wheels=0
	view=0
	offset
	{
		x=0
		y=-0.2
		z=1.54
	}
	follow
	{
		pitch=1
		yaw=1
		roll=1
	}
	angle
	{
		x=5
		y=180
		z=0
	}
}
camera9
{
	name=Bonnet
	fov=60
	model=0
	wheels=0
	view=0
	offset
	{
		x=0
		y=-0.6
		z=1.4
	}
	follow
	{
		pitch=1
		yaw=1
		roll=1
	}
	angle
	{
		x=5
		y=180
		z=0
	}
}

audio
{
  skid
  {
    sample=skid.wav
  }
  horn
  {
    sample=horn.wav
  }
  ;shiftout
  {
    ;sample=shiftout.wav
  }
  ;shiftin
  {
    ;sample=shiftin.wav
  }
  throttle_off
  {
    smp0
    {
      sample=
    }
  }
accelerate_out
  {
    smp0
    {
      sample=idle.wav
      volume=1.0
      min=100
      max=1200
      attack=0
      decay=1000
      natural=1000
    }
  smp3
    {
      sample=turbo.wav
      volume=0.1
      min=2500
      max=10000
      attack=1000
      decay=0
      natural=1000
    }
  smp1
    {
      sample=mid.wav
      volume=1.0
      min=2000
      max=3600
      attack=1000
      decay=2000
      natural=2100
    }
  smp2
    {
      sample=high.wav
      volume=1.0
      min=3400
      max=6100
      attack=1000
      decay=0
      natural=4800
    }
  }
  decelerate_out
  {
    smp0
    {
      sample=idle.wav
      volume=1.0
      min=100
      max=1200
      attack=0
      decay=1000
      natural=1000
    }
  smp3
    {
      sample=turbo.wav
      volume=0.1
      min=2500
      max=10000
      attack=1000
      decay=0
      natural=1000
    }
  smp1
    {
      sample=mid.wav
      volume=1.0
      min=2000
      max=3600
      attack=1000
      decay=2000
      natural=2100
    }
  smp2
    {
      sample=high.wav
      volume=1.0
      min=3400
      max=6100
      attack=1000
      decay=0
      natural=4800
    }
  }
  accelerate_in
  {
    smp0
    {
      sample=idle.wav
      volume=1.0
      min=100
      max=1200
      attack=0
      decay=1000
      natural=1000
    }
  smp3
    {
      sample=turbo.wav
      volume=0.1
      min=2500
      max=10000
      attack=1000
      decay=0
      natural=1000
    }
  smp1
    {
      sample=mid.wav
      volume=1.0
      min=2000
      max=3600
      attack=1000
      decay=2000
      natural=2100
    }
  smp2
    {
      sample=high.wav
      volume=1.0
      min=3400
      max=6100
      attack=1000
      decay=0
      natural=4800
    }
  }
  decelerate_in
  {
    smp0
    {
      sample=idle.wav
      volume=1.0
      min=100
      max=1200
      attack=0
      decay=1000
      natural=1000
    }
  smp3
    {
      sample=turbo.wav
      volume=0.1
      min=2500
      max=10000
      attack=1000
      decay=0
      natural=1000
    }
 smp1
    {
      sample=mid.wav
      volume=1.0
      min=2000
      max=3600
      attack=1000
      decay=2000
      natural=2100
    }
  smp2
    {
      sample=high.wav
      volume=1.0
      min=3400
      max=6100
      attack=1000
      decay=0
      natural=4800
    }
  }

  wind
  {
    smp0
    {
      sample=wind2.wav
      volume=1.0
      min=1
      max=2
      decay=100
      natural=30
    }
  }
}