;	---------------------------------------------------------------------
;	Make and model	:		Nissan Sulvia S13 
;	Name		:		PS13
;	Driver		:		Tommy Vercety
;	---------------------------------------------------------------------
;	Mesh		:		Ron522
;	Texturing	:		Ron522
;	Interior	:		Ron522
;	Wheels		:		Stereo & FSR
;	Driver		: 		Stecki
;	Car.ini		:		Flying Star
;	Sounds		:		Ron522
;	Shaders		:		Ron522
;	---------------------------------------------------------------------
;       Version		:		1.2 beta
car
{
  	name=Nissan Silvia S13
	year=1994
  	credits=Ron522
  	comments=SR20DET Tuned
  	id=nissans13
  	version=050f
	wheels=4
  	cg
  	{
    		x=0
		y=-0.06
		z=0.32 
  	}
	skid
	{
		sample=skid.wav
	}
  	shadow
  	{
    	 	texture=shadow.tga
     	 	length=4.8
     	 	width=2.5
     		offset_z=0
		intensity_dark=0.7
		intensity_light=0.5
  	}
	ff_factor=0.3
}
graphics
{
	shadow
	{
		model
		{
			file=nowing.dof
			use_shaders=0
		}
		intensity=0.2
	}
}

body
{
	mass=1200
	inertia
	{
        x=2527
        y=2682
        z=442
	}
	x=0
	y=0
	z=0
	restitution_coeff=0.15
	length=4.580
	width=1.695
	height=1.340
	manual_box=1
	model
	{
		file=nowing.dof
	}
}

steer
{
	x=0
	y=0
	z=0
	radius=0
	xa=0
  	lock=720
	;setup for 180?wheel, use 0.8 for 900?wheels
	linearity=0.35
}
;Chassis performance based on FSR's D1RDGP 180SX
engine
{
  mass=0
  idle_rpm=850
  max_rpm=8000
  max_torque=0.68
  curve_torque=SR20DET.crv
  autoclutch_rpm=1500
  starter=1
  starter_torque=100
  start_stalled=0
  stall_rpm=500
  start_rpm=1500
  torque_reaction=0.65
  shifting
  {
    automatic=0
    shift_up_rpm=7000
    shift_down_rpm=2500
    time_to_declutch=325
    time_to_clutch=25
  }
  inertia
  {
    engine=0.235
    final_drive=0.1
  }
  braking_coeff=3.1
  sample=r34-4k9.wav
  sample_rpm=4000
}
gearbox
{
  gears=7
  gear0
  {
    ratio=-3.28
    inertia=0.1
    linearity=0.5
  }
  gear1
  {
    ratio=3.827
    inertia=0.06
    linearity=1
  }
  gear2
  {
    ratio=2.36
    inertia=0.05
    linearity=1.1
  }
  gear3
  {
    ratio=1.685
    inertia=0.04
    linearity=1.2
  }
  gear4
  {
    ratio=1.312
    inertia=0.03
    linearity=1.4
  }
  gear5
  {
    ratio=1.00
    inertia=0.02
    linearity=1.8
  }
  gear6
  {
    ratio=0.793
    inertia=0.01
    linearity=2.6
  }
}
clutch
{
  max_torque=480
}
handbrakes
{
  wheels=23
}
differential
{
  type=1
  ratio=3.545
  inertia=0.1
  locking_coeff=245
  output0=2
  output1=3
}
aero
{
  body
  {
    center=0 0 0
    cx=0.36
    area=1.94
  }
  wings=3
  wing0
  {
    name=BodyLift
    span=1
    cord=1
    coeff_drag=0
    coeff_down=-6  ; -28,7kg
    center=0 0 0
    angle=0
    angle_offset=1
  }
  wing1
  {
     name=FrontDiffuser
     span=1.5
     cord=0.11
     coeff_drag=1    ; 7,8kg
     coeff_down=5    ; 39,2kg
     center=0.0 -0.5 1.5
     angle=0
     angle_offset=10
  }
  wing2
  {
    name=Rearspoiler
    span=1.5
    cord=0.18
    coeff_drag=1    ; 25,7kg
    coeff_down=4.2  ; 108,0kg @ 240kmh
    center=0 0.3 -2.0
    angle=10
    angle_offset=10
  }

}
antirollbar
{
  count=2
  arb0
  {
    susp_left=0
    susp_right=1
    k=35800
  }
  arb1
  {
    susp_left=2
    susp_right=3
    k=31600
  }
}

