car
{
  name=Seat Ibiza III
  year=Ano:2005
  credits=Motor: 1.8cc 180cv
  comments=Categoria: Nivel 2
  id=seatIbizacuprar2004
  version=090
  wheels=4
  shadow
  	{
    	 	texture=shadow.tga
     	 	length=4.2
     	 	width=1.9
      		offset_z=0
		intensity_dark=0.5
		intensity_light=0.5
  }

	cg
	{
		x=0
		y=-0.15
		z=0.25
	}
	ff_factor=1.00
  ff_gain=0.65
  ff_damping=0
  ff_friction=1
  ff_inertia=0
  ff_stickfriction=1
}
particles
{ 
backfire
{
exhaust0
{
pos=0.42 -0.34 -1.81
normal=0 0 -1
} 
exhaust1
{
pos=0.34 -0.34 -1.81
normal=0 0 -1
}
type=backfire
; type=backfire_long
min_rpm=8000
; min_rpm=0
; suppose car comes from 9000 rpm for example. Then backfiring can happen when max_rpm is reached
max_rpm=8300
; max_rpm=12000
; high backfire likeliness for rally cars
likeliness_percentage=130
; likeliness_percentage=100
}
}

graphics
{
  	shadow
  	{
    		model
    		{
      			file=shadow.dof
			use_shaders=0
    		}
		intensity=0.2
  	}
	generic
	{
		model0
                {
                        file=escape.dof
                }
                model1
                {
                        file=logos.dof
                }
                model2
                {
                        file=
                }
                model3
                {
                        file=
                }
                model4
                {
                        file=
                }
                model5
                {
                        file=
                }
                model6
                {
                        file=
                }
                model7
                {
                        file=
                }
                model8
                {
                        file=
                }
                model9
                {
                        file=

    		}
	}
}

body
{
	x=0
	y=0
	z=0
	mass=855 
	inertia
	{
            x=1900
            y=2100
            z=460
	}
	width=2.04
	height=0.80
	length=3.500
	manual_box=1
	model
	{
		file=body_6L.dof
	}
	model_incar
	{
		file=body_6L.dof
	}
	model_light_l
	{
		file=luzes.dof
	}
	model_braking_l
	{
		file=luztravao.dof
	}
 model_lightroad_l
 {
  file=lightsin.dof
 }
  model_reverse_r
  {
    file=re.dof
}
}

    }
  }
}

steer
{
	x=0.34
	y=0.26
	z=0.38
	xa=15.9		
	lock=1080		
	linearity=0.25
	model
	{
		file=volante.dof
	}
}

engine
{
	x=0
	y=0
	z=0
	size=0
	mass=0

	idle_rpm=850
	max_rpm=7000
	stall_rpm=500
	start_rpm=1500
	start_stalled=1
	starter_torque=100
	autoclutch_rpm=1500

	curve_torque=torque18T.crv
	max_torque=222 ;238
	shifting
	{
		automatic=0
		shift_up_rpm=6500
		shift_down_rpm=3000
		time_to_declutch=100
		time_to_clutch=80
		time_in_neutral=100
		time_to_declutch_down=135
		time_to_clutch_down=135
		time_in_neutral_down=135
	}
	inertia
	{
		engine=0.26
		final_drive=0.1
	}
	braking_coeff=2.5
	rolling_friction_coeff=0.1
	sample=engine.wav
	sample_rpm=5900
}

;----------------------drivetrain----------------------

gearbox
{
	gears=6

	gear0
	{
		ratio=-3.06
		inertia=0.02
		linearity=0.5
	}

	gear1
	{
		ratio=3.30
		inertia=0.02
	}

	gear2
	{
		ratio=1.94
		inertia=0.03
	}

	gear3
	{
		ratio=1.31
		inertia=0.04
	}

	gear4
	{
		ratio=1.03
		inertia=0.05
	}

	gear5
	{
		ratio=0.84
		inertia=0.06
	}
}
differential
{
  type=1
  ratio=3.33
  inertia=0.05
  locking_coefficient=0.05
}
clutch
{
	max_torque=355
}

handbrakes
{
	wheels=23
}

aero
{
  body
  {
    center=0 0 0
    cx=0.35
    area=2
  }
   draft
  {
    scale_lat_rear=0.4
    scale_lon_rear=1
    scale_lat_front=0.08
    scale_lon_front=0.2
  }
  wings=1
  wing0
  {
    name=Wing 1
    span=1
    cord=0.1
    coeff_drag=0.33
    coeff_down=0
    center=0 0 0.0
    angle=0
    angle_offset=10

	}
}
antirollbar
{
	count=2
	arb0
	{
		susp_left=0
		susp_right=1
		k=1450
	}
	arb1
	{
		susp_left=2
		susp_right=3
		k=1455
	}
}

susp_front
{
	y=0.01
	z=1.235
	restlen=0.260			;293	395kg
	minlen=0.12
	maxlen=0.365
	restlen=0.765			;293	395kg
	minlen=0.12
	maxlen=0.365
	k=82946			;@ static load and 1.316 NF SR
	bump_rate=9950		;0.7	1944
	rebound_rate=9950	;0.7	6531
	bump_function=0
	rebound_function=0
	anti_pitch=0.9
	camber_change_per_m=0.067
	roll_center
	{
		x=0
		y=-0.552	;60mm
		z=0
	}
}

susp_rear
{
	y=0.01
	z=-1.235
	restlen=0.255			;305	275kg
	minlen=0.1
	maxlen=0.335
      k=87009			;@ static load and 1.502 NF SR
	bump_rate=8750		;0.75	1852
	rebound_rate=8400	;0.8	5191
	bump_function=0
	rebound_function=0
	anti_pitch=0.14
	camber_change_per_m=0.14
	roll_center
	{
		x=0
		y=-0.552	;120mm
		z=0
	}
}

