car
{
   name=Renault Megane RS
   year=2008
  credits=Convert by Seby & Radu
  comments=
   wheels=4
  id=rmrs
  version=088b
  skid
  {
    sample=skid.wav
  }
  shadow
  {
    texture=shadow.tga
    width=2.4
    length=5.06
    offset_z=-0.06
  }
 cg
 {
  x=0
  y=-0.15
  z=0.0
 }
  ff_factor=0.45
}
;flarers:------------------------------------------------

flares
{
  ; Front lights
  flare0
  {
    pos=-0.7088 0.2004 1.8000
    color=1.0 0.8 1.8
	normal=0.05 0 1
	z_offset=-2500
	size_factor=0.85
	intensity=1
        hor_scale=1.8
  }
  flare1
  {
    pos=0.6890 0.2004 1.8100
    color=1.0 0.8 1.8
	normal=0.05 0 1
	z_offset=-2500
	size_factor=0.85
	intensity=0.7
        hor_scale=1.8
  }
  flare2
  {
    pos=-0.7088 0.2004 1.8000
    color=1.0 0.8 1.8
	normal=0.05 0 1
	z_offset=-2500
	size_factor=0.85
	intensity=0.7
        hor_scale=1.8
  }
  flare3
  {
    pos=0.6890 0.2004 1.8100
    color=1.0 0.8 1.8
	normal=0.05 0 1
	z_offset=-2500
	size_factor=0.85
	intensity=0.7
        hor_scale=1.8
  }
  flare4
  {
    pos=-0.7088 -0.1754 2.0000
    color=1.0 0.8 1.8
	normal=0.05 0 1
	z_offset=-2500
	size_factor=0.85
	intensity=1
        hor_scale=1.8
  }
  flare5
  {
    pos=0.6890 -0.1754 2.0000
    color=1.0 0.8 1.8
	normal=0.05 0 1
	z_offset=-2500
	size_factor=0.85
	intensity=0.7
        hor_scale=1.8
  }
  flare6
  {
    pos=-0.7088 -0.1754 2.0000
    color=1.0 0.8 1.8
	normal=0.05 0 1
	z_offset=-2500
	size_factor=0.85
	intensity=0.7
        hor_scale=1.8
  }
  flare7
  {
    pos=0.6890 -0.1754 2.0000
    color=1.0 0.8 1.8
	normal=0.05 0 1
	z_offset=-2500
	size_factor=0.85
	intensity=0.7
        hor_scale=1.8
  }
}

lights
{
  ; Projected lights
  light0
  {
    texture=light.tga
    ; Field of view (vertical)
    fov=55
    ; Aspect (horizontal)
    aspect=5
    ; Distance to car
    z=2
    ; Pitching with respect to car (in degrees)
    pitch=0
    ; Fall-off distance
    far=100
  }
  OLD_light0
  {
    texture=light.tga
    ; Field of view (vertical)
    fov=25.0
    ; Aspect (horizontal)
    aspect=4.0
    ; Distance to car
    z=2
    ; Pitching with respect to car (in degrees)
    pitch=10
  }
}

