car
{
   name=SEAT124
   year=1976
   credits=MARS
   comments=65 CV with 4 speed manual.
   id=SEAT124
   version=0655
   wheels=4
   skid
   {
    sample=skid.wav
   }
   shadow
   {
   texture=Sombra.tga
   width=2.2
   length=4.5
   offset_z=-0.2
   intensity_dark=0.7
   intensity_light=0.3 
   }
   cg
     {
      x=0
      y=-0.40
      z=0.35		
     }
  ff_factor=0.25
}


body
{

  	mass=905
  	length=4.042
  	width=1.611
  	height=1.420
  	manual_box=1
	box_offset=0.000 0.000 0.000
  	inertia
  	{
    		x=2700
    		y=2800
    		z=550
  	}
  	model
  	{
		file=Seat124.dof
		offset
		{
			x=0
			y=-0.18
			z=0
		}
	}
			intensity=0.45
  	model_incar
  	{
    		file=Interior.dof
    		offset
		{
			x=0.02
			y=-0.14
			z=-0.05
		}    		
  	}
        model_light_l
        {


                file=Luces.dof
                offset
		{
			x=0
			y=-0.18
			z=0
		}		
        }  
        	

}

abs
{
  	enable=0
	min_velocity=0
  	max_velocity_ratio=0
  	min_velocity_ratio=0
}

traction_control
{
  	enable=0
	min_velocity=0
  	max_velocity_ratio=0
  	min_velocity_ratio=0
}


animation
{
	flash_lights=0
}
lights
{
  ; Projected lights
  light0
  {
    texture=luz.tga
    ; Field of view (vertical)
    fov=25.0
    ; Aspect (horizontal)
    aspect=4.0
    ; Distance to car
    z=0.5
    ; Pitching with respect to car (in degrees)
    pitch=7
  }
}
flares
{
  ; Luces Delante
  flare0
  {
    pos=-0.51 -0.11 1.95
	normal=0 0 1
	z_offset=-3000
	size_factor=0.75
  }
  flare1
  {
    pos=0.51 -0.11 1.95
	normal=0 0 1
	z_offset=-3000
	size_factor=0.75
  }

  flare2
  {
    pos=-0.51 -0.11 2.06
	normal=0 0 1
	z_offset=-3000
	size_factor=0.75
  }
  flare3
  {
    pos=0.51 -0.11 2.06
	normal=0 0 1
	z_offset=-3000
	size_factor=0.75
  }
  ; Detrás
  flare4
  {
    pos=-0.55 -0.15 -1.95
	normal=0.05 0 -0.5
	color=1 0.2 0.2
	size_factor=0.15
	z_offset=-1000
  }
  flare5
  {
    pos=0.55 -0.15 -1.95
	normal=-0.05 0 -0.5
	color=1 0.2 0.2
	size_factor=0.15
	z_offset=-1000
  }
  ; Luces Freno
  flare6
  {
    rule=brake
    pos=-0.480 -0.15 -1.95
	normal=0.05 0 -0.5
	color=1 0.4 0.2
	size_factor=0.1
	z_offset=-1000
  }
  flare7
  {
    rule=brake
    pos=0.480 -0.15 -1.95
	normal=-0.05 0 -0.5
	color=1 0.4 0.2
	size_factor=0.1
	z_offset=-1000
  }

}

;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>   DIRECCIÓN
steer
{

        x=0.32
        y=0.12
        z=0.56
  	xa=33
  	lock=990
	linearity=0.25

  	model
  	{
  	      file=volante.dof
  	      
  	}
}

;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>   MOTOR
engine
{
  mass=100
  idle_rpm=850
  max_rpm=6500
  max_torque=1
  curve_torque=torque.crv
  autoclutch_rpm=1500
  starter=1
  starter_torque=100
  start_stalled=0
  stall_rpm=300
  start_rpm=500
  reaction=0
  shifting
  {
    automatic=0
    shift_up_rpm=4500
    shift_down_rpm=3000
    time_to_declutch=350
    time_to_clutch=550
  }
  inertia
  {
    engine=0.42
    final_drive=0.21
  }
  braking_coeff=2.0

}
gearbox
{
  gears=5
  gear0
  {
    ratio=-4.125
    inertia=0.1
  }
  gear1
  {
    ratio=3.8182
    inertia=0.01
  }
  gear2
  {
    ratio=2.2941
    inertia=0.02
  }
  gear3
  {
    ratio=1.5000
    inertia=0.04
  }
  gear4
  {
    ratio=1.0967
    inertia=0.15
  }
}
clutch
{
  max_torque=250
}

handbrakes
{
  wheels=23
}
differential
{
  type=0		
  ratio=4.125		
  inertia=0.1
  output0=0
  output1=1
}
aero
{
  	body
  	{
    		center=0.000 0.000 0.000
    		cx=0.45
    		area=1.8558
 	}
	draft
	{
		scale_lat_rear=0.4
		scale_lon_rear=1
		scale_lat_front=0.08
		scale_lon_front=0.2
	}
	wings=1
	wing0
	{
		name=body_lift
		center=0.000 0.000 0.000
	      	span=1
	      	cord=1
		coeff_drag=0
		coeff_down=-5.3
		angle=0
		angle_offset=1
	}
}

