;#####################################################################
;#                                                                   #
;#    ##### ####  ##### #####     ####  #####  ###  # ##### #   #    #
;#    #     #   # #     #         #   # #     #     # #     ##  #    #
;#    #  ## ####  ###   #  ## ### #   # ###    ###  # #  ## # # #    #
;#    #   # #  #  #     #   #     #   # #         # # #   # #  ##    #
;#    ##### #   # ##### #####     ####  #####  ###  # ##### #   #    #
;#                                                                   #
;#####################################################################
;
;Autor: Georg (Georg@Greg-Design.de) & Redcap (Redcap@vr-racing.de)
;Beni made the tex
;Cullam3n ini
;Mr.Whippy Sounds
;friends for help and support
;Ruud 4 the game and the buildar tool
;Stecki: Driver
;FSR: help and support and texes
;turbo sounds is from whippys sound for blo0m's ferrari 360 sypder
;Cosmo°: torque SR20DET Stage 3.crv, car.ini final touches
;
; visit http://www.greg-design.de
; and http://www.racer.nl

car
{
   name=Nissan Silvia S14a Greg-Design.de Promotioncar
   year=2003
   credits=Redcap & Georg
   comments=Tex: Beni C Dials: Bloom Ini: TtR&Cosmo° Sounds: Mr.Whippy
   id=nissan_silvia_s14_gregdesign
   version=090
   wheels=4
   skid
   {
      sample=skid.wav
   }
   shadow
   {
      texture=shadow.tga
      width=2.2
      length=5
      offset=0
   }
   cg
   {
      x=0
      ;1270mm * 0.37 = 470mm , formula by Justin Martin (IH8COPS)
      y=-0.040
      ;weight distribution front 54.16% / rear 45.84%
      z=0.13
   }
   ff_factor=0.45
}
graphics
{
  ; Car models used
  shadow
  {
    texture=shadow.tga
    width=2.2
    length=5
    offset_z=0
    offset_y=0
    model
    {
      ; Projected shadow model
      file=shadow.dof
      use_shaders=0
    }
  }
}
body
{
   ;1268kg + 75kg driver - 120kg unsprung mass - 149kg engine - 138kg weight reduction
   mass=1200
   inertia
   {
      x=1589
      y=1807
      z=336
   }
   x=0
   y=0
   z=0
   length=0
   width=0
   height=0
   manual_box=0
   box_offset=0 0.1 -0.2
   model
   {
      file=body.dof
   }
   model_incar
   {
      file=
   }
   model_braking_l
   {
      file=brakelights.dof
   }
   model_light_l
   {
      ;file=lights.dof
   }
}
steer
{
   x=0.35
   y=0.15
   z=0.27
   xa=15
   radius=10
   lock=1080
   model
   {
      file=momo.dof
   }
   ;0.833 for 900° wheels, 0.3125 for 180° wheels
   linearity=0.833
}
engine
{
   mass=149
   idle_rpm=950
   idle_method=1
   idle_throttle=0.15
   autoclutch_rpm=1625
   autoclutch=0
   lounch_control=0
   curve_torque=torqueSR20DETStage3.crv
   max_torque=1
   max_rpm=8800
   starter=1
   starter_torque=130
   start_stalled=1
   stall_rpm=600
   start_rpm=1300
   reaction=1
   shifting
   {
      automatic=0
      time_to_declutch=150
      time_in_neutral=1
      time_to_clutch=50
      time_to_declutch_down=50
      time_in_neutral_down=1
      time_to_clutch_down=50
      shift_up_rpm=8200
      shift_down_rpm=3400
   }
   inertia
   {
      engine=0.2
      final_drive=1
   }
   braking_coeff=1.8
   rolling_friction_coeff=0
   sample=acc7000.wav
   sample_rpm=7000
}

;HKS Manual Gearbox
gearbox
{
   gears=6
   gear0
   {
      inertia=0.1
      ratio=-3.382
   }
   gear1
   {
      ratio=2.773
      inertia=0.05
   }
   gear2
   {
      ratio=1.984
      inertia=0.04
   }
   gear3
   {
      ratio=1.548
      inertia=0.03
   }
   gear4
   {
      ratio=1.246
      inertia=0.02
   }
   gear5
   {
      ratio=1.000
      inertia=0.01
   }
}
abs
{
  enable=1
  braking_factor=1.0
  max_velocity_ratio=1.13
  min_velocity_ratio=1.12
  min_velocity=1.944
}
traction_control
{
  enable=0
  max_velocity_ratio=1.0500000
  min_velocity_ratio=1.0499999
  min_velocity=5
}
fuel
{
  ; Fuel type: 0=gasoline, 1=diesel. Determines efficiencies
  type=0
  max=45.0
  ; Brake specific fuel consumption (gram/Joule)
  ; an idea of the efficiency of the engine
  bsfc=3.544e-5
}
clutch
{
   max_torque=700
}
handbrakes
{
   wheels=23
}
differentials
{
	count=1
	diff0
	{
		type=3
		ratio=3.133
		inertia=0.1
		friction=25;ca.25Nm "Reibung" für alle Teile
		preload=75
		output0=2
		output1=3
		power_ratio=7.000;1.667;->25% Sperre;7.000;->75% Sperre;2.636;->45%;2.333;->40%
		coast_ratio=7.000
	}
}

