car
{
	name=Aviva Pekoe 800cc "Exibition"
	year=2013
	credits=2o6, big thanks to Cosmo
	comments=798cm³ Single Turbo, 74HP @ 5500rpm, 95 ft/lbs @ 2000rpm
	id=aviva_pekoe_base
	version=090
	wheels=4
	physics=
	acc_factor=1
	shadow
	{
		texture=txt/shadow.tga
		width=2.2
		length=4.8
		offset_z=0
		intensity_dark=0.7
		intensity_light=0.3
	}
	cg
	{
		x=0
		; ~0.565m
		y=0
		; 62.00% total load front bias, 63.18%
		z=0
	}
	ff_factor=0.8
	ff_gain=1
	ff_damping=0
	ff_friction=0
	ff_inertia=0.4
	ff_stickfriction=0.6
}

abs
{
	enable=1
	braking_factor=1
	max_velocity_ratio=1.10
	min_velocity_ratio=1.08
	min_velocity=2
}

traction_control
{
	enable=1
	max_velocity_ratio=1.12
	min_velocity_ratio=1.119999
	min_velocity=2
}

ai
{
	cg_factor=0
	grip_factor=1
	max_velocity=1000
	rc_factor=0
	spring_lat_factor=0
	spring_dir_factor=0
	oversteer_correct=10
	understeer_correct=10
}

body
{
	; 1030kg including driver and fuel - 130kg unsprung mass
	mass=882
	inertia
	{
		x=1185
		y=1305
		z=360
	}
	model
	{
		file=city1.dof
		offset
		{
			x=0
			y=0
			z=0
		}
	}
	model_braking_l
	{
		file=rearlights.dof
	}
	model_collide
	{
		file=city1.dof
	}
	model_incar
	{
		file=city1.dof
	}
	model_light_l
	{
		file=headlights.dof
	}
	model_reverse_l
	{
		file=re.dof
	}
	length=3.625
	;
	; without mirrors
	;
  	width=1.628
	;
	; total height		1.470m
	; ground clearance	0.180m
	;
  	height=1.290
  	manual_box=0
	box_offset=0 -0.075 0
}

steer
{
	x=0.320
	y=0.210
	z=0.310
	radius=10
	xa=15
	; 3.2 turns lock-to-lock
	lock=1152
	linearity=0.781
	model
	{
		file=swheel.dof
	}
}

engine
{
	x=0
	y=0
	z=0
	size=0
	mass=0
	idle_method=1
	idle_throttle=0
	idle_rpm=830
	min_warn_rpm=5250
	max_warn_rpm=5750
	max_rpm=6500
	rev_limiter_time=200
	start_rpm=1200
	stall_rpm=500
	autoclutch=0
	autoclutch_rpm=0
	launch_control=0
	starter=1
	starter_torque=75
	start_stalled=0
	enable_stall=1
	curve_torque=crv/engine_torque_800t.crv
	max_torque=1
	braking_coeff=0.6
	braking_offset=0
	braking_torque_curve=crv/engine_braking.crv
	torque_reaction=0
	friction=0
	cylinders=4
	cylinder_angle=0
	rumble_amplitude=0
	rumble_maxrpm=6500
	inertia
	{
		engine=0.09
	}
	jitter
	{
		amplitude=0.5
		frequency_min=0
		frequency_var=10
		time_min=0
		time_var=500
	}
	shifting
	{
		automatic=0
		blip_throttle=0
		cut_throttle=0
		fast=0
		shift_up_rpm=6000
		shift_down_rpm=1500
		time_to_declutch=0
		time_in_neutral=0
		time_to_clutch=300
		time_to_declutch_down=0
		time_in_neutral_down=0
		time_to_clutch_down=400
	}
	speedlimiter
	{
		time=500
		velocity=55.556
	}
}

fuel
{
	bsfc=6.6e-5
	max=45
	type=0
}

clutch
{
	max_torque=200
}

gearbox
{
	gears=6
	gear0
	{
		ratio=-3.818
		inertia=0.12
		engine_map=1.0
	}
	gear1
	{
		ratio=4.100
		inertia=0.12
		engine_map=1.1
		warning_sound
		{
			duration=0
			freq=0
			rpm=0
		}
	}
	gear2
	{
		ratio=2.158
		inertia=0.08
		engine_map=1.2
		warning_sound
		{
			duration=0
			freq=0
			rpm=0
		}
	}
	gear3
	{
		ratio=1.345
		inertia=0.06
		engine_map=1.2
		warning_sound
		{
			duration=0
			freq=0
			rpm=0
		}
	}
	gear4
	{
		ratio=0.982
		inertia=0.04
		engine_map=1.2
		warning_sound
		{
			duration=0
			freq=0
			rpm=0
		}
	}
	gear5
	{
		ratio=0.721
		inertia=0.02
		engine_map=1.2
	}
}


