car
{
  name=Chevrolet Vectra GT-X
  year=2008
  credits=Converted by AMGFan. Performance: 0-60 mph: 11.5s top 189km/h
	comments=GM 2.0 8v Familia II, 128hp@5200rpm, 19,6kgfm@2400rpm ( 192 Nm)
  id=vectragtx
  version=088b
  wheels=4
  shadow
  {
    texture=shadow.tga
    width=2.4
    length=4.8
    offset_z=0
    offset=0
  }
	cg
	{
		x=0
		y=-0.16
		z=0.33
	}
	ff_factor=0.25
}

body
{
	x=0
	y=0
	z=0
	mass=1100  ;(wheels mass=31.6kg + engine=120kg + driver=80kg + body=1071)
	inertia
	{
            x=1900
            y=2100
            z=460
	}
	width=1.85
	height=1.262
	length=4.219
	manual_box=1
	model
	{
		file=vectra.dof
	}
	model_incar
	{
		file=vectra.dof
	}
	model_light_l
	{
		file=lights.dof
	}
	model_braking_l
	{
		file=brakes.dof
	}
 model_lightroad_l
 {
  file=lightsin.dof
 }
  model_reverse_l
  {
    ; Reverse gear indicators
    file=re.dof
  }
  model_reverse_r
  {
    file=re.dof
}
}
lights
{
  ; Projected lights
  light0
  {
    texture=light1.tga
    ; Field of view (vertical)
    fov=35
    ; Aspect (horizontal)
    aspect=4.5
    ; Distance to car
    z=0.2
    ; Pitching with respect to car (in degrees)
    pitch=0
    ; Fall-off distance
    far=100
  }
  light1
  {
    texture=light0.tga
    ; Field of view (vertical)
    fov=25.0
    ; Aspect (horizontal)
    aspect=1
    ; Distance to car
    z=2
    ; Pitching with respect to car (in degrees)
    pitch=10
  }
}
flares
{
  ; Front lights
  flare0
  {
    pos=-0.66 0.03 1.78
    color=1.0 0.6 0.4
	normal=0.05 0 1
	z_offset=-2500
	size_factor=1.2
	intensity=1
        hor_scale=1
  }
  flare1
  {
    pos=0.66 0.03 1.78
    color=1.0 0.6 0.4
	normal=0.05 0 1.01
	z_offset=-2500
	size_factor=1.2
	intensity=1
        hor_scale=1
  }
  flare2
  {
    pos=-0.66 0.03 1.78
    color=1.0 0.6 0.4
	normal=0.05 0 1
	z_offset=-2500
	size_factor=1.2
	intensity=1
        hor_scale=1
  }
  flare3
  {
    pos=0.66 0.03 1.78
    color=1.0 0.6 0.4
	normal=0.05 0 1.01
	z_offset=-2500
	size_factor=1.2
	intensity=1
        hor_scale=1
  }
  flare4
  {
    pos=-0.70 0.1 1.67
    color=1.0 0.3 0.2
	normal=0.05 0 1
	z_offset=-2500
	size_factor=0.8
	intensity=0.55
        hor_scale=1
  }
  flare5
  {
    pos=0.70 0.1 1.67
    color=1.0 0.3 0.2
	normal=0.05 0 1.01
	z_offset=-2500
	size_factor=0.8
	intensity=0.55
        hor_scale=1
  }
  flare6
  {
    pos=0.70 0.1 1.67
    color=1.0 0.3 0.2
	normal=0.05 0 1
	z_offset=-2500
	size_factor=0.8
	intensity=0.55
        hor_scale=1
  }
  flare7
  {
    pos=-0.70 0.1 1.67
    color=1.0 0.3 0.2
	normal=0.05 0 1.01
	z_offset=-2500
	size_factor=0.8
	intensity=0.55
        hor_scale=1
  }
  ; Front anti-fog lights
  flare8
  {
    pos=-0.66 -0.29 1.99
    color=1.0 0.6 0.4
	normal=0.05 0 1
	z_offset=-2500
	size_factor=0.9
	intensity=0.9
        hor_scale=0.9
  }
  flare9
  {
    pos=0.66 -0.29 1.99
    color=1.0 0.6 0.4
	normal=0.05 0 1
	z_offset=-2500
	size_factor=0.9
	intensity=0.9
        hor_scale=0.9
  }
  flare10
  {
    pos=-0.66 -0.29 1.99
    color=1.0 0.6 0.4
	normal=0.05 0 1
	z_offset=-2500
	size_factor=0.9
	intensity=0.9
        hor_scale=0.9
  }
  flare11
  {
    pos=0.66 -0.29 1.99
    color=1.0 0.6 0.4
	normal=0.05 0 1
	z_offset=-2500
	size_factor=0.9
	intensity=0.9
        hor_scale=0.9
  }
  ; Rear anti-fog lights
  flare12
  {
    pos=0.56 0.12 -1.91
	normal=-0.05 0 -0.5
	color=1.0 0.3 0.0
	size_factor=1
	intensity=0.7
	z_offset=-1000
  }
  flare13
  {    
    pos=0.56 0.12 -1.91
	normal=-0.05 0 -0.5
	color=1.0 0.3 0.0
	size_factor=1
	intensity=0.7
	z_offset=-1000
  }
  ; Brake lights
  flare14
  {
    rule=brake
    pos=-0.72 0.15 -1.83
	normal=0 0 -1
	color=1.0 0.0 0.0
	size_factor=0.7
	intensity=0.5
	z_offset=-1000
  }
  flare15
  {
    rule=brake
    pos=0.72 0.15 -1.83
	normal=0 0 -1
	color=1.0 0.0 0.0
	size_factor=0.7
	intensity=0.5
	z_offset=-1000
  }
  flare16
  {
    rule=brake
    pos=-0.72 0.15 -1.83
	normal=0 0 -1
	color=1.0 0.0 0.0
	size_factor=0.7
	intensity=0.5
	z_offset=-1000
  }
  flare17
  {
    rule=brake
    pos=0.72 0.15 -1.83
	normal=0 0 -1
	color=1.0 0.0 0.0
	size_factor=0.7
	intensity=0.5
	z_offset=-1000
  }
  ;3rd Brake lights
  flare18
  {
    rule=brake
    pos=0 0.66 -1.62
	normal=0 0 -1
	color=1.0 0.0 0.0
	size_factor=0.5
	intensity=0.5
	z_offset=-1000
  }
  flare19
  {
    rule=brake
    pos=0 0.66 -1.62
	normal=0 0 -1
	color=1.0 0.0 0.0
	size_factor=0.5
	intensity=0.5
	z_offset=-1000
  }
}

