car
{
	name=Ford Mondeo 2.0 TDCI (Wagon)
	year=2018
        credits=Converted By Arouca21;Model By GTA V
        comments=Viatura Médica de Emergência e Reanimação 02
	id=fordmodeotdciwagon
        version=090b
	wheels=4
	skid
	{
		sample=skid.wav
	}
	shadow
	{
		texture=shadow.tga
		width=0.1
		length=0.35
	}
	cg
	{
		x=0
		y=-0.068	;1444mm high, 38% of roof height ~ 55cm CofG
		z=0.2	;59/41
	}
	ff_factor=0.25
}

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

body
{
	x=0
	y=0
	z=0
	mass=1327
	inertia
	{
		x=1850
		y=2100
		z=520
	}
	restitution_coeff=0.1
	width=1.698
	height=1.447
	length=4.438
	manual_box=1
	model
	{
		file=body.dof
	}
	model_incar
	{
		file=body.dof
	}
	model_braking_l
	{
		file=stop.dof
	}
	model_light_l
	{
		file=lights.dof
       	}
 model_lightroad_l
 {
  file=lightsin.dof
 }
model_reverse_l
  {
    file=re.dof
  }
}
lights
{
  ; Projected lights
  light0
  {
    texture=light.tga
    ; Field of view (vertical)
    fov=35
    ; Aspect (horizontal)
    aspect=5
    ; Distance to car
    z=1.3
    ; Pitching with respect to car (in degrees)
    pitch=0
    ; Fall-off distance
    far=100
  }
  light1
  {
    texture=light.tga
    ; Field of view (vertical)
    fov=25.0
    ; Aspect (horizontal)
    aspect=1.3
    ; Distance to car
    z=1.3
    ; Pitching with respect to car (in degrees)
    pitch=10
  }
}
steer
{
	x=0.4
	y=0.30
	z=0.42
	xa=15.9
	lock=1080
	linearity=0.25
	model
	{
		file=volante.dof
		lod0_z=0
		lod_out=2
	}
}

engine
{
  mass=0
  	stall_rpm=450
  	start_rpm=750
  	idle_rpm=750
  	autoclutch_rpm=1600
  	max_rpm=5001

  	curve_torque=torque.crv
  	max_torque=320
        torque_reaction=1
  	idle_method=1
  	starter=1
  	starter_torque=95
  	start_stalled=1
    enable_stall=1
  shifting
  {
    automatic=0
    shift_up_rpm=4250
    shift_down_rpm=1350
    time_to_declutch=20
    time_in_neutral=0
    time_to_clutch=20
    time_to_declutch_down=20
    time_in_neutral_down=0
    time_to_clutch_down=20
  }
  inertia
  {
    engine=0.21 ;0.638
  }
  braking_coeff=2.25
  braking_torque_curve=C_A.crv
  rolling_friction_coeff=0
  friction=0
}
jitter
{
  amplitude=0
  time_min=100
  time_var=500
  frequency_min=4
  frequency_var=9
}
speedlimiter
{
  velocity=22.22
  time=10
}
jitter
{
  amplitude=0
  time_min=100
  time_var=500
  frequency_min=4
  frequency_var=9
}
fuel
{
  type=0  ;0=essence / 1=diesel
  max=07.10
  bsfc=4.6e-5 ;4.06e-5
}
clutch
{
  max_torque=352
}
gearbox
{
  gears=7
  gear0
  {
    ratio=-2.91
    inertia=0.2
  }
  gear1
  {
    ratio=2.95
    inertia=0.1
  }
  gear2
  {
    ratio=1.7
    inertia=0.08
  }
  gear3
  {
    ratio=1.16
    inertia=0.06
  }
  gear4
  {
    ratio=0.88
    inertia=0.04
  }
  gear5
  {
    ratio=0.73
    inertia=0.02
  }
gear6
  {
    ratio=0.66
    inertia=0.02
  }
}
handbrakes
{
  wheels=23
}
differential
{
  type=0
  ratio=4.4
  inertia=0.01
  locking_coeff=0
  friction=58
  output0=0
  output1=1
}
abs
{
  enable=1
  max_velocity_ratio=1.07
  min_velocity_ratio=1.02
  min_velocity=3.61  :13km/h
}
traction_control
{
  enable=1
  max_velocity_ratio=1.04
  min_velocity_ratio=1.035
  min_velocity=3.61
}
aero
{
	body
	{
		center=0 0 0
		cx=0.36
		area=1.9
	}
	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
	z=1.31
	restlen=0.451			;293	395kg
	minlen=0.22
	maxlen=0.46
	k=27000			;@ static load and 1.316 NF SR
	bump_rate=1350		;0.7	1944
	rebound_rate=4600	;0.7	6531
	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.552	;60mm
		z=0
	}
}

