car
{
	name=Ford Ecatron SEL
	year=2010
        credits=Design and Conversion: AmgFan, ini by CaioBallejo.
        comments=Ford DURAtec-BioETHANOL, 2.5L 16V 170 hp @ 6000 rpm / 23.2 kgfm @ 3100 rpm + 2x DURAlectron 35HP
	id=EcaConcept
	version=063
	wheels=4
	ff_factor=0.25
	skid
	{
		sample=Skid.wav
	}
	shadow
	{
		texture=shadow.tga
		width=2.4
		length=5.0
	}
cg
	{
		x=0	
		y=-0.12 ;-0.1	
		z=0.4		
	}
}
body
{
  mass=2250	
  inertia
  {
    x=4000	
    y=4100
    z=1250
  }
	width=1.91
	height=1.81
	length=4.78
	manual_box=0
	model
	{
		file=eca.dof
	}
	model_incar
	{
		file=inside.dof
	}
	model_light_l
	{
		file=lights.dof
	}
	model_braking_l
	{
		file=brakes.dof
	}
 model_lightroad_l
 {
  file=lightsin.dof
 }
}
steer
{
	x=0.34
	y=0.18
	z=0.72
	xa=12
	lock=540
        linearity=0.3
	model
	{
		file=stw.dof
	}
}
engine
{
	size=0
  	mass=0
        idle_rpm=800
  	max_rpm=7200
        curve_torque=torque1.crv
  	max_torque=217
  	torque_reaction=0.5
        starter=1
  	starter_torque=70
  	start_stalled=1
        stall_rpm=400
  	start_rpm=550
  	autoclutch_rpm=3500
        shifting
  	{
    		automatic=1
                cut_throttle=1
		fast=1
    		shift_up_rpm=6600
    		shift_down_rpm=2200
                 time_to_declutch=15
    time_in_neutral=10
    time_to_clutch=15
    time_to_declutch_down=15
    time_in_neutral_down=10
    time_to_clutch_down=15
  	}

  	inertia
  	{
    	engine=0.35
        final_drive=0.15
  	}

  	braking_coeff=3.6
        rolling_friction_coeff=1
	friction=0
}
gearbox
{
  gears=8
  gear0
  {
    ratio=-4.725
    inertia=0.2
  }
  gear1
  {
    ratio=5.080
    inertia=0 ;0.1
  }
  gear2
  {
    ratio=2.804
    inertia=0.02
  }
  gear3
  {
    ratio=1.783
    inertia=0.04
  }
  gear4
  {
    ratio=1.28
    inertia=0.05
  }
  gear5
  {
    ratio=1
    inertia=0.07
  }
  gear6
  {
    ratio=0.835
    inertia=0.08
  }
  gear7
  {
    ratio=8
    inertia=0.01
  }
}
differential
{
  type=1
  ratio=4.1
  inertia=0
  locking_coeff=100
  output0=2
  output1=3
}
clutch
{
  max_torque=290
}
handbrakes
{
  wheels=23
}
aero
{
	body
	{
	center=0 0.23 0
        cx=0.41
        area=2.9
	}
	wings=0
}
antirollbar
{
  count=2
  arb0
  {
    susp_left=0
    susp_right=1
    k=-3500
  }
  arb1
  {
    susp_left=2
    susp_right=3
    k=-5000
  }
}
susp_front
{
y=-0.30
z=1.36
restlen=0.38
minlen=0.10
maxlen=0.65
  k=50000 ;40000	
  bump_rate=4500
  bump_function=0	
  rebound_rate=2500
  rebound_function=0
  anti_pitch=0
  camber_change_per_m=0.2
  caster_offset=0.0
  roll_center
  {
 x=0
    y=-0.55		
    z=0
  }
}
susp_rear
{
y=-0.23
z=-1.15
restlen=0.38
minlen=0.0
maxlen=0.9
  k=60000 ;50000	
  bump_rate=5000
  bump_function=0
  rebound_rate=4500
  rebound_function=0
  anti_pitch=0
  camber_change_per_m=0.4
  roll_center
  {
    x=0
    y=-0.65		
    z=0
  }
}
susp0~susp_front
{
  x=0.77
  ; Camber change ratio; degrees of camber / degrees of wheel rotation
  camber_change_steering=0.0
  ; Bump steer; toe change in radians per meter of suspension deflection
  toe_change_per_m=0.05
}
susp1~susp_front
{
  x=-0.77
  camber_change_steering=-0.0
  toe_change_per_m=-0.05
}
susp2~susp_rear
{
  x=0.77
  toe_change_per_m=0
}
susp3~susp_rear
{
  x=-0.77
  toe_change_per_m=0
}
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
	camber=2
	lock=60
	mass=80
	inertia=4
	radius=.3804
  rolling_coeff=0.015
  max_braking=2500
  braking_factor=1
  tire_rate=250000
  width=0.235
	pacejka~pacejka
	{
	}
}
wheel_rear
{
	x=0
	y=0
	z=0
	steering=0
  powered=1
  power_gearing=2.31	;4.625*50/50/2
	camber=1
	mass=80
	inertia=4
	radius=.3804
  rolling_coeff=0.015
  max_braking=650
  max_handbrake_torque=5000
  braking_factor=1
  tire_rate=250000
  width=0.235
	pacejka~pacejka
	{
	}
}
wheel0~wheel_front
{
  toe=-0.5
  ackerman=1.1
	model
	{
		file=left.dof
	}
  	model_brake
  	{
    		file=flb.dof
  	}
  	pacejka~pacejka
  	{
  	}
}
wheel1~wheel_front
{
  toe=0.5
  ackerman=-1.1
	model
	{
		file=right.dof
	}
  	model_brake
  	{
    		file=frb.dof
  	}
  	pacejka~pacejka
  	{
  	}
}
wheel2~wheel_rear
{
  toe=0.0
	model
	{
		file=left.dof
	}
  	model_brake
  	{
    		file=flb.dof
  	}
  	pacejka~pacejka
  	{
  	}
}
wheel3~wheel_rear
{
  toe=-0.0
	model
	{
		file=right.dof
	}
  	model_brake
  	{
    		file=frb.dof
  	}
  	pacejka~pacejka
  	{
  	}
}
camera0
{
  name=Driver
  fov=70
  model=1
  wheels=0
  view=1
  offset
  {
    x=0.35
    y=0.52
    z=-0.035
  }
  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.35
    y=0.47
    z=-0.031
  }
  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.35
    y=0.47
    z=-0.031
  }
  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=0
  wheels=0
  view=0
  offset
  {
    x=0.2
    y=0.6
    z=-0.13
  }
  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=Driver2
  fov=70
  model=1
  wheels=0
  view=1
  offset
  {
    x=0.35
    y=0.47
    z=0.35
  }
  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
  }
}
camera9
{
	name=Bonnet
	fov=60
	model=0
	wheels=0
	view=0
	offset
	{
		x=0.356
    		y=-0.75
    		z=0.55
	}
	follow
	{
		pitch=1
		yaw=1
		roll=1
	}
	angle
	{
		x=5
		y=180
		z=0
	}
}
audio
{
  skid
  {
    volume=0.5
    sample=skid.wav
  }
  horn
  {
    sample=horn.wav
  }
  shiftout
  {
    ;sample=shiftout.wav
  }
  shiftin
  {
    ;sample=shiftin.wav
  }
  acc_all
  {
    attack=2600
    decay=2600
    min_vol=0
    max_vol=5
  }
  accelerate_out
  {
    smp0~audio.acc_all
    {
      sample=idle.wav
      volume=0.45
      min=300
      max=1500
      attack=50
      decay=800
      natural=800
    }
    smp1~audio.acc_all
    {
      sample=ajv8_2000.wav
      min=1000
      max=7000
      natural=4000
      attack=1000
      decay=1000
      volume=0.45
}
    smp2~audio.acc_all
    {
      sample=7000.wav
      min=1000
      max=7000
      natural=5500
      attack=1000
      decay=1000
      volume=0.5
}
smp3~audio.acc_all
    { 
      sample=engine2.wav 
      volume=0.09
      min=5000
      max=10000
      natural=1900 
      attack=4000
      attack=4000
}
     }  
  decelerate_out
  {
    smp0~audio.acc_all
    {
      sample=idle.wav
      volume=0.45
      min=300
      max=1500
      attack=50
      decay=800
      natural=800
    }
    smp1~audio.acc_all
    {
      sample=ajv8_2000.wav
      min=1000
      max=7000
      natural=4000
      attack=1000
      decay=1000
      volume=0.45
}
    smp2~audio.acc_all
    {
      sample=7000decc.wav
      min=1000
      max=7000
      natural=5500
      attack=1000
      decay=1000
      volume=0.5
}
smp3~audio.acc_all
    { 
      sample=engine2.wav 
      volume=0.09
      min=5000
      max=10000
      natural=1900 
      attack=4000
      attack=4000
}
}       
  accelerate_in
  {
    smp0~audio.acc_all
    {
      sample=idle.wav
      volume=0.25
      min=300
      max=1500
      attack=50
      decay=800
      natural=800
    }
    smp1~audio.acc_all
    {
      sample=ajv8_2000.wav
      min=1000
      max=7000
      natural=4000
      attack=1000
      decay=1000
      volume=0.25
}
    smp2~audio.acc_all
    {
      sample=7000.wav
      min=1000
      max=7000
      natural=5500
      attack=1000
      decay=1000
      volume=0.3
}
smp3~audio.acc_all
    { 
      sample=engine2.wav 
      volume=0.02
      min=5000
      max=10000
      natural=1900 
      attack=4000
      attack=4000
}
  }  
  decelerate_in
  {
    smp0~audio.acc_all
    {
      sample=idle.wav
      volume=0.25
      min=300
      max=1500
      attack=50
      decay=800
      natural=800
    }
    smp1~audio.acc_all
    {
      sample=ajv8_2000.wav
      min=1000
      max=7000
      natural=4000
      attack=1000
      decay=1000
      volume=0.25
}
    smp2~audio.acc_all
    {
      sample=7000decc.wav
      min=1000
      max=7000
      natural=5500
      attack=1000
      decay=1000
      volume=0.3
}
smp3~audio.acc_all
    { 
      sample=engine2.wav 
      volume=0.02
      min=5000
      max=10000
      natural=1900 
      attack=4000
      attack=4000
}
  }  
  gearwhine
  {
    smp0~audio.acc_all
    {
      sample=tw-extonhigh.wav
      volume=0.05
      min=1
      max=2
      decay=1000
      natural=500
    }
  }
  wind
  {
    smp0~audio.acc_all
    {
      sample=wind.wav
      volume=0.8
      min=11
      max=150
      attack=10
      natural=50
    }
  }
}
abs
{
   max_velocity_ratio=1.2
   min_velocity_ratio=1.15
   enable=1
}
traction_control
{
  enable=1
  	min_velocity=1.667
  	max_velocity_ratio=1.050
  	min_velocity_ratio=1.500

}