steer
{
	x=0.375
	y=0.19
	z=0.50
	xa=18	
	lock=1080		
	linearity=0.5
	model
	{
		file=volante.dof
	}
}

engine
{
	size=0
  	mass=230
  	stall_rpm=450
  	start_rpm=1350
  	idle_rpm=1300
  	autoclutch_rpm=2500
  	max_rpm=6100

  	curve_torque=torque.crv
        ;10% loss
  	max_torque=0.9
  	idle_method=1
  	starter=1
  	starter_torque=95
  	start_stalled=1
    enable_stall=1

  jitter
  {
    amplitude=0.5
    time_min=550
    time_var=10
    frequency_min=10
    frequency_var=1
  }
  shifting
  {
    automatic=0
    shift_up_rpm=5500
    shift_down_rpm=2800
    time_to_declutch=50
    time_in_neutral=250
    time_to_clutch=10
    time_to_declutch_down=50
    time_in_neutral_down=250
    time_to_clutch_down=200
  }

 inertia
  {
    engine=0.25
    final_drive=0.1
  }
  braking_coeff=2.5
}
clutch
{
  max_torque=450
}
gearbox
{
  gears=6
  gear0
  {
    ratio=-3.31
    inertia=0.13
  }
  gear1
  {
    ratio=3.73
    inertia=0.13
  }
  gear2
  {
    ratio=1.96
    inertia=0.09
  }
  gear3
  {
    ratio=1.32
    inertia=0.07
  }
  gear4
  {
    ratio=0.95
    inertia=0.05
  }
  gear5
  {
    ratio=0.76
    inertia=0.02
  }
}

differential
{
	type=1
	ratio=3.94
	inertia=0.1
	locking_coeff=45
	output0=0
	output1=1
}

handbrakes
{
	wheels=23
}
aero
{
	body
	{
		center=0 0 0
		cx=0.31
		area=2.1
	}
	wings=1
	wing0
	{
		name=Rear spoiler
		span=1
		cord=1
		coeff_drag=0
		coeff_down=1
		center=0 -1.29 0
		angle=0
		angle_offset=1
	}
}

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.02
	z=1.29
	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.29
	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.755
	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.755
	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.755
}
susp3~susp_rear
{
	x=-0.755
}

;----------------------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.4	
  a1=-46	;ps (from pacejkaseries.txt, 205/55 R16)
  a2=1390 ;1280
  a3=2000
  a4=11
  a5=0.015
  a6=-0.25
  a7=1.0
  a8=-0.03
  a9=-0.001
  a10=-0.15
  a111=-4.32	;ps
  a112=-0.29
  a12=17.8
  a13=-2.4

  b0=1.5
  b1=-92	;ps doubled
  b2=1200
  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.12
  optimal_slipangle=0.22
}

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
{
	y=0
	z=0
	steering=1
	powered=1
	lock=60
	mass=35
	inertia=1.4
	radius=0.3135
        width=0.215		
	rolling_coeff=0.0180
	max_braking=1500
	braking_factor=1
	tire_rate=250000
	pacejka~pacejka
	{
	}
}

