car
{
       name=Nissan Stagea GTR-35
       year=2009
       credits=Model by Fl@sh, Converted by Miguel1.8T
       comments=VR38DET: 3.8L Straight-6 Turbo 280 PS ,276 HP (206 kW) / 343NM
       id=nissanStageaGTR35
       version=090b
       wheels=4
       shadow
       {
           texture=shadow.tga
           width=2.9
           length=5.920
           offset_z=0.0
           offset=0
       }
       cg
       {
          x=0
          y=-0.3
          z=0.25
       }
}

::::::::::::::::::::::::::::::::::::::KOROSERIA::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
body
{
  	mass=1550
  	inertia
  	{
    		x=1855
    		y=1959
    		z=409
  	}
  	model
  	{
    		file=body.dof
  	}
  	model_incar
  	{
    		file=body.dof
  	}
	model_light_l
	{
		file=light.dof
	}
	model_braking_l
	{
		file=brakes.dof
	}
 model_lightroad_l
 {
  file=lights.dof
 }
  model_reverse_l
  {
    ; Reverse gear indicators
    file=re.dof
  }
  model_reverse_r
  {
    file=re.dof
}
        width=1.886
        height=1.486
        length=5.113
  	manual_box=1
}
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=mala.dof
                }
                model5
                {
                        file=porta_condutor.dof
                }
                model6
                {
                        file=porta_passageiro.dof
                }
                model7
                {
                        file=porta_tras_direita.dof
                }
                model8
                {
                        file=porta_tras_esquerda.dof
                }
                model9
                {
                        file=

    		}
	}
}

steer
{
        x=-0.39
        y=0.20
        z=0.37
  	xa=15
  	linearity=0.25
        lock=1080
  	model
  	{
    		file=volante.dof
  	}
}
:::::::::::::::::::::::::::::::::ABS::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
abs
{
  	enable=1
	min_velocity=1.7
  	max_velocity_ratio=1.10
  	min_velocity_ratio=1.05
}
:::::::::::::::::::::::::::::::SILNIK V12::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
engine
{
  mass=0
  idle_rpm=1100
  max_rpm=7200
  max_torque=353
  curve_torque=torque.crv
  autoclutch_rpm=2250
  starter=1
  starter_torque=120
  start_stalled=1
  stall_rpm=600
  start_rpm=1500
  torque_reaction=0.5
  shifting
  {
    automatic=0
    blip_throttle=0
    cut_throttle=1
    fast=0
    shift_up_rpm=7700
    shift_down_rpm=3500
    time_to_declutch=0
    time_in_neutral=0
    time_to_clutch=0
    time_to_declutch_down=0
    time_in_neutral_down=0
    time_to_clutch_down=0
  }
  inertia
  {
    engine=0.27
    final_drive=0.1
  }
  braking_coeff=3.45
  sample=a6000.wav
  sample_rpm=6000
}
gearbox
{
  gears=7
  gear0
  {
    ratio=-3.29
    inertia=0.02
    linearity=1
  }
  gear1
  {
    ratio=3.29
    inertia=0.02
    linearity=1
  }
  gear2
  {
    ratio=2.16
    inertia=0.034
    linearity=1
  }
  gear3
  {
    ratio=1.40
    inertia=0.05
    linearity=1
  }
  gear4
  {
    ratio=0.97
    inertia=0.07
    linearity=1
  }
  gear5
  {
    ratio=0.80
    inertia=0.09
    linearity=2
  }
  gear6
  {
    ratio=0.70
    inertia=0.11
    linearity=2
  }
}
clutch
{
  max_torque=540
}
handbrakes
{
  wheels=23
}
differential
{
  type=1
  ratio=4.44
  inertia=0.1
  locking_coeff=135
  output0=2
  output1=3
}
::::::::::::::::::::::::::::::::::AERO::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
aero
{
  body
  {
    center=0 0 0
    cx=0.35
    area=2.1		
  }
  wings=1
  wing0
  {
    name=Overall aerodynamic effect R
    span=1
    cord=0.1
    coeff_drag=0
    coeff_down=8.5
    center=0 0.03 -1.38
    angle=0
    angle_offset=1
  }
}

::::::::::::::::::::::::::::::::::::::::::ZAWIESZNIE:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
antirollbar
{
  	count=2
  	arb0
  	{
    		susp_left=0
    		susp_right=1
   		k=36800
  	}
  	arb1
  	{
    		susp_left=2
    		susp_right=3
    		k=21300
  	}
}


susp_rear
{
  	y=-0.05
  	z=-1.283
  	restlen=0.425
  	minlen=0.270
  	maxlen=0.520
  	k=52000
 	bump_rate=1600
  	bump_function=0
  	rebound_rate=5100
  	rebound_function=0
  	anti_pitch=0.1
  	camber_change_per_m=0.300
  	roll_center
  	{
    		x=0
    		y=-0.600
    		z=0
  	}
}
susp_front
{
  	y=-0.05
  	z=1.563
  	restlen=0.425
  	minlen=0.300
  	maxlen=0.500
  	k=52000
  	bump_rate=1300
  	bump_function=0
  	rebound_rate=2800
  	rebound_function=0
  	anti_pitch=0.2
  	camber_change_per_m=0.4
    	caster_offset=-0.045
  	roll_center
  	{
    		x=0
    		y=-0.625
    		z=0
  	}
}
susp0~susp_front
{
    	x=0.80
    	camber_change_steering=0.050
    	toe_change_per_m=0.130
    
}
susp1~susp_front
{
    	x=-0.80
    	camber_change_steering=-0.050
    	toe_change_per_m=-0.130
}


