car
{
	name=Volkswagen Touareg R50
	year=2010
	credits=Convert by Seby & Radu, convert to CG by Eholov
	comments=
	id=vwtouaregr50
	version=090
	wheels=4
	ff_factor=0.25
	skid
	{
		sample=Skid.wav
	}
	shadow
	{
		texture=shdw.tga
		width=3.1
		length=4.5
	}
	cg
	{
		x=0	
		y=-0.55		;-0.35
		z=0.1		;0.45
	}
}
graphics
{
	intensity=0.3
	shadow
	{
		model
		{
			file=shadow.dof
			use_shaders=0
		}
	}
}


lights
{
  ; Projected lights
  light0
  {
    texture=light.tga
    ; Field of view (vertical)
    fov=55
    ; Aspect (horizontal)
    aspect=5
    ; Distance to car
    z=2
    ; Pitching with respect to car (in degrees)
    pitch=0
    ; Fall-off distance
    far=100
  }
  OLD_light0
  {
    texture=light.tga
    ; Field of view (vertical)
    fov=25.0
    ; Aspect (horizontal)
    aspect=4.0
    ; Distance to car
    z=2
    ; Pitching with respect to car (in degrees)
    pitch=10
  }
}
body
{
	mass=1155
	inertia
	{
		x=3000
		y=3300
		z=900
	}
	width=2.1
	height=1.51
	length=4.31
	manual_box=0
	model
	{
		file=vw.dof
	}
	model_incar
	{
		file=vw.dof
	}
	model_light_l
	{
		file=lights.dof
	}
	model_braking_l
	{
		file=brakes.dof
	}
        model_reverse_r
        {
        file=r.dof
        }
        width=1.96
        height=0.75
        length=4.46
        manual_box=1
}
steer
{
	x=0.45
	y=0.27
	z=0.45
  radius=10
  linearity=0.2
  xa=23
  lock=400
	model
	{
		file=volan.dof
	}
}
engine
{
   mass=0
   max_rpm=6100
   idle_rpm=850
   stall_rpm=500
   start_rpm=1000
   autoclutch_rpm=2800
   starter=1
   starter_torque=150
   curve_torque=torque.crv
   max_torque=370
   torque_reaction=0.4
   shifting
   {
      automatic=1
      fast=1
      shift_up_rpm=5970
      shift_down_rpm=3000
    time_to_declutch=14
    time_to_clutch=15
    time_to_declutch_down=25
    time_to_clutch_down=15
    time_in_neutral_down=15
   }
   inertia
   {
      engine=0.35
      final_drive=0.32
   }
   braking_coeff=1.7
   start_stalled=1
   rolling_friction_coeff=0
   }
}

gearbox
{
   gears=7
   gear0
   {
      ratio=-3.043
      inertia=0.7
   }
   gear1
   {
      ratio=4.171
      inertia=1.16
   }
   gear2
   {
      ratio=2.340
      inertia=1.34
   }
   gear3
   {
      ratio=1.520
      inertia=1.5
   }
   gear4
   {
      ratio=1.142
      inertia=1.68
   }
   gear5
   {
      ratio=0.864
      inertia=1.86
   } 
   gear6
   {
      ratio=0.689
      inertia=1.86
   }
}

