car
{
	name=Peugeot 206 GTI	
	year=Ano:2003
      credits=Motor: 1.6cc 110cv
      comments=Categoria: Nivel 2
	id=peugeot206gti
	version=090
	wheels=4
	shadow
	{
		texture=shadow.tga
		width=2.4
		length=5
		offset_z=-0.1
	}
	cg
	{
		x=0
		y=-0.2  
		z=0.38	         ; 60 - 40
	}
  ff_factor=1.00
  ff_gain=0.65
  ff_damping=0
  ff_friction=1
  ff_inertia=0
  ff_stickfriction=1
}
body
{
	mass=990	
	inertia
	{
		x=1810
		y=1650
		z=515
	}
	width=1.74
	height=1.05
	length=4.07
	manual_box=0
	model
	{
		file=206.dof
	}
	model_incar
	{
		file=206.dof
	}
	model_braking_l
	{
		file=brakes.dof
	}
	model_light_l
	{
		file=lights.dof
	}
        model_lightroad_l
        {
                 file=pozitie.dof
        }
  model_reverse_r
  {
    file=r.dof
  }
}
flares
{
  ; Front lights
  flare0
  {
    pos=-0.530 0.082 1.700
    color=1.0 0.8 1.6
	normal=0.05 0 1
	z_offset=-2500
	size_factor=0.85
	intensity=1.0
        hor_scale=1.8
  }
  flare1
  {
    pos=0.530 0.082 1.700
    color=1.0 0.8 1.6
	normal=0.05 0 1
	z_offset=-2500
	size_factor=0.85
	intensity=1.0
        hor_scale=1.8
  }
  flare2
  {
    pos=-0.580 0.082 1.700
    color=1.0 0.8 1.6
	normal=0.05 0 1
	z_offset=-2500
	size_factor=0.85
	intensity=1.0
        hor_scale=1.8
  }
  flare3
  {
    pos=0.580 0.082 1.700
    color=1.0 0.8 1.6
	normal=0.05 0 1
	z_offset=-2500
	size_factor=0.85
	intensity=1.0
        hor_scale=1.8
    }
}

steer
{
  x=0.31
  y=0.285
  z=0.48
  radius=10
  xa=20
  lock=1080
  linearity=0.8
  model
  {
      file=volante.dof
  }
}

engine
{
  mass=80
  idle_rpm=800
  max_rpm=6500
  max_torque=110
  
  sample=acc-320.wav
  sample_rpm=4800

  curve_torque=dyn.crv
  autoclutch_rpm=1100
  starter=1
  starter_torque=65
  start_stalled=1
  stall_rpm=200
  start_rpm=650
  reaction=0
  shifting
  {
    automatic=0
    shift_up_rpm=5450
    shift_down_rpm=2400
    time_to_declutch=5
    time_to_clutch=5
  }
 inertia
 {
  engine=0.1595
 }
 braking_coeff=3.2
 rolling_friction_coeff=1.9
 sample=idle.wav
 sample_rpm=8300
}
gearbox
{
   gears=6
   gear0
   {
      ratio=-3.58
      inertia=0.02
	linearity=0.5
   }
   gear1
   {
      ratio=3.42
      inertia=0.03
	linearity=1
   }
   gear2
   {
      ratio=1.95
      inertia=0.04
	linearity=1.2
   }
   gear3
   {
      ratio=1.36
      inertia=0.05
	linearity=1.4
   }
   gear4
   {
      ratio=1.06
      inertia=0.06
	linearity=1.6
   }
   gear5
   {
      ratio=0.85
      inertia=0.08
	linearity=1.8
	}

}
}


differential
{
	type=1
	ratio=4.000
	inertia=0.15
	locking_coeff=60
	output0=0   
	output1=1    
}

clutch
{
	max_torque=160
}

handbrakes
{
	wheels=23
}

aero
{
	body
	{
		center=0 0 0
		cx=0.33
		area=2.381475
	}
draft
  {
    scale_lat_rear=0.4
    scale_lon_rear=1
    scale_lat_front=0.08
    scale_lon_front=0.2
  }
	  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=1425
	}
	arb1
	{
		susp_left=2
		susp_right=3
		k=1416
	}
}