aero
{
   body
   {
      center=0 0 0
      cx=0.34
      area=1.846
   }
   wings=3
   wing0
   {
      name=Overall Lift
      span=4.5
      cord=1.5
      coeff_drag=0
      coeff_down=-0.643 ; -14,6kg at 200km/h
      center=0.000 0.000 0.100
      angle=0
      angle_offset=1
   }
   wing1
   {
      name=Front Wing
      span=1.6
      cord=0.25
      angle=1
      angle_offset=1
      coeff_drag=5.956 ; 8kg
      coeff_down=18.579 ; 25kg
      center=0.000 -0.300 2.250
   }
   wing2
   {
      name=Rear Wing
      span=1.5
      cord=0.2
      angle=5
      angle_offset=10
      coeff_drag=1.982 ; 10kg
      coeff_down=6.540 ; 33kg
      center=0.000 0.300 -1.900
   }
}
antirollbar
{
   count=2
   arb0
   {
      susp_left=0
      susp_right=1
      k=53000
   }
   arb1
   {
      susp_left=2
      susp_right=3
      k=15000
   }
}
; HKS Hipermax II (Street) - Suspension Kit
; Spring Rate F/R
; F=78(8)/R=49(5) N/mm (kgf/mm)
; Damping Force Piston Speed 0.1m/sec N(kgf) (or 1m/sec?)
; 1411/353(144/36)
; 676/157(69/16)
; relation 0.479/0.444
;
; static critical damping front 10791 N/m/s
; static critical damping rear 6685 N/m/s
susp_front
{
  y=-0.06
  z=1.3034
  anti_dive=0.1
  anti_lift=0
  restlen=0.158 ; 373,24kg 158mm
  minlen=0.060 
  maxlen=0.240
  k=78000
  bump_rate=2715
  rebound_rate=7800
  bump_function=2
  rebound_function=0
  roll_center
  {
    x=0
    y=-0.453; 48mm
    z=0
  }
}
susp_rear
{
  y=-0.06
  z=-1.2566
  anti_rise=0.25
  anti_squat=0.15
  restlen=0.185 ; 320,49kg 170mm
  minlen=0.060
  maxlen=0.280
  k=64900
  bump_rate=2400
  rebound_rate=7310
  bump_function=2
  rebound_function=0
  roll_center
  {
    x=0
    y=-0.429 ; 90mm
    z=0
  }
}
; Front track 1480mm
; Rear track 1470mm
; Wheelbase 2525mm
susp0~susp_front
{
  x=0.74
  camber_change_per_m=0.32
  camber_change_steering=0.15
  toe_change_per_m=-0.03
}
susp1~susp_front
{
  x=-0.74
  camber_change_per_m=0.32
  camber_change_steering=-0.15
  toe_change_per_m=0.03
}
susp2~susp_rear
{
  x=0.75
  camber_change_per_m=0.22
  camber_change_steering=0
  toe_change_per_m=0.05
}
susp3~susp_rear
{
  x=-0.75
  camber_change_per_m=0.22
  camber_change_steering=0
  toe_change_per_m=-0.05
}
tire_model_front
{
  damping_predict_lat=0.0
  damping_predict_long=0.0
}
tire_model_rear
{
  damping_predict_lat=0.0
  damping_predict_long=0.0
}
;Grippy Michelins.
pacejka
{
	a0=1.35
	a1=-35
	a2=1485
	a3=2000
	a4=7
	a5=0.015
	a6=-0.25
	a7=0.1
	a8=-0.03
	a9=-0.001
	a10=-0.15
	a111=-8.5
	a112=-0.29
	a12=17.8
	a13=-2.4
	b0=1.4
	b1=-45
	b2=1475
	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.11
    optimal_slipangle=0.16
}
wheel0
{
   x=0
   y=0
   z=0
   steering=1
   lock=66
   ackerman=1.3
   toe=-0.07
   camber=-3
   mass=30
   radius=0.30675
   max_braking=2800
   braking_factor=0.7
   max_handbrake_torque=0
   inertia=1
   rolling_coeff=0.015
   tire_rate=300000
   pacejka~pacejka
   {
   }
   model
   {
      file=lf.dof
    offset
	{
	x=-0.02
	}
   }
   	model2
	{
		file=lf_0.dof
		velocity=10
    offset
	{
	x=-0.02
	}
	}
	model3
	{
		file=lf_1.dof
		velocity=20
    offset
	{
	x=-0.02
	}
	}
	model4
	{
		file=lf_2.dof
		velocity=60
    offset
	{
	x=-0.02
	}
	}
   model_brake
   {
      file=fl.dof
    offset
	{
	x=-0.02
	}
   }
}
wheel1
{
   x=0
   y=0
   z=0
   steering=1
   lock=66
   ackerman=1.3
   toe=0.07
   camber=-3
   mass=30
   radius=0.30675
   max_braking=2800
   braking_factor=0.7
   max_handbrake_torque=0
   inertia=1
   rolling_coeff=0.015
   pacejka~pacejka
   {
   }
   tire_rate=300000
   model
   {
      file=rf.dof
    offset
	{
	x=0.02
	}
   }
	model2
	{
		file=rf_0.dof
		velocity=10
    offset
	{
	x=0.02
	}
	}
	model3
	{
		file=rf_1.dof
		velocity=20
    offset
	{
	x=0.02
	}
	}
	model4
	{
		file=rf_2.dof
		velocity=60
    offset
	{
	x=0.02
	}
	}
   model_brake
   {
      file=fr.dof
    offset
	{
	x=0.02
	}
   }
}
wheel2
{
   x=0
   y=0
   z=0
   steering=0
   lock=0
   toe=-0.4
   camber=-2
   mass=30
   radius=0.30675
   max_braking=2800
   braking_factor=0.3
   max_handbrake_torque=3000
   inertia=1
   rolling_coeff=0.015
   tire_rate=300000
  pacejka~pacejka
  {
		a0=1.4
		a1=-40
		a2=1535
		a3=2100
		a4=8
		b0=1.45
		b1=-50
		b2=1475

  optimal_slipratio=0.11
  optimal_slipangle=0.17
  }
   model
   {
      file=lr.dof
    offset
	{
	x=-0.065
	}
   }
	model2
	{
		file=lr_0.dof
		velocity=10
    offset
	{
	x=-0.065
	}
	}
	model3
	{
		file=lr_1.dof
		velocity=20
    offset
	{
	x=-0.065
	}
	}
	model4
	{
		file=lr_2.dof
		velocity=60
    offset
	{
	x=-0.065
	}
	}
   model_brake
   {
      file=bl.dof
    offset
	{
	x=-0.065
	}
   }
}
wheel3
{
   x=0
   y=0
   z=0
   steering=0
   lock=0
   toe=0.4
   camber=-2
   mass=30
   radius=0.30675
   max_braking=2800
   braking_factor=0.3
   max_handbrake_torque=3000
   inertia=1
   rolling_coeff=0.015
   tire_rate=300000
  pacejka~pacejka
  {
		a0=1.4
		a1=-40
		a2=1535
		a3=2100
		a4=8
		b0=1.45
		b1=-50
		b2=1475

  optimal_slipratio=0.11
  optimal_slipangle=0.17
  }
   model
   {
      file=rr.dof
    offset
	{
	x=0.065
	}
   }	
model2
	{
		file=rr_0.dof
		velocity=10
    offset
	{
	x=0.065
	}
	}
	model3
	{
		file=rr_1.dof
		velocity=20
    offset
	{
	x=0.065
	}
	}
	model4
	{
		file=rr_2.dof
		velocity=60
    offset
	{
	x=0.065
	}
	}
   model_brake
   {
      file=br.dof
    offset
	{
	x=0.065
	}
   }
}
audio
{
  skid
  {
    sample=skid.wav
  }
  acc_all
  {
    attack=1300
    decay=1300
  }
  accelerate_out
  {
    volume=1.5
    smp0~audio.acc_all
    {
      sample=acc1000.wav
      min=1
      max=1001
      natural=1000
    }
    smp1~audio.acc_all
    {
      sample=acc2000.wav
      min=2000
      max=2001
      natural=2000
    }
    smp2~audio.acc_all
    {
      sample=acc3000.wav
      min=3000
      max=3001
      natural=3000
    }
    smp3~audio.acc_all
    {
      sample=acc4000.wav
      min=4000
      max=4001
     natural=4000
    }
    smp4~audio.acc_all
    {
      sample=acc5000.wav
      min=5000
      max=5001
      natural=5000
    }
    smp5~audio.acc_all
    {
      sample=acc6000.wav
      min=6000
      max=6001
      natural=6000
    }
    smp6~audio.acc_all
    {
      sample=acc7000.wav
      min=7000
      max=9001
      natural=7000
    }
    smp7~audio.acc_all
    {
     volume=0.017
     sample=turbo.wav
     min=4000
     max=9000
     natural=1200
     minvol=0.1
     maxvol=0.2
    }
  }
  decelerate_out
  {
    volume=1.5
    smp0~audio.acc_all
    {
      sample=acc1000.wav
      min=1
      max=1001
      natural=1000
    }
    smp1~audio.acc_all
    {
      sample=acc2000.wav
      min=2000
      max=2001
      natural=2000
    }
    smp2~audio.acc_all
    {
      sample=acc3000.wav
      min=3000
      max=3001
      natural=3000
    }
    smp3~audio.acc_all
    {
      sample=acc4000.wav
      min=4000
      max=4001
     natural=4000
    }
    smp4~audio.acc_all
    {
      sample=acc5000.wav
      min=5000
      max=5001
      natural=5000
    }
    smp5~audio.acc_all
    {
      sample=acc6000.wav
      min=6000
      max=6001
      natural=6000
    }
    smp6~audio.acc_all
    {
      sample=acc7000.wav
      min=7000
      max=9001
      natural=7000
    }
  } 
  wind
  {
    volume_scale=0.1
    volume_offset=0
    pitch_scale=0.01
    pitch_offset=0
    smp0
    {
      sample=wind.wav
      min=0.1
      max=9999
      natural=50
    }
  }
}
camera0
{
   offset
   {
      x=-0.006250
      y=-1.252083
      z=-6.795010
   }
   angle
   {
      x=3.000000
      y=180.000000
      z=0.000000
   }
   name=CloseBehind
   follow
   {
      pitch=0
      yaw=1
      roll=0
   }
}
camera1
{
   offset
   {
      x=0.1
      y=-1
      z=-7
   }
   angle
   {
      x=-6
      y=200
      z=0
   }
   name=OffsetChase
   follow
   {
      pitch=0
      yaw=1
      roll=0
   }
   fov=65
}
camera2
{
   follow
   {
      pitch=1
      yaw=1
      roll=1
   }
   offset
   {
      x=0.0
      y=-0.7
      z=0.75
   }
   angle
   {
      x=10
      y=180.0
      z=0.0
   }
   name=BonnetView
   fov=70
}
camera3
{
   follow
   {
      pitch=1
      yaw=1
      roll=1
   }
   offset
   {
      x=0.0
      y=-0.3
      z=2.3
   }
   angle
   {
      x=8
      y=180.0
      z=0.0
   }
   name=Bumper
   model=2
   wheels=2
   view=2
   fov=75
}
camera4
{
   offset
   {
      x=-0.381252
      y=0.439585
      z=-6
   }
   angle
   {
      x=16.5
      y=130
      z=0.25
   }
   name=GeneralLooseExterior
   fov=60
}
camera5
{
   follow
   {
      pitch=0
      yaw=1
      roll=0
   }
   offset
   {
      x=0.0
      y=0.0
      z=-4.5
   }
   angle
   {
      x=0
      y=35
      z=0
   }
   name=LowFrontAngle
   fov=60
}
camera6
{
   follow
   {
      pitch=1
      yaw=1
      roll=0
   }
   offset
   {
      x=0
      y=0.6
      z=-4.5
   }
   angle
   {
      x=10
      y=-360
      z=0
   }
   fov=65
   name=FrontView
}
camera7
{
   offset
   {
      x=1.4
      y=0.06
      z=-0.6
   }
   angle
   {
      x=-2.25
      y=-161
      z=3.3
   }
   follow
   {
      pitch=0
      yaw=1
      roll=1
   }
   fov=60
   name=FrontWheel
}
camera8
{
   follow
   {
      pitch=1
      yaw=1
      roll=1
   }
   offset
   {
      x=0.35
      y=-0.5
      z=-4
   }
   angle
   {
      x=-5.0
      y=-30.0
      z=15.0
   }
   name=Bumper
   model=0
   wheels=0
   view=1
   fov=75
}


camera9
{
   follow
   {
      pitch=1
      yaw=1
      roll=1
   }
   offset
   {
      x=1.48
      y=-0.0
      z=-0.4
   }
   angle
   {
      x=14
      y=9.5
      z=7.5
   }
   name=RearWheel
   fov=65
}