differential
{
  type=1
  ratio=5
  inertia=0.2
  locking_coeff=80
  output0=0
  output1=1
}
clutch
{
  max_torque=500
}
handbrakes
{
  wheels=23
}
differential
{
	type=1
                 locking_coeff=500
                 inertia=0.35
	ratio=3.750	
	output0=2
	output1=3
}
aero
{
	body
	{
		center=0 0.23 0
                cx=0.40
                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.20
	z=1.55
	restlen=0.35
	minlen=0.0
	maxlen=0.9
	k=55000
	bump_rate=3000
	rebound_rate=10500
	bump_function=0
	rebound_function=0
	anti_pitch=0.2
	camber_change_per_m=0.05
	roll_center
	{
		x=0
		y=-0.92
		z=0
	}
}
susp_rear
{
	y=-0.20
	z=-1.5
	restlen=0.35
	minlen=0.0
	maxlen=0.9
	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.89
}
susp1~susp_front
{
	x=-0.89
}
susp2~susp_rear
{
	x=0.89
}
susp3~susp_rear
{
	x=-0.89
}
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
{
   ; Lateral force
   a0=1.6
   a1=-20
   a2=1320
   a3=2100
   a4=20
   a5=0.014
   a6=-0.24
   a7=1.0
   a8=-0.03
   a9=-0.0013
   a10=-0.15
   a111=-4
   a112=-0.29
   a12=17.8
   a13=-2.4
   ; Longitudinal force
   b0=1.5
   b1=-40
   b2=1410
   b3=23.3
   b4=250
   b5=0.05
   b6=0
   b7=0.055
   b8=-0.024
   b9=0.014
   b10=0.26
   b11=-103.71
   b12=0
   ; Aligning moment
   c0=2.2
   c1=-3.9
   c2=-3.9
   c3=-1.26
   c4=-8.2
   c5=0.025
   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.11
   optimal_slipangle=0.157
}

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
	steering=1
	powered=1
	power_gearing=1.65	;4.95*40/60/2 =1.65
	camber=-0.65
	lock=61
	mass=55
	inertia=1.1
	radius=.4
	rolling_coeff=0.0175
	max_braking=2000
	braking_factor=0.75
	max_handbrake_torque=-500
	tire_rate=275000
	pacejka~pacejka
	{
	}
}
wheel_rear
{
	x=0
	y=0
	z=0
	steering=0
	powered=1
	camber=-0.55
	mass=65
	inertia=1.2
	radius=.4
	rolling_coeff=0.0175
	max_braking=2000
	braking_factor=0.25
	max_handbrake_torque=1500
	tire_rate=295000
	pacejka~pacejka
	{
        a2=1480
        a3=2150
        b2=1630
	}
}
wheel0~wheel_front
{
	toe=-.15
	ackerman=1.2
	model
	{
		file=left.dof
	}
}
wheel1~wheel_front
{
	toe=.15
	ackerman=-1.2
	model
	{
		file=right.dof
	}
}
wheel2~wheel_rear
{
	toe=-.0
	model
	{
		file=left.dof
	}
}
wheel3~wheel_rear
{
	toe=.0
	model
	{
		file=right.dof
	}
}
camera0
{
  name=Driver
  fov=70
  model=1
  wheels=0
  view=1
  offset
  {
    x=0.400
    y=0.555
    z=-0.05
  }
  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.5
    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.5
    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
{
	starter
	{
		sample=snd\starter.wav
	}
 skid
  {
    volume=1
    smp0
    {
      volume=1
      sample=snd\skid\scrub.wav
      min=0.4
      max=1
      attack=0.35
      decay=1.0
    }
    smp1
    {
      volume=1
      sample=snd\skid\skid.wav
      min=0.9
      max=20
      attack=.7
      decay=0
    }
  }
	gearwhine
	{
		smp0
		{
		sample=snd\gearwhine.wav
		natural=240
		volume=0.15
		}
	}
	gearwhine_off
	{
		smp0
		{
		sample=snd\gearwhineoff.wav
		natural=240
		volume=0.15
		}
	}
	acc_all
	{
		attack=2000
		decay=2000
	}
	accelerate_out
	{
		smp0~audio.acc_all
		{
			sample=snd\idle.wav
			min=500
			max=1000
			attack=100
			decay=100
			natural=2000
			volume=1
		}
		smp1~audio.acc_all
		{
			sample=snd\a0.wav
			min=1000
			max=2000
			attack=100
			natural=3000
			volume=1
		}
		smp2~audio.acc_all
		{
			sample=snd\a.wav
			min=3000
			max=4000
			natural=3000
			volume=1
		}
		smp3~audio.acc_all
		{
			sample=snd\a1.wav
			min=5000
			max=6490
			decay=1
			natural=3000
			volume=1
		}
		smp3~audio.acc_all
		{
			sample=snd\a1.wav
			min=5000
			max=6490
			decay=1
			natural=3000
			volume=1
		}
		smp4~audio.acc_all
		{
			sample=snd\turbo.wav
			min=3000
			max=9000
			attack=1000
			natural=6000
			volume=0.65
		}
	}
	decelerate_out
	{
		smp0~audio.acc_all
		{
			sample=snd\idle.wav
			min=500
			max=1000
			attack=100
			decay=100
			natural=2000
			volume=1
		}
		smp1~audio.acc_all
		{
			sample=snd\d0.wav
			min=1000
			max=2000
			attack=100
			natural=3000
			volume=1
		}
		smp2~audio.acc_all
		{
			sample=snd\d.wav
			min=3000
			max=4000
			natural=3000
			volume=1
		}
		smp3~audio.acc_all
		{
			sample=snd\d1.wav
			min=5000
			max=9000
			decay=1
			natural=3000
			volume=1
		}
	}
	accelerate_in
	{
		smp0~audio.acc_all
		{
			sample=snd\in\idle.wav
			min=500
			max=1000
			attack=100
			decay=100
			natural=2000
			volume=0.3
		}
		smp1~audio.acc_all
		{
			sample=snd\in\a0.wav
			min=1000
			max=2000
			attack=100
			natural=3000
			volume=0.3
		}
		smp2~audio.acc_all
		{
			sample=snd\in\a.wav
			min=3000
			max=4000
			natural=3000
			volume=0.3
		}
		smp3~audio.acc_all
		{
			sample=snd\in\a1.wav
			min=5000
			max=6490
			decay=1
			natural=3000
			volume=0.3
		}
	}
	decelerate_in
	{
		smp0~audio.acc_all
		{
			sample=snd\in\idle.wav
			min=500
			max=1000
			attack=100
			decay=100
			natural=2000
			volume=0.3
		}
		smp1~audio.acc_all
		{
			sample=snd\in\d0.wav
			min=1000
			max=2000
			attack=100
			natural=3000
			volume=0.3
		}
		smp2~audio.acc_all
		{
			sample=snd\in\d.wav
			min=3000
			max=4000
			natural=3000
			volume=0.3
		}
		smp3~audio.acc_all
		{
			sample=snd\in\d1.wav
			min=5000
			max=9000
			decay=1
			natural=3000
			volume=0.3
		}
	}
	wind
	{
		volume=2
		pitch_scale=0
		pitch_offset=50
		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
		}
	}
}