susp_rear
{
	y=0
	z=-1.31
	restlen=0.420			;305	275kg
	minlen=0.2
	maxlen=0.43
	k=24500			;@ static load and 1.502 NF SR
	bump_rate=1400		;0.75	1852
	rebound_rate=4200	;0.8	5191
	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.504	;120mm
		z=0
	}
}

susp0~susp_front
{
	x=0.72
	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.72
	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.72
}
susp3~susp_rear
{
	x=-0.72
}

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

tire_model_front
{
	damping_predict_lat=0
	damping_predict_long=0
}
tire_model_rear
{
	damping_predict_lat=0
	damping_predict_long=0
}
pacejka
{
	a0=1.25
	a1=-35
	a2=1200
	a3=2000
	a4=8
	a5=0.015
	a6=-0.25
	a7=0.1
	a8=-0.03
	a9=-0.001
	a10=-0.15
	a111=-8.5
	a112=-0.29
	a12=17.8
	a13=-2.4
	b0=1.5
	b1=-70
	b2=1300
	b3=20
	b4=325
	b5=0.08
	b6=0
	b7=0.05
	b8=-0.025
	b9=0
	b10=0
	b11=0
	b12=0
	c0=2.2
	c1=-4
	c2=-3
	c3=-1
	c4=-7
	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.14
	c15=-1.029
	c16=0.27
	c17=-1.1

	optimal_slipratio=0.11
	optimal_slipangle=0.145
}

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
}

;----------------------wheels----------------------
;Wheel front:

wheel_front
{
	y=0.03
	z=0
	powered=1
  	steering=1
	reverse_steering=0
	lock=69
	ackerman=1.215
	mass=20
	inertia=1.0
	radius=0.349
	rolling_coeff=0.015
	friction_road=1
	max_braking=1500
	braking_factor=1
	inboard_brakes=0
	tire_rate=175000
	pacejka~pacejka
	{
	}
}

wheel0~wheel_front
{
	x=0
	toe=-0.98
	camber=1.98
    	model
  	{
    		file=left.dof
  	}
}

wheel1~wheel_front
{
  	x=0
  	toe=0.98
  	camber=1.98
    	model
  	{
    		file=right.dof
  	}
}

wheel_rear
{
	y=0.03
	z=0
	powered=0
	steering=0
	reverse_steering=0
	lock=0
	mass=20
  	inertia=1.0
  	radius=0.349
  	rolling_coeff=0.015
  	friction_road=1
  	max_braking=800
  	max_handbrake_torque=1500
  	braking_factor=1
	inboard_brakes=0
  	tire_rate=175000
  	pacejka~pacejka
  	{
  	}
}

wheel2~wheel_rear
{
  	x=0
  	toe=-0.080
  	camber=-0.035
    	model
  	{
    		file=left.dof
  	}
}

wheel3~wheel_rear
{
  	x=0
  	toe=0.080
  	camber=-0.035
    	model
  	{
    		file=right.dof
  }
}

;	------------------ Artyfishul Intellygents -----------------
     
ai
{
	grip_factor=1.1
}

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

