car
{
  name=toyota sprinter trueno
  year=Ano:1986
  credits=
  comments=
  id=toyotasprintertrueno
  version=090
  wheels=4
  shadow
  	{
    	 	texture=shadow.tga
     	 	length=4.2
     	 	width=1.9
      		offset_z=0
		intensity_dark=0.5
		intensity_light=0.5
  }

	cg
	{
		x=0
		y=-0.15
		z=0.25
	}
	ff_factor=1.00
  ff_gain=0.65
  ff_damping=0
  ff_friction=1
  ff_inertia=0
  ff_stickfriction=1
}
particles
{ 
backfire
{
exhaust0
{
pos=0.42 -0.34 -1.81
normal=0 0 -1
} 
exhaust1
{
pos=0.34 -0.34 -1.81
normal=0 0 -1
}
type=backfire
; type=backfire_long
min_rpm=8000
; min_rpm=0
; suppose car comes from 9000 rpm for example. Then backfiring can happen when max_rpm is reached
max_rpm=8300
; max_rpm=12000
; high backfire likeliness for rally cars
likeliness_percentage=130
; likeliness_percentage=100
}
}

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

    		}
	}
}

body
{
	x=0
	y=0
	z=0
	mass=725 
	inertia
	{
            x=1400
            y=1600
            z=250
	}
	x=0
	y=0
	z=0
	restitution_coeff=0.15
	length=0
	width=0
	height=0
	manual_box=1
	model
	{
		file=body.dof
	}
	model_incar
	{
		file=body.dof
	}
	model_light_l
	{
		file=luzes.dof
	}
	model_braking_l
	{
		file=luztravao.dof
	}
 model_lightroad_l
 {
  file=lightsin.dof
 }
  model_reverse_r
  {
    file=re.dof
    }
  }
}

steer
{
	x=0.38
	y=0.07
	z=0.38
	xa=15.9		
	lock=1080		
	linearity=0.25
	model
	{
		file=volante.dof
	}
}

engine
{
  	mass=130
  	max_rpm=7700
  	idle_rpm=800
  	stall_rpm=500
  	start_rpm=750
  	autoclutch_rpm=2000
  	starter=1
  	starter_torque=120
  	start_stalled=0
  	curve_torque=torque 4A-GE 16V.crv
  	max_torque=0.8
  	torque_reaction=0.2
  	shifting
  	{
    		automatic=0
    		shift_up_rpm=7000
    		shift_down_rpm=3500
    		time_to_declutch=100
		time_in_neutral=100
    		time_to_clutch=150
		time_to_declutch_down=100
		time_in_neutral_down=100
		time_to_clutch_down=250
  	}
  	inertia
  	{
    		engine=0.15
    		final_drive=0.1
  	}
  	braking_coeff=1.5
}

gearbox
{
   	gears=6
   	gear0
   	{
      		ratio=-3.484
      		inertia=0.10
		engine_map=1.00
   	}
   	gear1
   	{
      		ratio=3.587
      		inertia=0.02
		engine_map=1.00
   	}
   	gear2
   	{
      		ratio=2.022
      		inertia=0.04
		engine_map=1.00
   	}
   	gear3
   	{
      		ratio=1.384
      		inertia=0.06
		engine_map=1.25
   	}
   	gear4
   	{
      		ratio=1.100
      		inertia=0.08
		engine_map=1.50
   	}
   	gear5
   	{
      		ratio=0.861
      		inertia=0.10
		engine_map=1.75
   	}
}

clutch
{
   	max_torque=250
}

handbrakes
{
   	wheels=23
}

differential
{
  	type=1
  	ratio=4.300
	inertia=0.1
	locking_coeff=60
	output0=2
	output1=3
}

aero
{
  	body
  	{
    		center=0 0 0
    		cx=0.37
    		area=1.82
 	}
	wings=3
	wing0
	{
		name=Body Lift
	      	span=1.2
	      	cord=0.1
		angle=0
		angle_offset=1
		coeff_drag=0
		coeff_down=-4
		center=0.0 0.0 0.1
	}
	wing1
	{
		name=Front Spoiler
		span=1.4
		cord=0.4
		angle=1
		angle_offset=1
		coeff_drag=0.5
		coeff_down=5
		center=0 0.0 2.0
	}
	wing2
	{
		name=Rear Wing
	      	span=1.5
	      	cord=0.2
		angle=1
		angle_offset=1
		coeff_drag=1
		coeff_down=5
		center=0.0 0.0 -2.0
	}
}

antirollbar
{
   	count=2
   	arb0
   	{
      		susp_left=0
      		susp_right=1
      		k=40000
   	}
   	arb1
   	{
      		susp_left=2
      		susp_right=3
      		k=30000
   	}
}