body
{
  mass=1390
  inertia
  {
    x=2300
    y=2400
    z=475
  }
  model
  {
    file=rs.dof
  }
  model_incar
  {
    file=rs.dof
  }
  model_light_l
  {
    file=lights.dof
  }
  model_braking_l
  {
    file=brakes.dof
  }
  model_lightroad_l
  {
    file=lightsin.dof
  }
  model_reverse_r
  {
    file=rlights.dof
  }
  width=1.96
  height=0.75
  length=4.46
  manual_box=1
}
steer
{
  x=0.40
  y=0.367
  z=0.30
  radius=10
  xa=22
  lock=930
  linearity=0.3
  model
  {
      file=volante.dof
  }
}
engine
{
	size=0
  	mass=150
  	stall_rpm=500
  	start_rpm=950
  	idle_rpm=990
  	autoclutch_rpm=1500
  	max_rpm=7500

  	curve_torque=torque20.crv
        ;8% loss
  	max_torque=1.2
  	idle_method=1
  	starter=1
  	starter_torque=150
  	start_stalled=1
    enable_stall=1

  jitter
  {
    amplitude=0.4
    time_min=350
    time_var=10
    frequency_min=5
    frequency_var=1
  }
  shifting
  {
    automatic=0
    shift_up_rpm=6250
    shift_down_rpm=2500
    time_to_declutch=70
    time_in_neutral=250
    time_to_clutch=20
    time_to_declutch_down=50
    time_in_neutral_down=250
    time_to_clutch_down=200
  }

 inertia
  {
    engine=0.81
    final_drive=4.071
  }
  braking_coeff=2.5
}
gearbox
{
  gears=7
  gear0
  {
    ratio=-4.071
    inertia=0.1
  }
  gear1
  {
    ratio=3.153
    inertia=0.01
  }
  gear2
  {
    ratio=1.944
    inertia=0.02
  }
  gear3
  {
    ratio=1.392
    inertia=0.03
  }
  gear4
  {
    ratio=1.055
    inertia=0.04
  }
  gear5
  {
    ratio=0.809
    inertia=0.5
  }
  gear6
  {
    ratio=0.673
    inertia=0.5
  }
}
clutch
{
   max_torque=700
}
abs
{
  enable=0
  max_velocity_ratio=2.09 
  min_velocity_ratio=1.8
  min_velocity=1
}
traction_control
{
  	enable=0
  	min_velocity=3
  	max_velocity_ratio=1.050
  	min_velocity_ratio=1.300
}
handbrakes
{
   wheels=23
}
differential
{
	type=1
	ratio=4.12
	inertia=0.15
	locking_coeff=50
	output2=2
	output3=3
}
aero
{
  body
  {
    center=0 0 0
    cx=0.33		
    area=2.2	
  }
  wings=1
  wing0
  {
    name=overall body lift
    span=1
    cord=1
    coeff_drag=0
    coeff_down=-9.5
    center=0 0 0.135
    angle=0
    angle_offset=1
  }
}
antirollbar
{
  count=2
  arb0
  {
    susp_left=0
    susp_right=1
    k=41000
  }
  arb1
  {
    susp_left=2
    susp_right=3
    k=28000
  }
}
susp_front                    
{
  y=-0.15
  z=1.22
  restlen=0.25
  minlen=0.0
  maxlen=0.26
  k=22000		
  bump_rate=1800	
  rebound_rate=3600	
  bump_function=0
  rebound_function=0
  anti_pitch=0.4
  camber_change_per_m=0
  roll_center
  {
    x=0
    y=-0.56	
    z=0
  }
}
susp_rear
{
  y=-0.15
  z=-1.62
  restlen=0.21	
  minlen=0.0
  maxlen=0.22
  k=20000		
  bump_rate=1200	
  rebound_rate=3200	
  bump_function=0
  rebound_function=0
  anti_pitch=0.2
  camber_change_per_m=0	
  roll_center
  {
    x=0
    y=-0.55
    z=0
  }
}
susp0~susp_front
{
  x=0.85
}
susp1~susp_front
{
  x=-0.85
}
susp2~susp_rear
{
  x=0.85
}
susp3~susp_rear
{
  x=-0.85
}
tire_model_front
{
  damping_predict_lat=1.0
  damping_predict_long=1.0
}
tire_model_rear
{
  damping_predict_lat=1.0
  damping_predict_long=1.0
}
pacejka
{
    a0=1.25
    a1=-35
    a2=1300
    a3=2000
    a4=8
    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.5
    b1=-70
    b2=1450
    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.157
}
wheel_front
{
  y=0
  z=0
  max_braking=1500
  braking_factor=1
  steering=1
  powered=1
  lock=50 ;65
  ackerman=1.1
  mass=12.5
  inertia=0.94
  radius=0.35
  width=0.235		
  slices=20
  friction_road=1.7
  tire_rate=290000
  pacejka~pacejka
  {
  }
}
wheel_rear
{
  y=0
  z=0
	steering=0
	powered=0
	power_gearing=0.53	;20% rear drive, no diff, equal drive :eek:
	mass=35
	inertia=1.35
	radius=0.35
        width=0.195		;225/40 ZR18
	rolling_coeff=0.0180
	max_braking=400
	braking_factor=1
	max_handbrake_torque=3400
	tire_rate=230000
	pacejka~pacejka
	{
		optimal_slipratio=0.11
		optimal_slipangle=0.155
	}
}
wheel0~wheel_front
{
  x=0
  ackerman=1.1
  toe=-0.36
  camber=-0.1
  model
  {
    file=lf.dof
  }
  model_brake
  {
    file=caliper_left.dof
  }
}
wheel1~wheel_front
{
  x=0
  ackerman=1.1
  toe=0.36
  camber=-0.1
  model
  {
    file=rf.dof
  }
  model_brake
  {
    file=caliper_right.dof
  }
}
wheel2~wheel_rear
{
  x=0
  toe=-0.37
  camber=0
  model
  {
    file=lf.dof
    offset
    {
    x=-0.014
    }
  }
  model_brake
  {
    file=caliper_left.dof
  }
}
wheel3~wheel_rear
{
  x=0
  toe=0.37
  camber=0
  model
  {
    file=rf.dof
    offset
    {
    x=0.014
    }
  }
  model_brake
  {
    file=caliper_right.dof
  }
}
camera0
{
  name=Driver
  fov=63
  model=1
  view=0
  wheels=0
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=0.376
    y=-0.65
    z=-0.25
  }
  offset_to
  {
    x=0.38
    y=-0.2
    z=10
  }
  angle
  {
    x=0
    y=180
    z=0.000000
  }
}
camera1
{
  name=Driver, left
  fov=65
  model=1
  wheels=0
  view=1
   offset
  {
    x=0.376
    y=0.60
    z=-0.22
  }
  offset_to
  {
    x=10
    y=0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera2
{
  name=Driver, right
  fov=55
  model=1
  wheels=0
  view=1
  offset
  {
    x=0.376
    y=0.60
    z=-0.22
  }
  offset_to
  {
    x=-10
    y=0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera3
{
  name=Driver, rear
  fov=-65
  model=1
  wheels=0
  view=0
  offset
  {
    x=0.1
    y=0.68
    z=-0.23
  }
  offset_to
  {
    x=-1
    y=0.5
    z=-10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.1
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera4
{
  name=Chase
  fov=60
  model=0
  view=0
  wheels=0
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  offset
  {
    x=0
    y=-0.8
    z=-6
  }
  angle
  {
    x=10
    y=180
    z=0
  }
}
camera5
{
  name=Exterior
  fov=60
  model=0
  view=0
  wheels=0
  follow
  {
    pitch=0
    yaw=0
    roll=0
  }
  offset
  {
    x=0
    y=-0.5
    z=-5
  }
  angle
  {
    x=10
    y=130
    z=0
  }
}
camera6
{
  name=Rear chase
  fov=60
  model=0
  view=0
  wheels=0
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  offset
  {
    x=0
    y=-0.8
    z=-6
  }
  angle
  {
    x=10
    y=0
    z=0
  }
}
camera7
{
  name=FrontWheel
  fov=60
  model=0
  view=0
  wheels=0
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=1.4
    y=0.06
    z=-0.5
  }
  angle
  {
    x=-2.25
    y=-161
    z=3.3
  }
}
camera8
{
  name=Far
  fov=20
  model=0
  view=0
  wheels=0
  follow
  {
    pitch=0
    yaw=0
    roll=0
  }
  offset
  {
    x=0
    y=-0.5
    z=-20
  }
  angle
  {
    x=10
    y=50
    z=0
  }
}
camera9
{
  name=Hood
  fov=60
  model=0
  wheels=0
  view=0
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=0
    y=-1.0
    z=0.8
  }
  angle
  {
    x=5
    y=180
    z=0
  }
}

;	------------------ 5.1 ALPHA AUDIO COMPATABILTY -----------------
audio
{
  skid
  {
    sample=skid.wav
  }
  acc_all
  {
    attack=1000
    decay=1000
  }
  accelerate_out
  {
    volume=1
    smp0~audio.acc_all
    {
      sample=2000.wav
      min=0
      max=1250
      attack=1000
      decay=1000
      natural=1100
    }
    smp1~audio.acc_all
    {
      sample=6000.wav
      min=1500
      max=9001
      natural=5500
    }
  }
  decelerate_out
  {
    volume=1
    smp0~audio.acc_all
    {
      sample=2000.wav
      min=0
      max=1250
      attack=1000
      decay=1000
      natural=1100
    }
    smp1~audio.acc_all
    {
      sample=6000.wav
      min=1500
      max=9001
      natural=5500
    }
    smp2~audio.acc_all
    {
      sample=3000.wav
      min=3500
      natural=5500
      volume=0.75
    }
}
  accelerate_in
  {
    volume=1
    smp0~audio.acc_all
    {
      sample=2000.wav
      min=0
      max=1250
      attack=1000
      decay=1000
      natural=1100
    }
    smp1~audio.acc_all
    {
      sample=3000.wav
      min=1500
      max=9700
      natural=6000
    }
  }
  decelerate_in
  {
    volume=1
    smp0~audio.acc_all
    {
      sample=2000.wav
      min=0
      max=1250
      attack=1000
      decay=1000
      natural=1100
    }
    smp1~audio.acc_all
    {
      sample=3000.wav
      min=1500
      max=9700
      natural=6000
    }
    smp2~audio.acc_all
    {
      sample=3000.wav
      min=3500
      natural=5500
      volume=0.75
    }
}
wind
  {
  smp0
  {
      sample=wind.wav
      volume=0.5
      min=1
      max=100
      natural=60
      }
   }
}