susp_front    
{
  	y=0
  	z=1.43
  	restlen=0.245
  	minlen=0.08
  	maxlen=0.45
	k=85000
  	bump_rate=3000
	bump_function=3
  	rebound_rate=8000
	rebound_function=0
	anti_pitch=0.1
	camber_change_per_m=0.04
	caster_offset=-0.032
  	roll_center
  	{
    		x=0
		y=-0.42
    		z=0
  	}
}

susp0~susp_front
{
  	x=0.75
	camber_change_steering=0.15
	toe_change_per_m=0.02
}

susp1~susp_front
{
  	x=-0.75
	camber_change_steering=-0.15
	toe_change_per_m=-0.02
}

susp_rear
{
  	y=0
  	z=-1.27
  	restlen=0.227
  	minlen=0.06
  	maxlen=0.30
	k=72000
  	bump_rate=3000
	bump_function=3
  	rebound_rate=10000
	rebound_function=0
	anti_pitch=0.1
	camber_change_per_m=0.2
  	roll_center
  	{
    		x=0
		y=-0.38
    		z=0
  	}
}

susp2~susp_rear
{
  	x=0.75
	toe_change_per_m=0.015
}

susp3~susp_rear
{
  	x=-0.75
	toe_change_per_m=-0.015
}

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.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
}

wheel_front
{
  steering=1
  lock=75
  mass=25
  inertia=1.4
  radius=0.31
  width=0.21
  rolling_coeff=0.015
  tire_rate=200000
  max_braking=2600
  braking_factor=0.6
  pacejka~pacejka
  {
	a0=1.30
	a2=1350
   	a3=2200
   	b0=1.30
	b2=1550
  }
}

wheel_rear
{
  y=0
  z=0
  steering=0
  mass=22
  inertia=1.4
  radius=0.31
  width=0.2
  rolling_coeff=0.015
  max_braking=1000
  braking_factor=0.4
  max_handbrake_torque=10000
  tire_rate=200000
  pacejka~pacejka                         
  {
	a0=1.30
	a2=1350
   	a3=2200
	b0=1.35
	b2=1500
  }
}

wheel0~wheel_front
{
	x-=0
	toe=0.0
	ackerman=1.1
        camber=-2.2
	model
	{
		file=work_l.dof
	}
	model_brake
	{
		file=caliper_lf.dof
		offset
		{
		x=0.0
		}
	}
}

wheel1~wheel_front
{
	x=0
	toe=-0.00
	ackerman=-1.1
	camber=-2.2
	model
	{
		file=work_r.dof
	}
	model_brake
	{
		file=caliper_rf.dof
		offset
		{
		x=-0.0
		}
	}
}

wheel2~wheel_rear
{
	x=0
	toe=-0
	camber=-4
	model
	{
		file=work_l.dof
	}
	model_brake
	{
		file=caliper_lr.dof
		offset
		{
		x=0.0
		}
	}
}

wheel3~wheel_rear
{
	x=0
	toe=0
	camber=-4
	model
	{
		file=work_r.dof
	}
	model_brake
	{
		file=caliper_rr.dof
		offset
		{
		x=-0.0
		}
	}
}