differentials
{
	count=1
	diff0
	{
		type=3
  		ratio=3.867
		inertia=0.1
		friction=30
		preload=0
		power_ratio=1.105
		coast_ratio=1.105
		output0=0
		output1=1
	}
}

handbrakes
{
	wheels=23
}

aero
{
	body
	{
		center=0 0 0
		cx=0.30
		area=2.1
	}
	draft
	{
		scale_lat_front=0.08
		scale_lat_rear=0.4
		scale_lon_front=0.2
		scale_lon_rear=1.0
	}
	wings=2
	wing0
	{
		; 250N @ 200km/h
		name=front
		span=1
		cord=1
		coeff_drag=0
		coeff_down=-7.577
		center=0.000 0.000 0.855
		angle=0
		angle_offset=1
	}
	wing1
	{
		; 450N @ 200km/h
		name=rear
		span=1
		cord=1
		coeff_drag=0
		coeff_down=-13.639
		center=0.000 0.000 -1.570
		angle=0
		angle_offset=1
	}
}

antirollbar
{
	; 4.5°/g
	; 65% front bias
	count=2
	arb0
	{
		susp_left=0
		susp_right=1
		k=21784
	}
	arb1
	{
		susp_left=2
		susp_right=3
		k=5884
	}
}

susp_front
{
	y=0
	z=0.893
	restlen=0.419
	minlen=0.180
	maxlen=0.360
	warplen=0.270
	;
	; sprung corner mass		284kg
	; natural frequency		1.25Hz
	; critical damping		4613N/m/s
	;
	k=18709
	damper_curve=crv/suspension_damper_front.crv
	bumpstop_len=0.050
	bumpstop_k=100000
	bumpstop_damping=5000
	reboundstop_len=0.010
	reboundstop_k=100000
	reboundstop_damping=5000
	anti_pitch=0.45
	roll_center
	{
		x=0
		;
		; 0.100m
		;
		y=-0.475
		z=0
	}
}

susp0~susp_front
{
	x=0.705
	camber_change_per_m=0.388
	camber_change_steering=0.078
	; -7.000°
	caster_angle=0.122
	caster_offset=-0.037
	; -14.000°
	kingpin_angle=-0.244
	kingpin_offset=-0.025
	susp_y_change_per_rad=0
	toe_change_per_m=0.097
	model
	{
		file=
	}
}

susp1~susp_front
{
	x=-0.705
	camber_change_per_m=0.388
	camber_change_steering=-0.078
	; -7.000°
	caster_angle=0.122
	caster_offset=-0.037
	; -14.000°
	kingpin_angle=-0.244
	kingpin_offset=0.025
	susp_y_change_per_rad=0
	toe_change_per_m=-0.097
	model
	{
		file=
	}
}

susp_rear
{
	y=0
	z=-1.532
	restlen=0.378
	minlen=0.165
	maxlen=0.375
	warplen=0.270
	;
	; sprung corner mass		166kg
	; natural frequency		1.48Hz
	; critical damping		3164N/m/s
	;
	k=15101
	damper_curve=crv/suspension_damper_rear.crv
	bumpstop_len=0.050
	bumpstop_k=100000
	bumpstop_damping=5000
	reboundstop_len=0.010
	reboundstop_k=100000
	reboundstop_damping=5000
	anti_pitch=0.20
	roll_center
	{
		x=0
		;
		; 0.160m
		;
		y=-0.415
		z=0
	}
}

susp2~susp_rear
{
	x=0.700
	camber_change_per_m=0.083
	camber_change_steering=0
	caster_angle=0
	caster_offset=0
	kingpin_angle=0
	kingpin_offset=0
	susp_y_change_per_rad=0
	toe_change_per_m=0.042
	model
	{
		file=
	}
}

susp3~susp_rear
{
	x=-0.700
	camber_change_per_m=0.083
	camber_change_steering=0
	caster_angle=0
	caster_offset=0
	kingpin_angle=0
	kingpin_offset=0
	susp_y_change_per_rad=0
	toe_change_per_m=-0.042
	model
	{
		file=
	}
}