wheel_rear
{
	y=0
	z=0
	steering=0
	powered=0
	power_gearing=0
	mass=35
	inertia=1.35
	radius=0.3135
        width=0.215		;215/45 ZR17
	rolling_coeff=0.0180
	max_braking=600
	braking_factor=1
	max_handbrake_torque=3400
	tire_rate=230000
	pacejka~pacejka
	{
		optimal_slipratio=0.11
		optimal_slipangle=0.155
	}
}

wheel0~wheel_front
{
	x=0
	ackerman=1.1 
	toe=-0.1695
	camber=-0.2	
	model
	{
		file=lf.dof
	}
	model_brake
	{
		file=caliper_left.dof
	}
}

wheel1~wheel_front
{
	x=0
	ackerman=1.1
	toe=0.1695
	camber=-0.2
	model
	{
		file=rf.dof
	}
	model_brake
	{
		file=caliper_right.dof
	}
}

wheel2~wheel_rear
{
	x=0
	toe=-0.133
	camber=0	
	model
	{
		file=lf.dof
	}
	model_brake
	{
		file=caliper_left1.dof
	}
}

wheel3~wheel_rear
{
	x=0
	toe=0.133
	camber=0
	model
	{
		file=rf.dof
	}
	model_brake
	{
		file=caliper_right1.dof
	}
}

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

audio
{
  skid
  {
    sample=skid.wav
  }
  horn
  {
    sample=horn.wav
  }
  shiftin
  {
    sample=shiftin.wav
  }
  shiftout
  {
    sample=shiftout.wav
  }
  acc_all
  {
    attack=1000
    decay=1000
  }
  accelerate_out
  {
    volume=1
    smp0~audio.acc_all
    {
      sample=2000.wav
      min=0
      max=1250
      attack=1000
      decay=1000
      natural=1100
    }
    smp1~audio.acc_all
    {
      sample=6000.wav
      min=1500
      max=9001
      volume=0.65
      natural=5500
    }
    smp2~audio.acc_all
    {
      sample=7000decc.wav
      min=1500
      max=9001
      natural=5800
    }
  }
  decelerate_out
  {
    volume=0.9
    smp0~audio.acc_all
    {
      sample=2000.wav
      min=0
      max=1250
      attack=1000
      decay=1000
      natural=1100
    }
    smp1~audio.acc_all
    {
      sample=6000.wav
      min=1500
      max=9001
      volume=0.65
      natural=5550
    }
    smp2~audio.acc_all
    {
      sample=7000decc.wav
      min=1500
      max=9001
      natural=6000
    }
}
  accelerate_in
  {
    volume=1
    smp0~audio.acc_all
    {
      sample=2000.wav
      min=0
      max=1250
      attack=1000
      decay=1000
      natural=1100
    }
    smp1~audio.acc_all
    {
      sample=6000.wav
      min=1500
      max=9001
      volume=0.65
      natural=5500
    }
    smp2~audio.acc_all
    {
      sample=7000decc.wav
      min=1500
      max=9001
      natural=5800
    }
  }
  decelerate_in
  {
    volume=0.9
    smp0~audio.acc_all
    {
      sample=2000.wav
      min=0
      max=1250
      attack=1000
      decay=1000
      natural=1100
    }
    smp1~audio.acc_all
    {
      sample=6000.wav
      min=1500
      max=9001
      volume=0.65
      natural=5550
    }
    smp2~audio.acc_all
    {
      sample=7000decc.wav
      min=1500
      max=9001
      natural=6000
    }
}
  wind
  {
    volume=0.8
    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----------------------

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

abs
{
	max_velocity_ratio=1.1
	min_velocity_ratio=1.1
	enable=1
}


;---------------------------------------------
;Cameras
;---------------------------------------------

camera0
{
  name=Driver
  fov=70
  model=1
  wheels=0
  view=1
  offset
  {
    x=0.375
    y=0.49
    z=-0.09
  }
  offset_to
  {
    x=0.43
    y=-0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.3
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera1
{
  name=Driver, left
  fov=60
  model=1
  wheels=0
  view=1
  offset
  {
    x=0.375
    y=0.49
    z=-0.09
  }
  offset_to
  {
    x=10.43
    y=0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.3
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera2
{
  name=Driver, right
  fov=60
  model=1
  wheels=0
  view=1
  offset
  {
    x=0.375
    y=0.49
    z=-0.09
  }
  offset_to
  {
    x=-9.57
    y=0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.3
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera3
{
  name=Driver, rear
  fov=-65
  model=0
  wheels=0
  view=0
  offset
  {
    x=0.05
    y=0.49
    z=-0.09
  }
  offset_to
  {
    x=-1
    y=0.5
    z=-10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.3
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera4
{
  name=Chase
  fov=60
  model=0
  wheels=0
  view=0
  offset
  {
    x=0
    y=-0.5
    z=-5
  }
  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=-5
  }
  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=-5
  }
  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=Far
  fov=20
  model=0
  view=0
  wheels=0
  follow
  {
    pitch=0
    yaw=0
    roll=0
  }
  offset
  {
    x=0
    y=-0.5
    z=-17
  }
  angle
  {
    x=10
    y=50
    z=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
	}
}