susp_front
{
  y=0.0
  z=1.20
  restlen=0.38
  minlen=0.1
  maxlen=0.45
  k=30000
  bump_rate=5500
  rebound_rate=5500
  anti_pitch=0.4
  roll_center
  {
    x=0
    y=-0.5
    z=0
  }
}
susp_rear
{
  y=0.0
  z=-1.15
  restlen=0.34
  minlen=0.1
  maxlen=0.45
  k=28500
  bump_rate=5000
  rebound_rate=4500
  anti_pitch=0.1
  roll_center
  {
    x=0
    y=-0.55
    z=0
  }
}
susp0~susp_front
{
  x=0.73
}
susp1~susp_front
{
  x=-0.73
}
susp2~susp_rear
{
  x=0.73
}
susp3~susp_rear
{
  x=-0.73
}
tire_model
{
  relaxation_length_lat=0.91
  relaxation_length_long=.091
  damping_speed=8.45
  damping_coefficient_lat=1
  damping_coefficient_long=1
}
pacejka
{
  ; Pacejka constants for all tires
; Lateral force
  a0=1.
  a1=-45 
  a2=1600 
  a3=2000
  a4=1 
  a5=0.1
  a6=-0.6589
  a7=0.0565
  a8=0
  a9=0
  a10=0
  a111=0
  a112=0
  a12=0
  a13=0

  b0=1.28
  b1=-98 
  b2=1200 ;1200 
  b3=30
  b4=166
  b5=-0.2
  b6=0
  b7=0
  b8=0.252
  b9=0
  b10=0

  c0=2.46
  c1=-2.77
  c2=-2.9
  c3=-0
  c4=-3.6
  c5=0.1460 ;-0.1
  c6=0.0004
  c7=0.22
  c8=-2.31
  c9=3.87
  c10=0.0007
  c11=-0.05
  c12=-0.006
  c13=0.33
  c14=-0.04 
  c15=-0.4
  c16=0.092
  c17=0.0114

  optimal_slipratio=0.11
  optimal_slipangle=0.157
}
wheel_all
{
  ; Brakedisc temperature
  brake_heating=0.003
  brake_dissipation=0.0005
  brake_max_temp=1000
}
wheel_front
{
  y=0
  z=0
  max_braking=800
  braking_factor=1
  steering=1
  powered=1
  power_gearing=0.53
  lock=68 ;65
  ackerman=1.1
  mass=15.8
  inertia=1.3
  radius=0.30
  width=0.235		
  slices=20
  tire_rate=185000
  pacejka~pacejka
  {
  }
}
wheel_rear
{
  y=0
  z=0
	steering=0
	powered=0	
	mass=15.8
	inertia=1.35
	radius=0.30
        width=0.195		
	rolling_coeff=0.0180
	max_braking=400
	braking_factor=1
	max_handbrake_torque=3400
	tire_rate=185000
	pacejka~pacejka
	{
		optimal_slipratio=0.11
		optimal_slipangle=0.155
	}
}
wheel0~wheel_front
{
  x=0
  toe=-0.1
  model
  {
    file=lf.dof
  }
  model_brake
  {
    file=caliper_left.dof
  }
}
wheel1~wheel_front
{
  x=-0
  toe=0.1
  model
  {
    file=rf.dof
  }
  model_brake
  {
    file=caliper_right.dof
  }
}
wheel2~wheel_rear
{
  x=0
  toe=0.1
  model
  {
    file=lf.dof
  }
  model_brake
  {
    file=caliper_left.dof
  }
}
wheel3~wheel_rear
{
  x=-0
  toe=-0.1
  model
  {
    file=rf.dof
  }
  model_brake
  {
    file=caliper_right.dof
  }
}

; sounds section