antirollbar
{
   	count=2
   	arb0
   	{
      		susp_left=0
      		susp_right=1
      		k=2000
   	}
   	arb1
   	{
      		susp_left=2
      		susp_right=3
      		k=2000
   	}
}
;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>   SUSPENSIÓN
susp_front
{

  	y=-0.02
  	z=1.35
  	restlen=0.6425
  	minlen=0.397
  	maxlen=0.6485
	k=17500
	bumpstop_k=100000
	bumpstop_len=0
	bump_rate=6000
	bump_function=0
	bump_max=
	rebound_rate=2880
	rebound_function=0
	anti_pitch=0.14
  	roll_center
  	{
    		x=0
    		y=-0.75
    		z=0
  	}
}

susp0~susp_front
{
 
  	x=0.686


}

susp1~susp_front
{
  	x=-0.686


}

susp_rear
{
  	y=0.000
  	z=-1.05536
  	restlen=0.610
  	minlen=0.418
  	maxlen=0.650
	k=24000
	bumpstop_k=100000
	bumpstop_len=0
	bump_rate=6000
	bump_function=0
	rebound_rate=2975
	rebound_function=0
	anti_pitch=0.08
  	roll_center
  	{
    		x=0
    		y=-0.522
    		z=0
  	}
}

susp2~susp_rear
{
  	x=0.6875

}

susp3~susp_rear
{
  	x=-0.6875

}

tire_model
{
   relaxation_length_lat=0.91
   relaxation_length_long=.091
   damping_speed=0.15
   damping_coefficient_lat=0.75
   damping_coefficient_long=1.5
}
pacejka
{
; Lateral force
a0=1.1
a1=-46
a2=1345
a3=1495
a4=11
a5=0.013
a6=-0.14
a7=0.14
a8=0.019
a9=-0.019
a10=-0.18
a111=-11
a112=-0.021
a12=0.48
a13=10.2
a13=-2.4
; Longitudinal force
b0=1.35326

b1=-90.00000
b2=1345.00000
b3=23.30000
b4=400.00000
b5=0.00000
b6=0.00680
b7=0.05500
b8=-0.02400
b9=0
b10=0
b11=0
b12=0
; Aligning moment
c0=2.10000
c1=-3.90000
c2=-3.90000
c3=-1.26000
c4=-8.20000
c5=0.02500
c6=0.00000
c7=0.04400
c8=-0.58000
c9=0.18000
c10=0.04300
c11=0.04800
c12=-0.00350
c13=-0.18000
c14=0.14000
c15=-1.02900
c16=0.27000
c17=-1.10000
optimal_slipratio=0.14
optimal_slipangle=0.28
}
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
}

;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>   RUEDAS

wheel_front
{
   y=0
   z=0
   max_braking=1100
   braking_factor=1
   steering=1
   lock=60 
   ackerman=1.17
   mass=16
   inertia=1
   radius=0.28
   width=0.157		
   tire_rate=240000
   friction_road=1.7
   slices=15
   pacejka~pacejka
   {
   }
}

wheel0~wheel_front
{
   x=0
   y=0
   z=0
   camber=-0.5
   toe=-0.16
   
	model
	{
		file=ruedaI.dof

	}
}

wheel1~wheel_front
{
   x=0
   y=0
   z=0
   camber=-0.5
   toe=0.16
   
	model
	{
		file=ruedaD.dof

	}

}

wheel_rear
{
   y=0
   z=0
   max_braking=450
   braking_factor=1
   steering=0
   powered=1
   mass=16
   inertia=1
   radius=0.28
   width=0.157	
   max_handbrake_torque=2500
   tire_rate=240000
   friction_road=1.7
   slices=15
   pacejka~pacejka
   {
   }
}

wheel2~wheel_rear
{
   x=0
   y=0
   z=0
   camber=-0.5
   toe=-0.4
   
	model
	{
		file=ruedaI.dof

	}

}

wheel3~wheel_rear
{
   x=0
   y=0
   z=0
   camber=-0.5
   toe=0.4
   
	model
	{
		file=ruedaD.dof

	}

}

;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>   AUDIO

