car
{
	name=Nysa 521 towos
	year=1970
	credits=Model and putting it all together - Siemionek, big thanks to Hierafas, MBW13, Skybh and Bumper
	comments=Nysa 521, “towos” people + cargo
	id=nysa521_t
	version=053b4
	wheels=4
	ff_factor=0.25
	skid
	{

		sample=Skid.wav
	}
	shadow
	{
		texture=shadow.tga
		width=2.079
		length=5
	}
	cg
	{
		x=0	
		y=-0.6	
		z=0.2		
	}
}
graphics
{
	intensity=0.3
	
}
body
{
	mass=1800
	inertia
	{
		x=4000
		y=4500
		z=1200
	}
	width=2.079


	height=1.937
	length=4.548
	manual_box=0
	model
	{
		file=body_t.dof
	}
	model_incar
	{
		file=body_t.dof
	}
	model_light_l
	{
		file=lights.dof
	}
	model_braking_l
	{
		file=brakes.dof
	}
}
steer
{
	x=0.4702
	y=0.2089
	z=1.266
	radius=10
	xa=45
	lock=900
      linearity=0.2 
	model
	{
		file=swheel.dof
	}
}
engine
{
	size=0
  	mass=0
                 idle_rpm=900
  	max_rpm=4500
                 curve_torque=NM.crv
  	max_torque=1		
  	torque_reaction=0.4
                 starter=1
  	starter_torque=40
  	start_stalled=1
                 stall_rpm=400
  	start_rpm=550
  	autoclutch_rpm=900
                 shifting
  	{
    		automatic=0
		fast=0

    		shift_up_rpm=3900
    		shift_down_rpm=1200


    		time_to_declutch=600
    		time_in_neutral=700
    		time_to_clutch=600

    		time_to_declutch_down=400
    		time_in_neutral_down=100
    		time_to_clutch_down=400
  	}

  	inertia
  	{
    	engine=0.4
                 final_drive=0.15

  	}

  	braking_coeff=2.4
                 rolling_friction_coeff=1
	friction=0
}
gearbox
{
	gears=4
	gear0
	{
		ratio=-3.738
		inertia=0.40
	}
	gear1
	{
		ratio=3.115		
		inertia=0.25
	}
	gear2
	{
		ratio=1.772		

		inertia=0.15
	}
	gear3
	{
		ratio=1		
		inertia=0.06
	}

}
differential
{
  type=1
  ratio=5.125
  inertia=0.2
  locking_coeff=0
  output0=2
  output1=3
}
clutch
{
  max_torque=180
}
handbrakes
{
  wheels=23
}
aero
{
	body
	{
		center=0 0.23 0
                cx=0.40
                area=2.95
	}
	wings=0
}
antirollbar
{
	count=2
	arb0
	{
		susp_left=0
		susp_right=1
		k=14000
	}
	arb1
	{
		susp_left=2
		susp_right=3
		k=8000
	}
}
susp_front
{
	y=-0.55
	z=1.6617
	restlen=0.27
	minlen=0.0
	maxlen=0.4
	k=45000
	bump_rate=3000
	rebound_rate=8500
	bump_function=0
	rebound_function=0
	anti_pitch=0.2
	camber_change_per_m=0.05
	roll_center
	{
		x=0
		y=-1.2
		z=0
	}
}
susp_rear
{
	y=-0.55

	z=-1.0348
	restlen=0.27
	minlen=0.0
	maxlen=0.4
	k=45000
	bump_rate=3000
	rebound_rate=8000
	bump_function=0
	rebound_function=0
	anti_pitch=0.2
	camber_change_per_m=0.05
	roll_center
	{
		x=0
		y=-0.9
		z=0
	}
}
susp0~susp_front
{
	x=0.654
}
susp1~susp_front
{
	x=-0.654
}
susp2~susp_rear
{
	x=0.654
}
susp3~susp_rear
{
	x=-0.654
}
tire_model_front
{
damping_predict_lat=0.572
damping_predict_long=0.023
}
tire_model_rear
{
damping_predict_lat=0.560
damping_predict_long=0.022
}

pacejka
{
   ; Lateral force
   a0=1.6
   a1=-20
   a2=1320
   a3=2100
   a4=20
   a5=0.014
   a6=-0.24
   a7=1.0
   a8=-0.03
   a9=-0.0013
   a10=-0.15
   a111=-4
   a112=-0.29
   a12=17.8
   a13=-2.4
   ; Longitudinal force
   b0=1.5
   b1=-40
   b2=1410
   b3=23.3
   b4=250
   b5=0.05
   b6=0
   b7=0.055
   b8=-0.024
   b9=0.014
   b10=0.26
   b11=-103.71
   b12=0
   ; Aligning moment
   c0=2.2
   c1=-3.9
   c2=-3.9
   c3=-1.26
   c4=-8.2
   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.14
   c15=-1.029
   c16=0.27
   c17=-1.1
   optimal_slipratio=0.11
   optimal_slipangle=0.157
}