audio
{
  skid
  {
    smp0
    {
      sample=skid.wav
      attack=0.3
      decay=1
      min=0.4
      max=20
    }
    smp1
    {
      sample=SkidRoadHeavyMajor.wav
      attack=0.2
      decay=1
      min=0.7
      max=20
    }
  }
  horn
  {
    sample=horn.wav
  }
  acc_all
  {
    attack=1000
    decay=1000

  }
  
;	throttle_off
;	{
;	smp0~audio.acc_all
;		{
;		sample=-wastegate.wav
;		natural=30000
;		volume=1
;		min=0
;		max=7800
;		}
;
;	}
  accelerate_out
  {
    smp0~audio.acc_all
    {
     sample=idle.wav
     min=250
     attack=1000
     decay=55
     max=1000
     natural=760
     volume=0.6
    }
    smp1~audio.acc_all
    {
      sample=7000.wav
      min=1000
      max=9000
      natural=4060
      volume=0.9
    }
    smp2~audio.acc_all
    {
     sample=engine.wav
     min=1000
     max=9000
     natural=5000
     volume=0.1
    }
  }
    accelerate_in
  {
     smp0~audio.acc_all
    {
     sample=idle.wav
     min=250
     attack=1000
     decay=55
     max=1000
     natural=760
     volume=0.4
    }
    smp1~audio.acc_all
    {
      sample=7000.wav
      min=1000
      max=9000
      natural=4060
      volume=0.6
    }
    smp2~audio.acc_all
    {
     sample=engine.wav
     min=1000
     max=9000
     natural=5000
     volume=0.1
    }
  }
  decelerate_out
  {
    smp0~audio.acc_all
    {
     sample=idle.wav
     min=250
     attack=1000
     decay=55
     max=1000
     natural=760
     volume=0.6
    }
    smp1~audio.acc_all
    {
      sample=7000decc.wav
      min=1000
      max=9000
      natural=4060
      volume=0.9
    }
    smp2~audio.acc_all
    {
     sample=engine.wav
     min=1000
     max=9000
     natural=5000
     volume=0.1
    }
  }
    decelerate_in
  {
     smp0~audio.acc_all
    {
     sample=idle.wav
     min=250
     attack=1000
     decay=55
     max=1000
     natural=760
     volume=0.4
    }
    smp1~audio.acc_all
    {
      sample=7000decc.wav
      min=1000
      max=9000
      natural=4060
      volume=0.6
    }
    smp2~audio.acc_all
    {
     sample=engine.wav
     min=1000
     max=9000
     natural=5000
     volume=0.1
    }
  }
  wind
  {
    volume=1.5
    pitch_scale=1
    pitch_offset=50
    smp0
    {
      sample=wind1.wav
      min=27
      max=28
      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 section

traction_control
{
	max_velocity_ratio=1.2
	min_velocity_ratio=1.1
	enable=0
}

abs
{
	max_velocity_ratio=1.2
	min_velocity_ratio=1.15
	enable=0
}


;---------------------------------------------
;Cameras
;---------------------------------------------
camera0
{
  offset
  {
    x=0.0
    y=1.0
    z=-5.0
  }
  angle
  {
    x=0.000000
    y=180.000000
    z=0.000000
  }
  name=Chase Close
  follow
  {
    pitch=0
    yaw=0
    roll=0
  }
  fov=67
  model=0
  wheels=0
  view=0
  src
  {
    mass=6
    k=250
    damping=90
    maxdist=2
  }
  dst
  {
    mass=1
    k=100
    damping=70
    maxdist=2
  }
}
camera1
{
  follow
  {
    pitch=0
    yaw=0
    roll=0
  }
  offset
  {
    x=0.0
    y=-0.28751
    z=-12
  }
  angle
  {
    x=4.861111
    y=77.843800
    z=-11.322908
  }
  fov=25
  model=0
  wheels=1
  view=0
  name=Jim Seamus Cam
}
camera2

{
  follow
  {
    pitch=0
    yaw=0
    roll=0
  }
  offset
  {
    x=-0.1
    y=-0.5
    z=-6
  }
  angle
  {
    x=1.5
    y=18
    z=0
  }
  name=LowFrontAngle
  fov=50
}
camera3
{
  
	fov=60
	model=0
	wheels=2
	view=0
	follow
	{
		pitch=1
		yaw=1
		roll=1
	}
	offset
	{
		x=0.0
		y=-0.7
		z=-5
	}
	angle
	{
		x=4
		y=0
		z=0
}
camera4
{
  follow
  {
    pitch=0
    yaw=0
    roll=0
  }
  offset
  {
    x=-0.38
    y=-0.28751
    z=-4.9994
  }
  angle
  {
    x=4.861111
    y=33.853992
    z=-14.322908
  }
  fov=55
  model=0
  wheels=1
  view=0
}
}
camera5
{
	name=roda
	model=0
	wheels=0
	view=0
	offset
	{
		x=-1.2
		y=0
		z=0.5
	}
	angle
	{
		x=0
		y=170
		z=0
	}
	follow
	{
		pitch=1
		yaw=1
		roll=1
  }
  fov=60
}
camera6
{
  offset
  {
    x=0.0
    y=1.0
    z=-4.0
  }
  angle
  {
    x=0.000000
    y=130.000000
    z=0.000000
  }
  name=Chase Close
  follow
  {
    pitch=0
    yaw=0
    roll=0
  }
  fov=75
  model=0
  wheels=0
  view=0
  src
  {
    mass=6
    k=250
    damping=90
    maxdist=2
  }
  dst
  {
    mass=1
    k=100
    damping=70
    maxdist=2
  }
}
camera7
{
  follow
  {
    pitch=0
    yaw=0
    roll=0
  }
  offset
  {
    x=0.810937
    y=-0.208334
    z=-4.760015
  }
  angle
  {
    x=8.055448
    y=-405.903503
    z=0.086801
  }
  name=Front corner
}
camera8
{
  	 follow
  {
    pitch=0
    yaw=0
    roll=0
  }
  offset
  {
    x=-0.3
    y=-0.0
    z=-45
  }
  angle
  {
    x=2
    y=17
    z=4
  }
  name=LowFrontAngle
  fov=5
}
camera9
{
	name=Driver view
	fov=75
        model=0
        wheels=0
	follow
	{
		pitch=1
		yaw=1
		roll=1
	}
	offset
	{
		x=.30
		y=0.55
		z=-0.10
	}
	offset_to
	{
		x=0
		y=0
		z=10
	}
	angle
	{
		x=3
		y=180
		z=0
	}
	src
	{
		mass=5
		k=900
		damping=90
		maxdist=0.2
	}
	dst
	{
		mass=0
		k=0
		damping=0
		maxdist=0
	}
}