car
{
	name=Fiat Marea Weekend Turbo Converted By:Arouca21/Racer Simulator Portugal
	year=2000
	credits=0-200 km/h: 18 s, Top Speed: +260 km/h
                  comments=Fiat FIVETECH 20V TURBO 2.0 20V Inline-5 1997.5 cm³, 550 cv @ 6400 rpm, 54 kgfm @ 3600 rpm
	id=marea
	version=053b
	wheels=4
	shadow
	{
		texture=shadow.tga
		width=2.5
		length=6
	}
	cg
	{
		x=0
		y=-0.4  ;-0.275         ; 55 % of car height
		z=0.38	         ; 60 - 40
	}
	ff_factor=0.6
}

graphics
{
  	shadow
  	{
    		model
    		{
      			file=shadow.dof
			use_shaders=0
    		}
		intensity=0.2
  	}
	generic
	{
		model0
                {
                        file=bancos.dof
                }
                model1
                {
                        file=choques_frente.dof
                }
                model2
                {
                        file=choques_tras.dof
                }
                model3
                {
                        file=mala.dof
                }
                model4
                {
                        file=porta_condutor.dof
                }
                model5
                {
                        file=porta_passageiro.dof
                }
                model6
                {
                        file=capot.dof
                }
                model7
                {
                        file=porta_tras_esquerda.dof
                }
                model8
                {
                        file=porta_tras_direita.dof
                }
                model9
                {
                        file=motor.dof

    		}
	}
}
body
{
	mass=1390	
	inertia
	{
		x=1810
		y=1650
		z=515
	}
	restitution_coeff=0.1
	width=1.74
	height=1.05
	length=4.07
	manual_box=0
	model
	{
		file=marea.dof
	}
	model_incar
	{
		file=marea.dof
	}
	model_braking_l
	{
		file=brakes.dof
	}
	model_light_l
	{
		file=lights.dof
	}
                  model_lightroad_l
                  {
                                    file=lightsin.dof
                   }
}

steer
{
	x=0.380
	y=0.08
	z=0.59
	xa=15
        lock=540
	linearity=0.3
	model
	{
		file=volante.dof
		lod0_z=0
		lod_out=2
	}
}

engine
{
	mass=150
	idle_rpm=750
	max_rpm=9900
	stall_rpm=500
	start_rpm=1200
	start_stalled=0
        reaction=0.45
        starter=1
	starter_torque=75
	autoclutch_rpm=1500

	curve_torque=torque.crv
	max_torque=520
	shifting
	{
		automatic=0
		shift_up_rpm=6600 ; Maximum power rpm
		shift_down_rpm=3100
		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.43
		final_drive=0.1
	}
	braking_coeff=2.5
	rolling_friction_coeff=0.1
	;sample=
	;sample_rpm=
}

; gearbox ratios section

gearbox
{
	gears=6

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

	gear1
	{
		ratio=4.05
		inertia=0.01
		linearity=1
	}

	gear2
	{
		ratio=2.58
		inertia=-0.2
		linearity=1.2
	}

	gear3
	{
		ratio=2.10
		inertia=0.05
		linearity=1.4
	}

	gear4
	{
		ratio=1.77
		inertia=0.06
		linearity=1.6
	}

	gear5
	{
		ratio=1.41
		inertia=0.08
		linearity=1.8
	}
}

differential
{
	type=1
	ratio=2.75
	inertia=0.1
	locking_coeff=45
	output0=0    ;FWD
	output1=1    ;FWD
}

clutch
{
	max_torque=1600
}

handbrakes
{
	wheels=23
}

aero
{
	body
	{
		center=0 0 0
		cx=0.33
		area=2.381475
	}
	  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=41000
	}
	arb1
	{
		susp_left=2
		susp_right=3
		k=34000
	}
}


susp_front
{
	y=-0.095
	z=1.44
	restlen=0.450			
	minlen=0.22
	maxlen=0.46
	k=27000              
	bump_rate=1350	
	rebound_rate=4600	
	bump_function=0
	bump_max=1500
	rebound_function=0
	anti_pitch=0.1
	camber_change_per_m=0.067
	roll_center
	{
		x=0
		y=-0.75
		z=0
	}
}

susp_rear
{
	y=-0.150
	z=-1.20
	restlen=0.365			
	minlen=0.2
	maxlen=0.43
	k=24500	        
	bump_rate=1400	
	rebound_rate=4200	
	bump_function=0
	bump_max=1500
	rebound_function=0
	anti_pitch=0.1
	camber_change_per_m=0.14
	roll_center
	{
		x=0
		y=-0.60
		z=0
	}
}

susp0~susp_front
{
	x=0.82
	camber_change_steering=0.147
	caster_offset=-0.0235	
	toe_change_per_m=0
}
susp1~susp_front
{
	x=-0.82
	camber_change_steering=-0.147
	caster_offset=-0.0235		
	toe_change_per_m=0
}

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

; tires section