susp2~susp_rear
{
    	x=0.81
	;estimation based on Gustave's M3 site
    	toe_change_per_m=-0.016
}

susp3~susp_rear
{
    	x=-0.81
	;estimation based on Gustave's M3 site
    	toe_change_per_m=0.016
}

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.2
    a1=-25
    a2=1700
    a3=2000
    a4=9
    a5=0.015
    a6=-0.25
    a7=0
    a8=-0.03
    a9=-0.001
    a10=-0.15
    a111=-8.5
    a112=-0.29
    a12=17.8
    a13=-2.4
    b0=1.3
    b1=-40
    b2=1550
    b3=20
    b4=325
    b5=0.08
    b6=0
    b7=0.05
    b8=-0.025
    b9=0.015
    b10=0.4
    b11=-50
    b12=0
    c0=2.2
    c1=-4
    c2=-3
    c3=-1
    c4=-7
    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.14
    c15=-1.029
    c16=0.27
    c17=-1.1

    optimal_slipratio=0.12
    optimal_slipangle=0.173
}
wheel_front
{
	y=0
	z=0
	powered=1
  	steering=1
                    power_gangering=0.84
	reverse_steering=0
	lock=60
	ackerman=1.215
	mass=30
	inertia=1.0
	radius=0.355
	rolling_coeff=0.015
	friction_road=1
	max_braking=4500
	braking_factor=0.75
	inboard_brakes=0
	tire_rate=175000
	pacejka~pacejka
	{
	}
}
wheel_rear
{
	y=0
	z=0
	powered=1
	steering=0
	reverse_steering=0
	lock=0
	mass=30
  	inertia=1.0
  	radius=0.355
  	rolling_coeff=0.015
  	friction_road=1
  	max_braking=2500
  	max_handbrake_torque=5500
  	braking_factor=0.25
	inboard_brakes=0
  	tire_rate=175000
  	pacejka~pacejka
  	{
  	}
}
wheel0~wheel_front
{
	x=0
	toe=-0.980
	camber=1.980
    	model
  	{
    		file=left.dof
  	}
    		model_brake
  	{
    		file=
  	}
}

wheel1~wheel_front
{
  	x=0
  	toe=0.980
  	camber=1.980
    	model
  	{
    		file=right.dof
  	}
    		model_brake
  	{
    		file=
  	}
}



wheel2~wheel_rear
{
  	x=0
  	toe=-0.080
  	camber=-0.035
    	model
  	{
    		file=left.dof
  	}
   	model_brake
  	{
    		file=
  	}
}

wheel3~wheel_rear
{
  	x=0
  	toe=0.080
  	camber=-0.035
    	model
  	{
    		file=right.dof
  	}
    	model_brake
  	{
    		file=
  	}
}
::::::::::::::::::::::::::::::::::::::::::::::::::::::::KAMERAY::::::::::::::::::::::::::::::::::::::::::::::

camera0
{
  name=Driver
  fov=60
  model=1
  wheels=0
  view=1
  offset
  {
    x=-0.38
    y=0.461
    z=-0.30
  }
  offset_to
  {

    x=0
    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=1
  wheels=0
  view=1
  offset
  {
        x=-0.38
    y=0.461
    z=-0.30
  }
  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=1
  wheels=0
  view=0
  offset
  {
        x=-0.38
    y=0.461
    z=-0.30
  }
  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
  fov=60
  model=1
  wheels=0
  view=0
  offset
  {
      x=0.38
    y=0.461
    z=-0.30
  }
  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
  }
}
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
{
  offset
  {
    x=0.0
    y=1.4
    z=-4
  }
  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
  }
}
camera9
{
  name=Chase rear
  fov=60
  model=1
  wheels=0
  view=1
  offset
  {
    x=0.0
    y=-0.37
    z=0.0
  }
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  angle
  {
    x=15
    y=0
    z=0
  }
}
audio
{
	skid
	{
		sample=Skid.wav
	}
	horn
	{
		sample=Horn.wav
	}
  	shiftout
  	{
    		sample=shift.wav
  	}
  	shiftin
  	{
    		sample=shift.wav
  	}
	acc_all
	{
		attack=2600
		decay=2600
	}
	accelerate_out
	{
		smp0~audio.acc_all
		{
			sample=Engine.wav
			min=0
			max=9000
			natural=5000
			volume=1
		}
	}

	decelerate_out
	{
		smp0~audio.acc_all
		{
			sample=Engine.wav
			min=0
			max=9000
			natural=5200
			volume=1
		}
	}
  wind
  {
    pitch_scale=0
    pitch_offset=80
    smp0
    {
      sample=wind1s.wav
      min=25
      max=26
      attack=33
      decay=33
      natural=80
      volume=0.5
    }
    smp1
    {
      sample=winds2.wav
      min=50
      max=51
      attack=33
      decay=33
      natural=80
      volume=1
    }
    smp2
    {
      sample=wind3s.wav
      min=75
      max=150
      attack=33
      decay=33
      natural=80
      volume=2
    }
  }
}