audio
{
	skid
	{
		sample=Skid.wav
	}
	horn
	{
		sample=horn.wav
	}
	acc_all
	{
		attack=2500
		decay=2500
	}
	accelerate_out
	{
		smp0~audio.acc_all
		{
			sample=rpm_1000.wav
			min=1000
			max=1001
			natural=1000
			volume=1
		}
		smp1~audio.acc_all
		{
			sample=rpm_2000.wav
			min=2000
			max=2001
			natural=2000
			volume=1.3
		}
		smp2~audio.acc_all
		{
			sample=rpm_3000.wav
			min=3000
			max=3001
			natural=3000
			volume=1.6
		}
		smp3~audio.acc_all
		{
			sample=rpm_4000.wav
			min=4000
			max=4001
			natural=4000
			volume=1.9
		}
		smp4~audio.acc_all
		{
			sample=rpm_5000.wav
			min=5000
			max=5001
			natural=5000
			volume=2.2
		}
		smp5~audio.acc_all
		{
			sample=rpm_6000.wav
			min=6000
			max=6001
			natural=6000
			volume=2.5
		}
		smp6~audio.acc_all
		{
			sample=rpm_7000.wav
			min=7000
			max=7001
			natural=7000
			volume=2.8
		}
	}
	decelerate_out
	{
		smp0~audio.acc_all
		{
			sample=rpm_1000.wav
			min=1000
			max=1001
			natural=1000
			volume=1
		}
		smp1~audio.acc_all
		{
			sample=rpm_2000.wav
			min=2000
			max=2001
			natural=2000
			volume=1.3
		}
		smp2~audio.acc_all
		{
			sample=rpm_3000.wav
			min=3000
			max=3001
			natural=3000
			volume=1.6
		}
		smp3~audio.acc_all
		{
			sample=rpm_4000.wav
			min=4000
			max=4001
			natural=4000
			volume=1.9
		}
		smp4~audio.acc_all
		{
			sample=rpm_5000.wav
			min=5000
			max=5001
			natural=5000
			volume=2.2
		}
		smp5~audio.acc_all
		{
			sample=rpm_6000.wav
			min=6000
			max=6001
			natural=6000
			volume=2.5
		}
		smp6~audio.acc_all
		{
			sample=rpm_7000.wav
			min=7000
			max=7001
			natural=7000
			volume=2.8
		}
	}
	wind
	{
		volume=9
		pitch_scale=1
		pitch_offset=30
		smp0
		{
			sample=wind1.wav
			min=5
			max=6
			attack=33
			decay=33
			natural=80
		}
		smp1
		{
			sample=wind2.wav
			min=30
			max=31
			attack=33
			decay=33
			natural=80
		}
		smp2
		{
			sample=wind3.wav
			min=55
			max=56
			attack=33
			decay=33
			natural=80
		}
	}
}


;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>   CAMARAS



;1
camera0
{
 follow
 {
  pitch=0
  yaw=0
  roll=0
 }
 offset
 {
  x=0
  y=0.25
  z=-9
 }
 angle
 {
  x=10
  y=150
  z=0
 }
 fov=25
 model=0
 wheels=1
 view=0
 name=Effect Cam 5
}


;2
camera1
{
  offset
  {
    x=0.081250
    y=-0.637501
    z=-4.245005
  }
  angle
  {
    x=6.666651
    y=-180.729126
    z=0.000000
  }
  name=Side view
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  fov=65
}

camera4
{
   	offset
   	{
      		x=-0.75
      		y=0.00
      		z=-20.00
   	}
   	angle
   	{
      		x=25.00
      		y=320.00
      		z=0.00
   	}
   	follow
   	{
      		pitch=0
      		yaw=0
      		roll=0
   	}
   	fov=15
   	view=1
	name=Heli
}

camera3
{
  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
  }
}

camera5
{
  offset
  {
    x=0
    y=1.513334
    z=-5.045006
  }
  angle
  {
    x=21
    y=180
    z=50
  }
  name=Close Behind
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  fov=50
  model=0
  wheels=0
  view=0
  src
  {
    mass=1
    k=200
    damping=30
    maxdist=1.5
  }
  dst
  {
    mass=1
    k=150
    damping=20
    maxdist=1.5
  }
}
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
  }
}


camera2
{
  name=Far
  fov=20
  model=0
  view=0
  wheels=0
  follow
  {
    pitch=0
    yaw=0
    roll=0
  }
  offset
  {
    x=0
    y=-0.5
    z=-17
  }
  angle
  {
    x=10
    y=50
    z=0
  }
}
;9
camera8
{
	name=Driver
	fov=65
	model=1
	view=1
	wheels=0
	follow
	{
		pitch=1
		yaw=1
		roll=1
	}
	offset
	{
		x=0.350
		y=0.40
		z=-0.1500
	}
	offset_to
	{
		x=0
		y=0
		z=15
	}
	angle
	{
		x=0
		y=180
		z=0
	}
	src
	{
		mass=5
		k=750
		damping=75
		maxdist=0.2
	}
	dst
	{
		mass=1
		k=0
		damping=0
		maxdist=0
	}
}

;0
camera9
{
	name=Driver
	fov=65
	model=1
	view=1
	wheels=0
	follow
	{
		pitch=1
		yaw=1
		roll=1
	}
	offset
	{
		x=0.350
		y=0.40
		z=0.0500
	}
	offset_to
	{
		x=0
		y=0
		z=15
	}
	angle
	{
		x=0
		y=180
		z=0
	}
	src
	{
		mass=5
		k=750
		damping=75
		maxdist=0.2
	}
	dst
	{
		mass=1
		k=0
		damping=0
		maxdist=0
	}
}