tire_model_front
{
	damping_predict_lat=0.492
	damping_predict_long=0.018
}
tire_model_rear
{
	damping_predict_lat=0.504
	damping_predict_long=0.020
}
pacejka
{
    a0=1.4
   	a1=-29
   	a2=1200		;rear wheels grip
   	a3=5000		;higher value decrease tendency to oversteer
   	a4=11
   	a5=0.015
   	a6=-0.25
   	a7=1.0
   	a8=-0.03
   	a9=-0.001
   	a10=-0.15
   	a111=-8.0
   	a112=-0.29
   	a12=17.8
   	a13=-2.4

   	b0=1.5
   	b1=-58
   	b2=1380  	;front wheels grip
   	b3=23.3
   	b4=325
   	b5=0.08
   	b6=0.0
   	b7=0.05
   	b8=-0.024
   	b9=0.015
   	b10=0.25
   	b11=-86
   	b12=0.0

   	c0=2.3
   	c1=-3.8
   	c2=-3.14
   	c3=-1.0
   	c4=-7.2
   	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.04
   	c15=-1.029
   	c16=0.27
   	c17=-1.1

   	optimal_slipratio=0.10
   	optimal_slipangle=0.23
}

; wheels section

wheel_front
{
	y=0
	z=0
	steering=1
	lock=50
	mass=20
	inertia=1.4
	radius=0.3075
        width=0.195		;Typical endo`s wheels radius
	rolling_coeff=0.0180
	max_braking=2400
	braking_factor=0.84
	tire_rate=250000
	pacejka~pacejka
	{
	}
}

wheel_rear
{
	y=0
	z=0
	steering=0
	powered=0
	mass=20
	inertia=1.35
	radius=0.3075
        width=0.195
	rolling_coeff=0.0180
	max_braking=1600
	braking_factor=0.3
	max_handbrake_torque=3400
	tire_rate=250000
	pacejka~pacejka
	{
	}
}

wheel0~wheel_front
{
	x=0
	ackerman=1.15
	toe=-0
	camber=0.007
	model
	{
		file=lw.dof
	}
	model_brake
	{
		file=pinca_esquerda.dof
	}
}

wheel1~wheel_front
{
	x=0
	ackerman=-1.15
	toe=0
	camber=0.007
	model
	{
		file=rw.dof
	}
	model_brake
	{
		file=pinca_direita.dof
	}
}

wheel2~wheel_rear
{
	x=0
	toe=-0.15	
	camber=-0.500
	model
	{
		file=lw.dof
	}
	model_brake
	{
		file=pinca_esquerda.dof
	}
}

wheel3~wheel_rear
{
	x=0
	toe=0.15
	camber=-0.500
	model
	{
		file=rw.dof
	}
	model_brake
	{
		file=pinca_direita.dof
	}
}
; ai opponents
     
ai
{
	grip_factor=1.1
}

; sounds section

audio
{
  skid
  {
    sample=skid.wav
  }
  acc_all
  {
    attack=2600
    decay=2600
    min_vol=0
    max_vol=7
  }
  
  accelerate_out
  {
    smp0~audio.acc_all
    {
      sample=idle.wav
      min=700
      max=1400
      natural=850
      volume=3
    }
    smp1~audio.acc_all
    {
      sample=hi.wav
      min=2100
      max=10500
      natural=5900 
      volume=6.5
    }
      smp2~audio.acc_all
      {
         sample=turbo3.wav
         volume=1.2
         min=2000
         max=12400
         natural=5200
      }
      smp3~audio.acc_all
      {
         sample=turbo.wav
         volume=1
         min=3300
         max=12400
         natural=3200
      }
   }
decelerate_out
  {
    smp0~audio.acc_all
    {
      sample=idle.wav
      min=700
      max=1400
      natural=850
      volume=1
    }
    smp1~audio.acc_all
    {
      sample=hi.wav
      min=2500
      max=10500
      natural=5900 
      volume=6.5
    }
      smp2~audio.acc_all
      {
         sample=turbo.wav
         volume=1
         min=5600
         natural=1200
      }
      smp3~audio.acc_all
      {
         sample=turbo3.wav
         volume=2
         min=5000
         natural=2300
      }
    smp4~audio.acc_all
    {
     sample=turbo.wav
     min=5800
     decay=6500
     natural=700
     volume=2
    }
      smp5~audio.acc_all
      {
         sample=turbo2.wav
         min=7500
         max=10000
         decay=0000
         natural=8000
         volume=3
      }
      smp6~audio.acc_all
      {
         sample=turbo.wav
         min=6600
         max=10000
         decay=7000
         natural=700
         volume=2
      }
  }
accelerate_in
  {
    smp0~audio.acc_all
    {
      sample=idle.wav
      min=700
      max=1400
      natural=850
      volume=1
    }
    smp1~audio.acc_all
    {
      sample=hi.wav
      min=2500
      max=10500
      natural=5900 
      volume=6
      }
      smp2~audio.acc_all
      {
         sample=turbo3.wav
         volume=0.9
         min=3000
         max=12400
         natural=5200
      }
      smp3~audio.acc_all
      {
         sample=turbo.wav
         volume=0.8
         min=3300
         max=12400
         natural=4200
      }
   }
decelerate_in
  {
    smp0~audio.acc_all
    {
      sample=idle.wav
      min=700
      max=1400
      natural=850
      volume=1
    }
    smp1~audio.acc_all
    {
      sample=hi.wav
      min=2500
      max=10500
      natural=5800 
      volume=6.5
     }
      smp2~audio.acc_all
      {
         sample=turbo.wav
         volume=0.7
         min=5600
         natural=1200
      }
      smp3~audio.acc_all
      {
         sample=turbo3.wav
         volume=0.7
         min=5000
         natural=2300
      }
    smp4~audio.acc_all
    {
     sample=turbo.wav
     min=5800
     decay=6500
     natural=700
     volume=0.7
    }
      smp5~audio.acc_all
      {
         sample=turbo2.wav
         min=7200
         max=10000
         decay=0000
         natural=8000
         volume=3
      }
      smp6~audio.acc_all
      {
         sample=turbo.wav
         min=6600
         max=10000
         decay=7000
         natural=700
         volume=2.7
      }
  }
}

  wind
  {
    volume=0.6
    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
    }
 }

; 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=1
}


; camera settings section

camera0
{
  offset
  {
    x=0.059375
    y=-0.700001
    z=-4.715009
  }
  angle
  {
    x=6.666651
    y=-180.729126
    z=0.000000
  }
  name=Side view
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  fov=50
}
camera1
{
  offset
  {
    x=0.029688
    y=-0.904162
    z=-6.870018
  }
  angle
  {
    x=15.694407
    y=179.652771
    z=0.000000
  }
  name=Behind
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
}
camera2
{
 offset
 {
  x=0
  y=0.15
  z=2.100000
 }
 angle
 {
  x=0.000000
  y=180.000000
  z=0.000000
 }
 name=Bumper
 follow
 {
  pitch=1
  yaw=1
  roll=1
 }
 fov=80
 model=2
 wheels=0
 view=2
}
camera3
{
 follow
 {
  pitch=1
  yaw=1
  roll=1
 }
 offset
 {
  x=0
  y=-0.45
  z=0.75000
 }
 angle
 {
  x=5.000000
  y=180.000000
  z=0.000000
 }
 name=Hood
 fov=68
 model=0
 wheels=0
 view=0
}
camera4
{
 offset
 {
  x=1.150625
  y=0.2
  z=0.350000
 }
 angle
 {
  x=-2.00
  y=-175.472336
  z=-7.017359
 }
 follow
 {
  pitch=1
  yaw=1
  roll=1
 }
 fov=72
 model=0
 wheels=0
 view=0
 name=Left Front Wheel
}
camera5
{
 follow
 {
  pitch=0
  yaw=0
  roll=0
 }
 offset
 {
  x=0.0
  y=-0.25
  z=-5.5
 }
 angle
 {
  x=6.0
  y=30.853992
  z=0.0
 }
 name=Side High
 fov=60
 model=0
 wheels=1
 view=1
}
camera6
{
 follow
 {
  pitch=0
  yaw=1
  roll=0
 }
 offset
 {
  x=0
  y=0
  z=-9
 }
 angle
 {
  x=3.861111
  y=33.853992
  z=-14.322908
 }
 fov=80
 model=0
 wheels=1
 view=0
 name=Front Side
}
camera7
{
 follow
 {
  pitch=0
  yaw=0
  roll=0
 }
 offset
 {
  x=0
  y=0.25
  z=-9
 }
 angle
 {
  x=10
  y=150
  z=0
 }
 fov=25
 model=0
 wheels=1
 view=0
 name=Front High
}
camera8
{
	name=Dash View - Driver
	fov=65
	model=1
	wheels=0
	view=2
	name=Inside
	fov=60

	follow
	{
		pitch=1
		yaw=1
		roll=1
	}
	offset
	{
		x=0.42
		y=0.44
		z=-0.14
	}
	offset_to
	{
		x=0
		y=0
		z=10
	}
	angle
	{
		x=1.000000
		y=180.000000
		z=0.000000
	}
	src
	{
		mass=5
		k=750
		damping=75
		maxdist=0.2
	}
	dst
	{
		mass=0
		k=0
		damping=0
		maxdist=0
	}
camera9
{
	name=Dash View - Driver
	fov=65
	model=1
	wheels=0
	view=2
	name=Inside
	fov=60

	follow
	{
		pitch=1
		yaw=1
		roll=1
	}
	offset
	{
		x=-0.42
		y=0.25
		z=-0.00
	}
	offset_to
	{
		x=0
		y=0
		z=10
	}
	angle
	{
		x=1.000000
		y=180.000000
		z=0.000000
	}
	src
	{
		mass=5
		k=750
		damping=75
		maxdist=0.2
	}
	dst
	{
		mass=0
		k=0
		damping=0
		maxdist=0
	}
}