susp_front
{
  	y=0.0
  	z=1.266
	restlen=0.435
  	minlen=0.385
  	maxlen=0.550
  	k=99000
  	bump_rate=3100
	bump_function=3
  	rebound_rate=6500
	rebound_function=0
	anti_pitch=0.5
	camber_change_per_m=0.317
	caster_offset=-0.03
  	roll_center
  	{
    		x=0
		;150mm, 2/3 of distance between lower control arm pivot and ground
    		y=-0.555
    		z=0
  	}
}

susp0~susp_front
{
  	x=0.6525
	camber_change_steering=0.1
	toe_change_per_m=0.04
}

susp1~susp_front
{
  	x=-0.6525
	camber_change_steering=-0.1
	toe_change_per_m=-0.04
}

susp_rear
{
  	y=0.0
  	z=-1.150
  	restlen=0.445
  	minlen=0.360
  	maxlen=0.540
  	k=73500
  	bump_rate=1600
	bump_function=3
  	rebound_rate=4100
	rebound_function=0
	anti_pitch=0.4
	camber_change_per_m=0.0
  	roll_center
  	{
    		x=0
		;300mm, center of differential casing
    		y=-0.405
    		z=0
  	}
}

susp2~susp_rear
{
  	x=0.675
}

susp3~susp_rear
{
  	x=-0.675
}

tire_model_front
{
	damping_predict_lat=0
	damping_predict_long=0
}


tire_model_front
{
	damping_predict_lat=0
	damping_predict_long=0
}

tire_model_rear
{
	damping_predict_lat=0
	damping_predict_long=0
}

pacejka
{
   	a1=-35
   	a4=10
   	a5=0.014
   	a6=-0.24
   	a7=1.0
   	a8=-0.03
   	a9=-0.0013
   	a10=-0.15
   	a111=-11
   	a112=-0.29
   	a12=17.8
   	a13=-2.4
   	b1=-70
   	b3=23.3
   	b4=400
   	b5=0.05
   	b6=0
   	b7=0.055
   	b8=-0.024
   	b9=0
   	b10=0
   	b11=0
   	b12=0
   	c0=2.2
   	c1=-3
   	c2=-3
   	c3=-1.26
   	c4=-4
   	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.04
   	c15=-1.029
   	c16=0.27
   	c17=-1.1
   	optimal_slipratio=0.1
   	optimal_slipangle=0.15
}

wheel_front
{
  	y=0
  	z=0
  	camber=-4
  	steering=1
  	powered=0
  	lock=90
	mass=30
  	inertia=1.1
  	radius=0.295
  	rolling_coeff=0.015
  	max_braking=1600
  	braking_factor=0.65
  	tire_rate=220000
  	pacejka~pacejka
  	{
		a0=1.30
		a2=1250
	   	a3=2200
   	   	b0=1.30
   		b2=1400
  	}
}

wheel0~wheel_front
{
  	x=0
  	toe=-0.2
	ackerman=1.2
  	model
  	{
    		file=left.dof
		offset
		{
			x=0.04
		}
  	}
  	model_brake
  	{
    		file=caliper_lf.dof
		offset
		{
			x=0.1
		}
  	}
}

wheel1~wheel_front
{
  	x=0
  	toe=0.2
	ackerman=-1.2
  	model
  	{
    		file=right.dof
		offset
		{
			x=-0.04
		}
  	}
  	model_brake
  	{
    		file=caliper_rf.dof
		offset
		{
			x=-0.1
		}
  	}
}

wheel_rear
{
  	y=0
  	z=0
  	camber=0.0
  	steering=0
  	powered=1
  	mass=45
  	inertia=1.1
  	radius=0.295
  	rolling_coeff=0.015
  	max_braking=1600
  	braking_factor=0.35
 	max_handbrake_torque=5000
  	tire_rate=220000
  	pacejka~pacejka
  	{
		a0=1.30
		a2=1250
	   	a3=2200
   	   	b0=1.35
   		b2=1350
  	}
}

wheel2~wheel_rear
{
  	x=0
  	toe=-0.0
  	model
  	{
    		file=left.dof
		offset
		{
			x=0.015
		}

  	}
  	model_brake
  	{
    		file=caliper_lr.dof
		offset
		{
			x=0.1
		}
  	}
}

wheel3~wheel_rear
{
  	x=0
  	toe=0.0
  	model
  	{
    		file=right.dof
		offset
		{
			x=-0.015
		}

  	}
  	model_brake
  	{
    		file=caliper_rr.dof
		offset
		{
			x=-0.1
		}
  	}
}


; AUDIO SETTINGS
; -------------------------------------------------------------