skidding_default
{
	long_start=0.1
	long_max=1.0
	long_start_n=0.1
	long_max_n=1.0
	lat_start=0.3
	lat_max=1.0
}
wheel_front
{
	x=0
	y=0
	z=0
	steering=1
	powered=0
	camber=-0.65
	lock=61
	mass=55
	inertia=1.1
	radius=.33
	rolling_coeff=0.0175
	max_braking=2000
	braking_factor=0.75
	max_handbrake_torque=0
	tire_rate=150000
	pacejka~pacejka
	
}
wheel_rear
{
	x=0
	y=0
	z=0
	steering=0
	powered=1
	camber=-0.55
	mass=65
	inertia=1.2
	radius=.33
	rolling_coeff=0.0175
	max_braking=2000
	braking_factor=0.25
	max_handbrake_torque=3500
	tire_rate=150000
	pacejka~pacejka
	
}
wheel0~wheel_front
{
	toe=-.15
	ackerman=1.2
	model
	{
		file=left.dof
	}
}
wheel1~wheel_front
{
	toe=.15
	ackerman=-1.2
	model
	{
		file=right.dof
	}
}
wheel2~wheel_rear
{
	toe=-.0
	model
	{
		file=left.dof
	}
}
wheel3~wheel_rear
{
	toe=.0
	model
	{
		file=right.dof
	}
}
camera0
{
  name=Driver
  fov=60
  model=0
  wheels=0
  view=1
  offset
  {
    x=0.4702
    y=0.5512
    z=0.66
  }
  offset_to
  {

    x=0.43
    y=-0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.3
  }
  dst
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
}
camera1
{
  name=Driver, left
  fov=60
  model=0
  wheels=0
  view=1
  offset
  {
x=0.4702
    y=0.5512
    z=0.66
  }
  offset_to
  {
    x=10.43
    y=0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.3
  }
  dst
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
}
camera2
{
  name=Driver, right
  fov=60
  model=0
  wheels=0
  view=1
  offset
  {
x=0.4702
    y=0.5512
    z=0.66
  }
  offset_to
  {
    x=-9.57
    y=0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.3
  }
  dst
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
}
camera3
{
  name=Driver, rear
  fov=-65
  model=1
  wheels=0
  view=0
  offset
  {
    x=0
    y=0.6
    z=1.5
  }
  offset_to
  {
    x=-1

    y=0.5
    z=-10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.3
  }
  dst
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
}
camera4
{
  name=Chase
  fov=60
  model=0
  wheels=0
  view=0
  offset
  {
    x=0
    y=-0.5
    z=-7
  }
  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=-7
  }
  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=-7
  }
  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=Bumper
	fov=60
	model=2
	wheels=0
	view=0
	offset
	{
		x=0
		y=0.5
		z=2.32
	}
	follow
	{
		pitch=1
		yaw=1
		roll=1
	}
	angle
	{
		x=5
		y=180
		z=0
	}
}
camera9
{
	name=Bonnet
	fov=60
	model=0
	wheels=0
	view=0
	offset
	{
		x=0
		y=-0.4
		z=1.7
	}
	follow
	{
		pitch=1
		yaw=1
		roll=1
	}
	angle
	{
		x=5
		y=180
		z=0
	}
}

audio
{
  skid
  {
    sample=sounds/skid.wav
  }

  horn
  {
    sample=sounds/Horn.wav
  }
  throttle_off
  {
    smp0
    {
      sample=sounds/exhaust.wav
    }
  }
  accelerate_out
  {
    smp0
    {
      sample=sounds/idle.wav
      volume=2.5
      min=100
      max=1000
      attack=0
      decay=1000
      natural=900
    }
    smp1
    {
      sample=sounds/fj40-mid.wav
      volume=1.2
      min=900
      max=10000
      attack=1000
      decay=0
      natural=4000
    }
  }
  decelerate_out
  {
    smp0
    {
      sample=sounds/idle.wav
      volume=2.5
      min=100
      max=1000
      attack=0
      decay=1500
      natural=900
    }
    smp1
    {
      sample=sounds/fj40-mid.wav
      volume=0.8
      min=2000
      max=10000
      attack=1000
      decay=0
      natural=4000
    }
  }
  accelerate_in
  {
    smp0
    {
      sample=sounds/idle.wav
      volume=2.5
      min=100
      max=1000
      attack=0
      decay=500
      natural=900
    }
    smp1
    {
      sample=sounds/fj40-mid.wav
      volume=1.2
      min=2000
      max=10000
      attack=1000
      decay=0
      natural=4000
    }
  }
  decelerate_in
  {
    smp0
    {
      sample=sounds/idle.wav
      volume=2.5
      min=100
      max=1000
      attack=0
      decay=1500
      natural=900
    }
    smp1
    {
      sample=sounds/fj40-mid.wav
      volume=0.8
      min=2000

      max=10000
      attack=1000
      decay=0
      natural=4000
    }
  }
  gearwhine
  {
    smp0
    {
      sample=sounds/tw_ltr_onverylow.wav
      volume=2
      min=1
      max=2
      decay=500
      natural=300
    }
  }
  wind
  {
    smp0
    {
      sample=wind.wav
      volume=1
      min=1
      max=2
      decay=100
      natural=30
    }
  }
}