audio
{
	skid
	{
		sample=skid.wav
		volume=10
	}
	acc_all
	{
		attack=1000
		decay=1000
	}
	accelerate_out
	{
		smp0~audio.acc_all
		{
			sample=RB.wav
			min=1
			max=10000
			natural=4900
			volume=1
		}		
		smp1~audio.acc_all
   		{
      			sample=turbo.wav
			min=3700
			max=7000
			attack=1000
			decay=1000
			natural=7000
			volume=3
   		}
		smp2~audio.acc_all
   		{
      			sample=backfire.wav
			min=8100
			max=8500
			natural=22000
			volume=1
   		}
	}
	decelerate_in
	{
		smp0~audio.acc_all
		{
			volume=1
			sample=RB.wav
			min=1
			max=10000
			natural=4900
		}
		smp1~audio.acc_all
		{
			sample=wastegate.wav
			min=4500
			max=7000
			attack=1000
			decay=1000
			natural=7000
			volume=0.5
		}
		smp2~audio.acc_all
   		{
      			sample=backfire.wav
			min=8100
			max=8500
			natural=22000
			volume=1
   		}
	}
	wind
	{
		volume=1
		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
		}
	}
}


camera0
{
	name=ChaseNormal
	fov=45
	model=0
	wheels=0
	view=0
	offset
	{
		x=0
		y=2
		z=-7
	}
	follow
	{
		pitch=0
		yaw=0
		roll=0
	}
	src
	{
		mass=4
		k=500
		damping=100
		maxdist=1
	}
	angle
	{
		x=10
		y=180
		z=0
	} 
}

camera1
{
	name=ChaseClose
	fov=60
	model=0
	wheels=0
	view=0
	offset
	{
		x=0
		y=1.5
		z=-5
	}
	follow
	{
		pitch=0
		yaw=0
		roll=0
	}
	src
	{
		mass=0
		k=0
		damping=0
		maxdist=0
	}
	angle
	{
		x=5
		y=180
		z=0
	} 
}

camera2
{	
	name=inside
	fov=75
	model=1
	wheels=0
	view=0
	offset
	{
		x=0.4
		y=0.6
		z=0.15
	}
	angle
	{
		x=0
		y=180
		z=0
	}
	follow
	{
		pitch=1
		yaw=1
		roll=1
	}
	offset_to
	{
		x=0
		y=0
		z=5
	}
	src
	{
		mass=2
		k=3000
		damping=500
		maxdist=0.01
	}
	dst
	{
		mass=0
		k=0
		damping=0
		maxdist=0
	}
}

camera3
{
	name=Hood
	fov=65
	model=0
	wheels=0
	view=0
	offset
	{
		x=0
		y=-1
		z=0.4
	}
	angle
	{
		x=10
		y=180
		z=0
	}
	follow
	{
		pitch=1
		yaw=1
		roll=1
	}
}

camera4
{
	name=FrontBumper
	model=2
	wheels=2
	view=2
	fov=75
	offset
	{
		x=0
		y=-0.0
		z=2.3
	}
	follow
	{
		pitch=1
		yaw=1
		roll=1
	}
	angle
	{
		x=2
		y=180
		z=0
	}
}

camera5
{
	name=RearBumper
	model=2
	wheels=2
	view=2
	fov=75
	offset
	{
		x=0
		y=-0.0
		z=2.3
	}
	follow
	{
		pitch=1
		yaw=1
		roll=1
	}
	angle
	{
		x=2
		y=0
		z=0
	}
}

camera6
{
	name=Roof
	fov=80
	model=0
	wheels=0
	view=0
	offset
	{
		x=0
		y=-1.2
		z=-0.6
	}
	angle
	{
		x=10
		y=180
		z=0
	}
	follow
	{
		pitch=1
		yaw=1
		roll=1
	}
}

camera7
{
	name=Side
	fov=80
	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
	}
}

camera8
{
	name=Wing
	fov=70
	model=0
	wheels=0
	view=0
	offset
	{
		x=-1.1
		y=-0.7
		z=-2.0
	}
	angle
	{
		x=0
		y=170
		z=0
	}
	follow
	{
		pitch=1
		yaw=1
		roll=1
	}
}

camera9
{
   	offset
   	{
      		x=0.00
      		y=0.00
     		z=-5.00
   	}
   	angle
   	{
      		x=-5.00
      		y=200.00
     		z=-0.00
   	}
   	follow
   	{
      		pitch=0
      		yaw=0
     		roll=0
   	}
   	fov=45
  	view=1
	name=Rear
}