;
; 175/65 R15
;
pacejka
{
    	a0=1.25
    	a1=-35
    	a2=1060
    	a3=2000
    	a4=14.5
    	a5=0.015
    	a6=-0.25
    	a7=0
    	a8=-0.03
    	a9=0
    	a10=0
    	a111=0
    	a112=0
    	a12=0
    	a13=0
    	b0=1.5
    	b1=-30
    	b2=1060
    	b3=7
    	b4=350
    	b5=0.08
    	b6=0
    	b7=0.05
    	b8=-0.025
    	b9=0
    	b10=0
    	b11=0
    	b12=0
    	c0=2.45
    	c1=-3
    	c2=-3
    	c3=-0.1
    	c4=-6
    	c5=0
    	c6=0
    	c7=0.044
    	c8=-0.58
    	c9=0.18
    	c10=0.043
    	c11=0
    	c12=0
    	c13=0
    	c14=0
    	c15=0
    	c16=0
   	c17=0
	; 3130N
    	optimal_slipratio=0.097
    	optimal_slipangle=0.176
	camber_min=-99
	camber_max=99
	fz_min=0
	fz_max=1e6
	slipangle_min=-99
	slipangle_max=99
	slipratio_min=-99
	slipratio_max=99
}

wheel_front
{
	y=0
	z=0
	steering=1
	reverse_steering=0
	;
	; turning circle	10.6m
	;
	lock=57.915
	ackerman=1.2
	mass=35
	inertia=0.820
	radius=0.30425
	width=0.175
	rolling_coeff=0.009
	max_braking=1600
	max_handbrake_torque=0
	braking_factor=0.86
	inboard_brakes=0
	brake_dissipation=0.0005
	brake_heating=0.0004
	brake_max_temp=650
	tire_rate=280000
	tire_damping=100
	tire_damping_lowspeed=2500
	tire_damping_threshold=5
	load_filter_frequency=0
	noise_filter_damping=0
	noise_filter_frequency=0
	pacejka~pacejka
	{
	}
	tire_model
	{
		damping_coefficient_lat=0
		damping_coefficient_long=0
	}
}

wheel0~wheel_front
{
	x=0
	; -0.500°
	camber=2.818
	; -0.050°
	toe=-0.881
	model
	{
		file=katamaleft.dof
	}
	model_brake
	{
 		file=
	}
}

wheel1~wheel_front
{
	x=0
	; -0.500°
	camber=2.818
	; 0.050°
	toe=0.881
	model
	{
		file=katamaright.dof
	}
	model_brake
	{
 		file=
	}
}

wheel_rear
{
	y=0
	z=0
	steering=0
	reverse_steering=0
	lock=0
	ackerman=0
	mass=30
	inertia=0.791
	radius=0.30425
	width=0.175
	rolling_coeff=0.009
	max_braking=1600
	max_handbrake_torque=6000
	braking_factor=0.14
	inboard_brakes=0
	brake_dissipation=0.0005
	brake_heating=0.0004
	brake_max_temp=650
	tire_rate=280000
	tire_damping=100
	tire_damping_lowspeed=2500
	tire_damping_threshold=5
	load_filter_frequency=0
	noise_filter_damping=0
	noise_filter_frequency=0
	pacejka~pacejka
	{
		; 1920N
		optimal_slipratio=0.083
		optimal_slipangle=0.197
	}
	tire_model
	{
		damping_coefficient_lat=0
		damping_coefficient_long=0
	}
}

wheel2~wheel_rear
{
	x=0
	; -1.24°
	camber=-1.214
	; -0.250°
	toe=-0.204
	model
	{
		file=katamaleft.dof
	}
	model_brake
	{
 		file=
	}
}

wheel3~wheel_rear
{
	x=0
	; -1.24°
	camber=-1.214
	; 0.250°
	toe=0.204
	model
	{
		file=katamaright.dof
	}
	model_brake
	{
 		file=
	}
}

graphics
{
  ; Generic models
  generic
  {
    model0
    {
      file=logos.dof
    }
	model1
    {
      file=scolumn.dof
    }
	model2
    {
      file=gauges.dof
    }
	model3
    {
      file=lightbox.dof
    }
	model4
    {
      file=rearseat.dof
    }
	model5
    {
      file=frontseats.dof
    }
	model6
    {
      file=indicatorL.dof
    }
	model7
    {
      file=indicatorR.dof
    }
  }
}
animation
{
	flash_lights=0
}

damage
{
	chassis
	{
		damage=0
		damage_engine_factor=0.5
		damage_engine_from=1
		damage_engine_to=0
		damage_engine_time=5000
		damage_factor=0
		fade=0
		speed_factor=5e-5
		force_factor=2e-8
		texture_damage
		{
			enable=1
			dent_factor=1
			dent_linearity=2
			radius_factor=15
			radius_min=1
			ray_lod=0
			uv_randomness=0.2f
		}
	}
}
lights
{
	light0
	{
		aspect=6
		color=100 100 100
		far=100
		fov=25
		pitch=0
		texture=txt/light.tga
		z=1
	}
}