susp0~susp_front
{
	x=0.70
	camber_change_steering=0.147	;0.25 rad ~ 14.5 degree camber with 1 radian rotation of steering @ 8 degree caster
	caster_offset=-0.0235		;8 degrees static caster -0.0235	
	toe_change_per_m=0
}
susp1~susp_front
{
	x=-0.70
	camber_change_steering=-0.147	;0.25 rad ~ 14.5 degree camber with 1 radian rotation of steering @ 8 degree caster
	caster_offset=-0.0235		;5.78 degrees static caster -0.0235
	toe_change_per_m=0
}

susp2~susp_rear
{
	x=0.720
}
susp3~susp_rear
{
	x=-0.720
}

;----------------------tyres----------------------

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
}

;----------------------wheels----------------------

wheel_front
{
	y=0
	z=0
	steering=1
	powered=1
      power_gearing=0.31
	lock=68
	mass=15.8
	inertia=1.3
	radius=0.32
	rolling_coeff=0.017
	max_braking=1100
	braking_factor=1
	tire_rate=185000
	pacejka~pacejka
	}
}

wheel_rear
{
	y=0
	z=0
	steering=0
	powered=0
      mass=15.8
	inertia=1.3
	radius=0.32
	rolling_coeff=0.017
	max_braking=500
	braking_factor=0.25
	max_handbrake_torque=3500
	tire_rate=185000
	pacejka~pacejka
	}
}

wheel0~wheel_front
{
  x=0.
  ackerman=1.1
  toe=-0.36
  camber=-1
  model
  {
    file=left.dof
  }
  model_brake
  {
    file=pinça_left.dof
  }
}
wheel1~wheel_front
{
  x=0.
  ackerman=1.1
  toe=0.36
  camber=-1
  model
  {
    file=right.dof
  }
  model_brake
  {
    file=pinça_right.dof
  }
}
wheel2~wheel_rear
{
  x=0
  toe=-0.37
  camber=-0.5
  model
  {
    file=left.dof
    offset
    {
    x=-0.014
    }
  }
  model_brake
  {
    file=pinça_left.dof
  }
}
wheel3~wheel_rear
{
  x=0
  toe=0.37
  camber=-0.5
  model
  {
    file=right.dof
    offset
    {
    x=0.014
    }
  }
  model_brake
  {
    file=pinça_right.dof
  }
}

;	------------------ 5.1 ALPHA AUDIO COMPATABILTY -----------------

audio
{ skid
  {
    volume=0.8
    sample=skid.wav
    sample2=skid.wav
  }
  horn
  {
    sample=v8/horn.wav
  }
  accelerate_out
  {
    smp0~audio.acc_all
    {
      sample=vagr4petrol/7000.wav
      min=0
      max=8001
      natural=5500
    }
  } 
  decelerate_out
  {
    smp0~audio.acc_all
    {
      sample=vagr4petrol/7000.wav
      min=00
      max=8001
      natural=5500
    }
  }
  accelerate_in
  {
    smp0~audio.acc_all
    {
      sample=vagr4petrol/7000in.wav
      min=00
      max=8001
      natural=5500
    }
  }
decelerate_in
  {
    smp0~audio.acc_all
    {
      sample=vagr4petrol/7000in.wav
      min=00
      max=8001
      natural=5500
    }
  }
  gearwhine
  {
    smp0
    {
      sample=v8/tw-extonhigh.wav
      volume=0.1
      min=1
      max=2
      decay=1000
      natural=500
    }
  }
  wind
  {
    smp0
    {
      sample=v8/wind.wav
      volume=0.8
      min=11
      max=150
      attack=10
      natural=50
      }
   }
}
  steerleft
  {
    volume=0.5
    pitch_scale=0.001
    pitch_offset=0
    smp0~audio.acc_all
    {
      sample=left.wav
      min=0
      max=10000
      natural=7000
    }
  }
}
  steerright
  {
    volume=0.5
    pitch_scale=0.001
    pitch_offset=0
    smp0~audio.acc_all
    {
      sample=right.wav
      min=0
      max=10000
      natural=7000
    }
  }


;----------------------driving aids----------------------
abs
{
  enable=1
  max_velocity_ratio=1.09 
  min_velocity_ratio=1.08
  min_velocity=1
}
traction_control
{
  	enable=1
  	min_velocity=3
  	max_velocity_ratio=1.050
  	min_velocity_ratio=1.300

}

;---------------------------------------------
;Cameras
;---------------------------------------------
camera0
{
	fov=50
  model=0
  name=chase
  wheels=1
  angle
  {
    x=0
    y=180
    z=0
  }
  follow
  {
    pitch=1
    roll=1
    yaw=1
  }
  offset
  {
    x=0
    y=1.0
    z=-6.8
  }
  offset_to
  {
    x=0
    y=0
    z=10
  }
  src
  {
    mass=5
    k=320
    damping=80
    maxdist=2.5
  }
  dst
  {
    mass=1
    k=400
    damping=40
    maxdist=1.5
  }
}
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=1.6
    y=-0.5
    z=-10
  }
  angle
  {
    x=0
    y=-45
    z=0
  }
  fov=35
}
camera9
{
  name=Driver
  fov=70
  model=0
  wheels=0
  view=1
  offset
  {
    x=0.34
    y=0.54
    z=-0.35
  }
  offset_to
  {
    x=0.43
    y=-0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
	}
}