audio
{
  	skid
  	{
    		sample=skid.wav
  	}
  	acc_all
  	{
    		attack=1300
    		decay=1300
  	}
  	accelerate_out
  	{
    		volume=1.5
    		smp0~audio.acc_all
    		{
      			sample=engine1000.wav
      			min=0
      			max=1001
      			natural=1000
    		}
    		smp1~audio.acc_all
    		{
      			sample=engine2000.wav
      			min=2000
      			max=2001
      			natural=3500
    		}
     		smp2~audio.acc_all
    		{
      			sample=engine6000.wav
      			min=3000
      			max=5001
      			natural=6000
    		}
    		smp3~audio.acc_all
    		{
     			sample=engine7000.wav
      			min=6000
      			max=12000
      			natural=8000
    		}
  	}
  	decelerate_out
  	{
   		volume=0.8
    		smp0~audio.acc_all
    		{
      			sample=engine1000.wav
      			min=0
      			max=1001
     			natural=1000
    		}
    		smp1~audio.acc_all
    		{
      			sample=engine2000.wav
      			min=2000
      			max=2001
      			natural=3500
    		}
     		smp2~audio.acc_all
    		{
      			sample=engine6000.wav
      			min=3000
      			max=6001
      			natural=6000
    		}
    		smp3~audio.acc_all
    		{
      			sample=engine7000.wav
      			min=7000
     			max=12000
      			natural=8000
    		}
	}
}

; CAMERA SETTINGS
; -------------------------------------------------------------

camera0
{
  offset
  {
    x=0.0
    y=1.0
    z=-5.0
  }
  angle
  {
    x=0.000000
    y=180.000000
    z=0.000000
  }
  name=Chase Close
  follow
  {
    pitch=0
    yaw=0
    roll=0
  }
  fov=67
  model=0
  wheels=0
  view=0
  src
  {
    mass=6
    k=250
    damping=90
    maxdist=2
  }
  dst
  {
    mass=1
    k=100
    damping=70
    maxdist=2
  }
}
camera1
{
  follow
  {
    pitch=0
    yaw=0
    roll=0
  }
  offset
  {
    x=0.0
    y=-0.28751
    z=-12
  }
  angle
  {
    x=4.861111
    y=77.843800
    z=-11.322908
  }
  fov=25
  model=0
  wheels=1
  view=0
  name=Jim Seamus Cam
}
camera2

{
  follow
  {
    pitch=0
    yaw=0
    roll=0
  }
  offset
  {
    x=-0.1
    y=-0.5
    z=-6
  }
  angle
  {
    x=1.5
    y=18
    z=0
  }
  name=LowFrontAngle
  fov=50
}
camera3
{
  
	fov=60
	model=0
	wheels=2
	view=0
	follow
	{
		pitch=1
		yaw=1
		roll=1
	}
	offset
	{
		x=0.0
		y=-0.7
		z=-5
	}
	angle
	{
		x=4
		y=0
		z=0
}
camera4
{
  follow
  {
    pitch=0
    yaw=0
    roll=0
  }
  offset
  {
    x=-0.38
    y=-0.28751
    z=-4.9994
  }
  angle
  {
    x=4.861111
    y=33.853992
    z=-14.322908
  }
  fov=55
  model=0
  wheels=1
  view=0
}
}
camera5
{
	name=roda
	model=0
	wheels=0
	view=0
	offset
	{
		x=-1.2
		y=0
		z=0.5
	}
	angle
	{
		x=0
		y=170
		z=0
	}
	follow
	{
		pitch=1
		yaw=1
		roll=1
  }
  fov=60
}
camera6
{
  offset
  {
    x=0.0
    y=1.0
    z=-4.0
  }
  angle
  {
    x=0.000000
    y=130.000000
    z=0.000000
  }
  name=Chase Close
  follow
  {
    pitch=0
    yaw=0
    roll=0
  }
  fov=75
  model=0
  wheels=0
  view=0
  src
  {
    mass=6
    k=250
    damping=90
    maxdist=2
  }
  dst
  {
    mass=1
    k=100
    damping=70
    maxdist=2
  }
}
camera7
{
  follow
  {
    pitch=0
    yaw=0
    roll=0
  }
  offset
  {
    x=0.810937
    y=-0.208334
    z=-4.760015
  }
  angle
  {
    x=8.055448
    y=-405.903503
    z=0.086801
  }
  name=Front corner
}
camera8
{
  follow
  {
    pitch=0
    yaw=0
    roll=0
  }
  offset
  {
    x=1.6
    y=-0.5
    z=-10
  }
  angle
  {
    x=0
    y=-45
    z=0
  }
  fov=35
}
camera9
{
  name=Driver
  fov=70
  model=0
  wheels=0
  view=1
  offset
  {
    x=0.36
    y=0.30
    z=-0.10
  }
  offset_to
  {
    x=0.46
    y=-0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
	}
}