particles
{ 
	backfire
	{
		min_rpm=0
		max_rpm=1
		type=backfire
		exhaust0
		{
			pos=0.000 0.000 0.000
			normal=0 0 -1
		}
	}
}

wipers
{
	count=0
	;wiper0
	;{
	;	x=
	;	y=
	;	z=
	;	xa=
	;	min_angle=
	;	max_angle=
	;	model
	;	{
	;		file=
	;		scale
	;		{
	;			x=
	;			y=
	;			z=
	;		}
	;	}
	;}
}

camera0
{
	name=Driver
	fov=65
	model=1
	wheels=0
	angle
	{
		x=0
		y=0
		z=0
	}
	follow
	{
		pitch=1
		roll=1
		yaw=1
	}
	offset
	{
		x=0.4
		y=0.6
		z=-0.3
	}
	offset_to
	{
		x=0.4
		y=0
		z=10
	}
	src
	{
		mass=7
		k=3000
		damping=300
		maxdist=0.1
	}
	dst
	{
		mass=7
		k=3000
		damping=300
		maxdist=0.1
	}
}

camera1
{
  name=Driver, left
  fov=55
  model=1
  wheels=0
  view=1
  offset
  {
    x=0.38
    y=0.37
    z=-0.11
  }
  offset_to
  {
    x=10
    y=0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.2
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera2
{
  name=Driver, right
  fov=55
  model=1
  wheels=0
  view=1
  offset
  {
    x=0.38
    y=0.37
    z=-0.11
  }
  offset_to
  {
    x=-10
    y=0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.2
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera3
{
  name=Driver, rear
  fov=-65
  model=1
  wheels=0
  view=0
  offset
  {
    x=0.38
    y=0.37
    z=-0.11
  }
  offset_to
  {
    x=-1
    y=0.5
    z=-10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.1
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera4
{
	name=Rear chase
	fov=60
	model=0
	wheels=0
	angle
	{
		x=10
		y=180
		z=0
	}
	follow
	{
		pitch=0
		roll=0
		yaw=1
	}
	offset
	{
		x=0
		y=-0.8
		z=-6
	}
}
camera5
{
  name=Coté
  fov=60
  model=0
  view=0
  wheels=0
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=0
    y=-0.4
    z=-5.8
  }
  angle
  {
    x=10
    y=-90
    z=0
  }
}
camera6
{
  name=Avant
  fov=60
  model=0
  view=0
  wheels=0
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  offset
  {
    x=0
    y=0.04
    z=-6
  }
  angle
  {
    x=15
    y=0
    z=0
  }
}
camera7
{
  name=FrontWheel
  fov=60
  model=0
  view=0
  wheels=0
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=1.4
    y=0.06
    z=-0.5
  }
  angle
  {
    x=-2.25
    y=-161
    z=3.3
  }
}
camera8
{
  name=Far
  fov=45
  model=0
  view=0
  wheels=0
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=-0.42 ;-1.14 (0.72)
    y=-0.05 ;-0.85 (0.80)
    z=-5.02 ;-0.34 (-4.68)
  }
  angle
  {
    x=8
    y=227
    z=0
  }
}
camera9
{
  name=Hood
  fov=45 ;60
  model=0
  wheels=0
  view=0
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=-0.22;0.68
    y=-0.16;0.32
    z=-7.36 ;-4.68
  }
  angle
  {
    x=0 ;5
    y=32 ;-43
    z=0
  }
}

audio
{
	skid
	{
		sample=audio/skid.wav
	}
	horn
	{
		sample=horn.wav
	}
	shiftout
	{
		sample=audio/shiftout.wav
	}
	shiftin
	{
		sample=audio/shiftin.wav
	}
	acc_all
	{
		attack=1350
		decay=1350
		volume=1
	}
	accelerate_out
	{
		smp0~audio.acc_all
		{
			sample=audio\moteur\1000.wav
			min=1000
			max=1001
			natural=1100
			volume=1
		}
		smp1~audio.acc_all
		{
			sample=audio\moteur\2000.wav
			min=2000
			max=2001
			natural=2100
		}
		smp2~audio.acc_all
		{
			sample=audio\moteur\3000.wav
			min=3000
			max=3001
			natural=3100
		}
		smp3~audio.acc_all
		{
			sample=audio\moteur\4000.wav
			min=4000
			max=4001
			natural=3750
		}
		smp4~audio.acc_all
		{
			sample=audio\moteur\5000.wav
			min=5000
			max=5001
			natural=4750
		}
		smp5~audio.acc_all
		{
			sample=audio\moteur\6000.wav
			min=6000
			max=6001
			natural=5750
		}
		smp6~audio.acc_all
		{
			sample=audio\moteur\7000.wav
			min=7000
			max=7001
			natural=6750
		}
	}
	accelerate_in
	{
		smp0~audio.acc_all
		{
			sample=audio\moteur\1000_in.wav
			min=1000
			max=1001
			natural=1100
			volume=1
		}
		smp1~audio.acc_all
		{
			sample=audio\moteur\2000_in.wav
			min=2000
			max=2001
			natural=2100
			volume=0.5
		}
		smp2~audio.acc_all
		{
			sample=audio\moteur\3000_in.wav
			min=3000
			max=3001
			natural=3100
			volume=0.6
		}
		smp3~audio.acc_all
		{
			sample=audio\moteur\4000_in.wav
			min=4000
			max=4001
			natural=3750
			volume=0.8
		}
		smp4~audio.acc_all
		{
			sample=audio\moteur\5000_in.wav
			min=5000
			max=5001
			natural=4750
			volume=1
		}
		smp5~audio.acc_all
		{
			sample=audio\moteur\6000_in.wav
			min=6000
			max=6001
			natural=5750
			volume=1.1
		}
		smp6~audio.acc_all
		{
			sample=audio\moteur\7000_in.wav
			min=7000
			max=7001
			natural=6750
			volume=1.2
		}
	}
	decelerate_out
	{
		smp0~audio.acc_all
		{
			sample=audio\moteur\1000.wav
			min=1000
			max=1001
			natural=1000
			volume=1
		}
		smp1~audio.acc_all
		{
			sample=audio\moteur\2000.wav
			min=2000
			max=2001
			natural=2000
		}
		smp2~audio.acc_all
		{
			sample=audio\moteur\3000.wav
			min=3000
			max=3001
			natural=3000
		}
		smp3~audio.acc_all
		{
			sample=audio\moteur\4000.wav
			min=4000
			max=4001
			natural=3650
		}
		smp4~audio.acc_all
		{
			sample=audio\moteur\5000.wav
			min=5000
			max=5001
			natural=4650
		}
		smp5~audio.acc_all
		{
			sample=audio\moteur\6000.wav
			min=6000
			max=6001
			natural=5650
		}
		smp6~audio.acc_all
		{
			sample=audio\moteur\7000.wav
			min=7000
			max=7001
			natural=6650
		}
	}
	decelerate_in
	{
		smp0~audio.acc_all
		{
			sample=audio\moteur\1000_in.wav
			min=1000
			max=1001
			natural=1000
			volume=1
		}
		smp1~audio.acc_all
		{
			sample=audio\moteur\2000_in.wav
			min=2000
			max=2001
			natural=2000
			volume=0.5
		}
		smp2~audio.acc_all
		{
			sample=audio\moteur\3000_in.wav
			min=3000
			max=3001
			natural=3000
			volume=0.6
		}
		smp3~audio.acc_all
		{
			sample=audio\moteur\4000_in.wav
			min=4000
			max=4001
			natural=3650
			volume=0.8
		}
		smp4~audio.acc_all
		{
			sample=audio\moteur\5000_in.wav
			min=5000
			max=5001
			natural=4650
			volume=1
		}
		smp5~audio.acc_all
		{
			sample=audio\moteur\6000_in.wav
			min=6000
			max=6001
			natural=5650
			volume=1.1
		}
		smp6~audio.acc_all
		{
			sample=audio\moteur\7000_in.wav
			min=7000
			max=7001
			natural=6650
			volume=1.2
		}
	}
	gearwhine
 	{
		smp0
		{
			sample=audio/tw-extonhigh.wav
			volume=0.05
			min=1
			max=2
			decay=1000
			natural=500
		}
	}
	wind
	{
		volume=15
		pitch_scale=1.25
		pitch_offset=0
 		smp0
		{
			sample=audio/wind1.wav
			min=25
			max=26
			attack=33
			decay=33
			natural=80
		}
		smp1
		{
			sample=audio/wind2.wav
			min=50
			max=51
			attack=33
			decay=33
			natural=80
		}
		smp2
		{
			sample=audio/wind3.wav
			min=75
			max=76
			attack=33
			decay=33
			natural=80
		}
	}
}