audio
{
	skid
	{
		sample=Skid.wav
		sample2=skid.wav
	}
	horn
	{
		sample=Horn.wav
	}
	acc_all
	{
		attack=2600
		decay=2600
	}

	accelerate_out
  {
    smp0~audio.acc_all
    {
      sample=audio/dw10/idle.wav
      min=500
      max=900
      attack=0
      decay=900
      natural=750
      volume=2
    }
    smp1~audio.acc_all
    {
      sample=audio/dw10/2250.wav
      min=1750
      max=2250
      attack=1250
      decay=750
      natural=2250
      volume=2
    }
    smp2~audio.acc_all
    {
      sample=audio/dw10/3000.wav
      min=2750
      max=3000
      attack=750
      decay=1000
      natural=3000
      volume=2
    }
    smp3~audio.acc_all
    {
      sample=audio/dw10/4000.wav
      min=3000
      max=6000
      attack=1500
      decay=1000
      natural=4000
      volume=2
    }
	smp4~audio.acc_all
    {
      sample=audio/turbo.wav
      min=2000
      max=3000
      attack=500
      decay=1500
      natural=290
      volume=0.10
    }
  }
  decelerate_out
  {
    smp0~audio.acc_all
    {
      sample=audio/dw10/idle.wav
      min=500
      max=900
      attack=0
      decay=900
      natural=750
      volume=2
    }
    smp1~audio.acc_all
    {
      sample=audio/dw10/2250.wav
      min=1750
      max=2250
      attack=1250
      decay=750
      natural=2250
      volume=1.0
    }
    smp2~audio.acc_all
    {
      sample=audio/dw10/3000.wav
      min=2750
      max=3000
      attack=750
      decay=1000
      natural=3000
      volume=1.0
    }
    smp3~audio.acc_all
    {
      sample=audio/dw10/4000.wav
      min=3000
      max=6000
      attack=1500
      decay=1000
      natural=4000
      volume=1.0
    }
	smp4~audio.acc_all
    {
      sample=audio/turbo.wav
      min=2000
      max=3000
      attack=500
      decay=1500
      natural=290
      volume=0
    }
  }
   accelerate_in
  {
    smp0~audio.acc_all
    {
      sample=audio/dw10/idle_in.wav
      min=500
      max=900
      attack=0
      decay=900
      natural=750
      volume=2
    }
    smp1~audio.acc_all
    {
      sample=audio/dw10/2250_in.wav
      min=1750
      max=2250
      attack=1250
      decay=750
      natural=2250
      volume=2
    }
    smp2~audio.acc_all
    {
      sample=audio/dw10/3000_in.wav
      min=2750
      max=3000
      attack=750
      decay=1000
      natural=3000
      volume=2
    }
    smp3~audio.acc_all
    {
      sample=audio/dw10/4000_in.wav
      min=3000
      max=6000
      attack=1500
      decay=1000
      natural=4000
      volume=2
    }
	smp4~audio.acc_all
    {
      sample=audio/turbo.wav
      min=2000
      max=3000
      attack=500
      decay=1500
      natural=290
      volume=0.01
    }
  }
   decelerate_in
  {
    smp0~audio.acc_all
    {
      sample=audio/dw10/idle_in.wav
      min=500
      max=900
      attack=0
      decay=900
      natural=750
      volume=2
    }
    smp1~audio.acc_all
    {
      sample=audio/dw10/2250_in.wav
      min=1750
      max=2250
      attack=1250
      decay=750
      natural=2250
      volume=1
    }
    smp2~audio.acc_all
    {
      sample=audio/dw10/3000_in.wav
      min=2750
      max=3000
      attack=750
      decay=1000
      natural=3000
      volume=1
    }
    smp3~audio.acc_all
    {
      sample=audio/dw10/4000_in.wav
      min=3000
      max=6000
      attack=1500
      decay=1000
      natural=4000
      volume=1
    }
	smp4~audio.acc_all
    {
      sample=audio/turbo.wav
      min=2000
      max=3000
      attack=500
      decay=1500
      natural=290
      volume=0
    }
  }
}
;---------------------------------------------
;Cameras
;---------------------------------------------

camera0
{
  offset
  {
    x=0
    y=-0.6
    z=-5.5
  }
  angle
  {
    x=10
    y=180
    z=0
  }
  name=Chase Far
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
}
camera1
{
  offset
  {
    x=0.42
    y=-0.5
    z=0.42
  }
  angle
  {
    x=5
    y=180
    z=0
  }
  name=DriverLeft
  fov=65
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
}
camera2
{
  offset
  {
    x=-0.42
    y=-0.5
    z=0.42
  }
  angle
  {
    x=5
    y=180
    z=0
  }
  name=DriverRight
  fov=65
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
}
camera3
{
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=0
    y=-0.6
    z=1.4
  }
  angle
  {
    x=4
    y=180
    z=0
  }
  name=Inside Right Driver
  fov=70
}
camera4
{
  offset
  {
    x=-0.4
    y=0.45
    z=-7.5
  }
  angle
  {
    x=16
    y=130
    z=0.25
  }
}
camera5
{
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  offset
  {
    x=0.48
    y=0.50
    z=-3.9
  }
  angle
  {
    x=15
    y=-50
    z=2.5
  }
  name=Wheels
  fov=65
}
camera6
{
  follow
  {
    pitch=1
    yaw=1
    roll=0
  }
  offset
  {
    x=-0.25
    y=0.75
    z=-4.8
  }
  angle
  {
    x=23
    y=-360
    z=20
  }
  fov=60
}
camera7
{
  offset
  {
    x=1.4
    y=0
    z=-0.6
  }
  angle
  {
    x=-2
    y=-160
    z=3
  }
  follow
  {
    pitch=0
    yaw=1
    roll=1
  }
  fov=60
}
camera8
{
  offset
  {
    x=0
    y=0
    z=-5
  }
  angle
  {
    x=2
    y=-130
    z=3
  }
  follow
  {
    pitch=0
    yaw=1
    roll=1
  }
  fov=65
}
camera9
{
  name=Driver
  fov=65
  model=0
  wheels=0
  view=2
  name=Inside
  fov=60

  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=0.38  ;leftright
    y=0.54  ;updown
    z=-0.30  ;frontback
  }
  offset_to
  {
    x=0
    y=0
    z=10
  }
  angle
  {
    x=1.000000
    y=180.000000
    z=0.000000
  }
  src
  {
    mass=4
    k=1200
    damping=160
    maxdist=0.11
  }
  dst
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
}
