car
{
  name=Dodge Viper GTS
  year=1997
  id=dodgeviperGTS
  credits=Model converted from Juiced 2 by Minion3425, Dials by Blo0m
  comments=.ini Help from Engine of Darkness, Sounds by Skepsis
  version=050f
  wheels=4
  cg
  {
    x=0
    y=-0.08 ; -0.1
    z=0
  }
  ff_factor=2
}
graphics
{
  shadow
  {
    model
    {
      file=body.dof
      use_shaders=0
    }
  }
}
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
  }
}
flares
{
	; Front lights
	flare0
	{
		pos=-0.690336 -0.0459 1.87272
		normal=0 0 1
		size_factor=1
		hor_scale=1
		intensity=2
		z_offset=-1000
	}
	flare1
	{
		pos=0.690336 -0.0459 1.87272
		normal=0 0 1
		size_factor=1
		hor_scale=1
		intensity=2
		z_offset=-1000
	}
	flare2
	{
		pos=-0.80784 -0.0459 1.7442
		normal=0 0 1
		size_factor=1
		hor_scale=1
		intensity=2.0
		z_offset=-1000
	}
	flare3
	{
		pos=0.80784 -0.0459 1.7442
		normal=0 0 1
		size_factor=1
		hor_scale=1
		intensity=2.0
		z_offset=-1000
	}
	flare4
	{
		pos=-0.538866 -0.06426 1.85436
		normal=0 0 1
		size_factor=1
		hor_scale=1
		intensity=3.0
		z_offset=-1000
	}
	flare5
	{
		pos=0.538866 -0.06426 1.85436
		normal=0 0 1
		size_factor=1
		hor_scale=1
		intensity=3.0
		z_offset=-1000
	}
	; rear lights
	flare6
	{
		rule=rear
		pos=-0.62883 0.03213 -2.08386
		normal=0 0 -1
		size_factor=1
		hor_scale=1
		intensity=1
		color=1.0 0.3 0.3
		z_offset=-1000
	}
	flare7
	{
		rule=rear
		pos=0.62883 0.03213 -2.08386
		normal=0 0 -1
		size_factor=1
		hor_scale=1
		intensity=1
		color=1.0 0.3 0.3
		z_offset=-1000
	}
	flare8
	{
		rule=rear
		pos=0 0.20196 -2.17566
		normal=0 0 -1
		size_factor=1
		hor_scale=1
		intensity=1
		color=1.0 0.3 0.3
		z_offset=-1000
	}
	flare9
	{
		rule=rear
		pos=-0.53703 0.03213 -2.1114
		normal=0 0 -1
		size_factor=1
		hor_scale=1
		intensity=1
		color=1.0 0.3 0.3
		z_offset=-1000
	}
	flare10
	{
		rule=rear
		pos=0.53703 0.03213 -2.1114
		normal=0 0 -1
		size_factor=1
		hor_scale=1
		intensity=1
		color=1.0 0.3 0.3
		z_offset=-1000
	}
	flare11
	{
		rule=rear
		pos=-0.72981 0.03213 -2.0196
		normal=0 0 -1
		size_factor=1
		hor_scale=1
		intensity=1
		color=1.0 0.3 0.3
		z_offset=-1000
	}
	flare12
	{
		rule=rear
		pos=0.72981 0.03213 -2.0196
		normal=0 0 -1
		size_factor=1
		hor_scale=1
		intensity=1
		color=1.0 0.3 0.3
		z_offset=-1000
	}
	; Brake lights
	flare13
	{
		rule=brake
		pos=-0.62883 0.03213 -2.08386
		normal=0 0 -1
		size_factor=1
		hor_scale=1
		intensity=3
		color=1.0 0.3 0.3
		z_offset=-1000
	}
	flare14
	{
		rule=brake
		pos=0.62883 0.03213 -2.08386
		normal=0 0 -1
		size_factor=1
		hor_scale=1
		intensity=3
		color=1.0 0.3 0.3
		z_offset=-1000
	}
	flare15
	{
		rule=brake
		pos=0 0.20196 -2.17566
		normal=0 0 -1
		size_factor=1
		hor_scale=1
		intensity=3
		color=1.0 0.3 0.3
		z_offset=-1000
	}
	flare16
	{
		rule=brake
		pos=-0.53703 0.03213 -2.1114
		normal=0 0 -1
		size_factor=1
		hor_scale=1
		intensity=3
		color=1.0 0.3 0.3
		z_offset=-1000
	}
	flare17
	{
		rule=brake
		pos=0.53703 0.03213 -2.1114
		normal=0 0 -1
		size_factor=1
		hor_scale=1
		intensity=3
		color=1.0 0.3 0.3
		z_offset=-1000
	}
	flare18
	{
		rule=brake
		pos=-0.72981 0.03213 -2.0196
		normal=0 0 -1
		size_factor=1
		hor_scale=1
		intensity=3
		color=1.0 0.3 0.3
		z_offset=-1000
	}
	flare19
	{
		rule=brake
		pos=0.72981 0.03213 -2.0196
		normal=0 0 -1
		size_factor=1
		hor_scale=1
		intensity=3
		color=1.0 0.3 0.3
		z_offset=-1000
	}
}
ai
{
  understeer_correct=10
  oversteer_correct=10
  grip_factor=1.2
  ;max_velocity=100
}
body
{
  mass=1551
  inertia
  {
    x=2310
    y=2810
    z=590
  }
  width=2.24
  height=0.7
  length=4.55
  manual_box=1
  cockpit_start=1
  cockpit_length=1
  model
  {
    file=body.dof
  }
  model_collide
  {
    ; 3D collision model (Newton only)
    file=collision.dof
  }
  model_incar
  {
    file=body_int.dof
  }
  model_braking_l
  {
    file=blights.dof
  }
  model_reverse_l
  {
    ; Reverse gear indicators
    file=reverse_lights.dof
  }
  model_lightroad_l
  {
    file=lights_in.dof
    lod_out=100
  }
  model_light_r
  {
    file=hlights.dof
  }
}
steer
{
 x=0.41418
 y=0.0648
 z=-0.0324
 radius=10
 xa=14
 lock=900
 linearity=0.0001
 model
 {
  file=steer.dof
  lod0_z=0
  lod1_z=2
  lod_out=234
 }
}
engine
{
  x=0
  y=0
  z=0
  size=0
  mass=0
  max_rpm=6100
  idle_rpm=950
  curve_torque=torque.crv
  max_torque=664
  autoclutch_rpm=1250	;0.306 in 3rd
  starter=1
  starter_torque=90
  start_stalled=1
  stall_rpm=400
  start_rpm=1050
  ; Reaction of engine torque through body roll (0..1)
  torque_reaction=1.0
  shifting
  {
    automatic=0
    shift_up_rpm=7000
    shift_down_rpm=3000
    time_to_declutch=325
    time_to_clutch=25
	; Blip throttle when downshifting?
	blip_throttle=0.5
	; Cut throttle when upshifting?
	cut_throttle=1
  }
  inertia
  {
    engine=0.35
    final_drive=0.1
  }
  ; Engine braking torque
  ;braking_coeff=3.3
  rolling_friction_coeff=0
  friction=0
  sample=6000.wav
  sample_rpm=6000
}
gearbox
{
  gears=7
  gear0
  {
    ratio=-2.529
    inertia=0.1
    engine_map=0.5
  }
  gear1
  {
    ratio=2.66
    inertia=0.06
    engine_map=1
  }
  gear2
  {
    ratio=1.78
    inertia=0.05
    engine_map=1.1
  }
  gear3
  {
    ratio=1.30
    inertia=0.04
    engine_map=1.2
  }
  gear4
  {
    ratio=1.00
    inertia=0.03
    engine_map=1.3
  }
  gear5
  {
    ratio=0.74
    inertia=0.02
    engine_map=1.4
  }
  gear6
  {
    ratio=0.50
    inertia=0.01
    engine_map=1.5
  }
}
clutch
{
  max_torque=750
}
handbrakes
{
  wheels=23
}
differential
{
  type=1
  ratio=3.07
  inertia=0.15
  locking_coeff=275
  output0=2
  output1=3
}
aero
{
	draft
	{
		; Drafting/slipstreaming - scaling in meters of the area behind the car, based on velocity
		; Use gfx.show_aero=1 in racer.ini to visualize the draft areas
		scale_lat_rear=2
		scale_lon_rear=2.2
		; Air bubble in front
		;should stay at these values, otherwise the car infront gets "pushed" like theres no tomorrow at higher speeds (Engine Of Darkness)
		;nevermind what I wrote, I read up some stuff about this, the car behind actually really pushes the front car a great deal at higher speeds
		scale_lat_front=0.4
		scale_lon_front=0.25
	}
	body
	{
		center=0 0 0
		cx=0.39
		area=1.79
	}
	wings=2
	wing0
	{
		name=Overall aerodynamic effect F
		span=1
		cord=0.1
		coeff_drag=0.1
		coeff_down=3.18	
		center=0 -0.3 2.21
		angle=0
		angle_offset=10
	}
	wing1
	{
		name=Overall aerodynamic effect R
		span=1
		cord=0.1
		coeff_drag=0.1
		coeff_down=2.82
		center=0 -0.3 -2.39
		angle=0
		angle_offset=10
	}
}
antirollbar
{
	count=2
	arb0
	{
		susp_left=0
		susp_right=1
		k=47000
	}
	arb1
	{
		susp_left=2
		susp_right=3
		k=39000
	}
}
susp_front
{
	y=-0.032
	z=1.4
	anti_pitch=0.2
	restlen=0.4255
	minlen=0.27
	maxlen=0.46
	k=40950
	bump_rate=2450
	rebound_rate=4500
	bump_function=0
	rebound_function=0
	bumpstop_k=100000
	bumpstop_len=0.03
	reboundstop_k=150000
	reboundstop_len=0.03
	camber_change_steering=0.1062
	roll_center
	{
		x=0
		y=-0.483
		z=0
	}
}
susp_rear
{
	y=-0.032
	z=-1.12
	anti_pitch=0.2
	restlen=0.42		
	minlen=0.27
	maxlen=0.46
	k=49550	
	bump_rate=2300
	rebound_rate=4700
	bump_function=0
	rebound_function=0
	bumpstop_k=150000
	bumpstop_len=0.03
	reboundstop_k=250000
	reboundstop_len=0.03
	roll_center
	{
		x=0
		y=-0.462
		z=0
	}
}
susp0~susp_front
{
	x=0.79
	toe_change_per_m=0.029
	caster_offset=-0.017
}
susp1~susp_front
{
	x=-0.79
	toe_change_per_m=-0.029
	caster_offset=-0.017
}
susp2~susp_rear
{
	x=0.81
	toe_change_per_m=0.019	
}
susp3~susp_rear
{
	x=-0.81
	toe_change_per_m=-0.019
}

tire_model
{
	relaxation_length_lat=0.91
	relaxation_length_long=.091
	damping_speed=0.15
	damping_coefficient_lat=35
	damping_coefficient_long=1
}
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=0
    a112=0
    a12=17.8
    a13=-2.4
    b0=1.5
    b1=-70
    b2=1300
    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
	ackerman=1.1
	steering=1
	lock=58
	powered=0
	mass=25
	inertia=0.2
	radius=0.310392
	rolling_coeff=0.011
	max_braking=1250
	braking_factor=1
	tire_rate=300000
	pacejka~pacejka
	{  
       a2=1250
	}
}
wheel_rear
{
	y=0
	z=0
	steering=0
	powered=0
	mass=35
	width=.5
	inertia=0.3
	radius=.33507
	rolling_coeff=0.015
	max_braking=950
	max_handbrake_torque=10000
	braking_factor=1
	tire_rate=300000
	pacejka~pacejka
	{
	b2=1400
	}
}
wheel0~wheel_front
{
  x=0
  toe=-0
  camber=-1.7
  model
  {
    file=fl.dof
  }
  model_brake
  {
    file=fb.dof
  }
}
wheel1~wheel_front
{
  x=0
  toe=0
  camber=-1.7
  model
  {
    file=fr.dof
  }
  model_brake
  {
    file=fb.dof
  }
}
wheel2~wheel_rear
{
  x=0
  toe=-0.5
  camber=-1.3
  model
  {
    file=rl.dof
  }
  model_brake
  {
    file=rb.dof
  }
}
wheel3~wheel_rear
{
  x=0
  toe=0.5
  camber=-1.3
  model
  {
    file=rr.dof
  }
  model_brake
  {
    file=rb.dof
  }
}
camera0
{
  offset
  {
    x=0
    y=-0.6
    z=-5.5
  }
  angle
  {
    x=10
    y=180
    z=0
  }
  name=Chase Far
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
}
camera1
{
  offset
  {
    x=0.42
    y=-0.5
    z=0.42
  }
  angle
  {
    x=5
    y=180
    z=0
  }
  name=DriverLeft
  fov=65
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
}
camera2
{
  offset
  {
    x=-0.42
    y=-0.5
    z=0.42
  }
  angle
  {
    x=5
    y=180
    z=0
  }
  name=DriverRight
  fov=65
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
}
camera3
{
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=0
    y=-0.6
    z=1.4
  }
  angle
  {
    x=4
    y=180
    z=0
  }
  name=Inside Right Driver
  fov=70
}
camera4
{
  offset
  {
    x=-0.4
    y=0.45
    z=-7.5
  }
  angle
  {
    x=16
    y=130
    z=0.25
  }
}
camera5
{
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  offset
  {
    x=0.48
    y=0.50
    z=-3.9
  }
  angle
  {
    x=15
    y=-50
    z=2.5
  }
  name=Wheels
  fov=65
}
camera6
{
  follow
  {
    pitch=1
    yaw=1
    roll=0
  }
  offset
  {
    x=-0.25
    y=0.75
    z=-4.8
  }
  angle
  {
    x=23
    y=-360
    z=20
  }
  fov=60
}
camera7
{
  offset
  {
    x=1.8
    y=0
    z=-0.4
    ;z=-0.6
  }
  angle
  {
    x=-2
    y=-140
    z=3
  }
  follow
  {
    pitch=0
    yaw=1
    roll=1
  }
  fov=60
}
camera8
{
  offset
  {
    x=0
    y=0
    z=-5
  }
  angle
  {
    x=2
    y=-130
    z=3
  }
  follow
  {
    pitch=0
    yaw=1
    roll=1
  }
  fov=65
}
camera9
{
 follow
 {
  pitch=1
  yaw=1
  roll=1
 }
 offset
 {
    x=0.4212
    y=.3296
    z=-0.562
 }
 offset_to
 {
    x=0.4212
    y=0.2496
    z=0.938
 }
 angle
 {
  x=7.0
  y=-180
  z=0
 }
 src
 {
  mass=1
  k=500
  damping=90
  maxdist=0.25
 }
 dst
 {
  mass=1
  k=100
  damping=70
  maxdist=0
 }
 fov=65
 model=1
 wheels=0
 view=1
 name=Inside Driver (dynamic)
}

;	------------------ 5.1 ALPHA AUDIO COMPATABILTY -----------------
audio
{
	;###Setup for the Different Audio Parts###
	acc_out
	{
		volume=0.35
		attack=1000
		decay=1000
	}
	dec_out
	{
		volume=0.25
		attack=1000
		decay=1000
	}  
	acc_in
	{
		volume=0.25
		attack=1000
		decay=1000
	}
	dec_in
	{
		volume=0.15
		attack=1000
		decay=1000
	}
	;###End of Setup###
	horn
	{
		sample=sounds/horn.wav
	}
	shiftin
	{
		;sample=shift_in.wav
	}
	shiftout
	{
		;sample=shift_out.wav
	}
	accelerate_out
	{
		smp0~audio.acc_out
		{
			sample=sounds/idle.wav
			min=500
			max=1000
			natural=1000
			decay=200
			attack=0
		}
		smp1~audio.acc_out
		{
			sample=sounds/onlow.wav
			min=1300
			max=3000
			natural=3000
			attack=400
		}
		smp2~audio.acc_out
		{
			sample=sounds/onmid.wav
			min=3000
			max=4700
			natural=4000
		}
		smp3~audio.acc_out
		{
			sample=sounds/onhigh.wav
			min=4700
			max=9000
			natural=4800
		}
	}
	decelerate_out
	{
		smp0~audio.dec_out
		{
			sample=sounds/idle.wav
			min=500
			max=1000
			natural=1000
			decay=200
			attack=0
		}
		smp1~audio.dec_out
		{
			sample=sounds/offlow.wav
			min=1300
			max=3000
			natural=3000
			attack=400
		}
		smp2~audio.dec_out
		{
			sample=sounds/offmid.wav
			min=3000
			max=4700
			natural=4000
		}
		smp3~audio.dec_out
		{
			sample=sounds/offhigh.wav
			min=4700
			max=9000
			natural=4800
		}
	}
	accelerate_in
	{
		smp0~audio.acc_in
		{
			sample=sounds/idle.wav
			min=500
			max=1000
			natural=1000
			decay=200
			attack=0
		}
		smp1~audio.acc_in
		{
			sample=sounds/onlow.wav
			min=1300
			max=3000
			natural=3000
			attack=400
		}
		smp2~audio.acc_in
		{
			sample=sounds/onmid.wav
			min=3000
			max=4700
			natural=4000
		}
		smp3~audio.acc_in
		{
			sample=sounds/onhigh.wav
			min=4700
			max=9000
			natural=4800
		}
	}
	decelerate_in
	{
		smp0~audio.dec_in
		{
			sample=sounds/idle.wav
			min=500
			max=1000
			natural=1000
			decay=200
			attack=0
		}
		smp1~audio.dec_in
		{
			sample=sounds/offlow.wav
			min=1300
			max=3000
			natural=3000
			attack=400
		}
		smp2~audio.dec_in
		{
			sample=sounds/offmid.wav
			min=3000
			max=4700
			natural=4000
		}
		smp3~audio.dec_in
		{
			sample=sounds/offhigh.wav
			min=4700
			max=9000
			natural=4800
		}
	}
	wind
	{
		pitch_scale=0.2
		pitch_offset=10
		smp0
		{
			sample=sounds/wind.wav
			volume=0.5
			min=25
			max=400
			attack=25
			decay=100
			natural=10
		}
	}	
	;gearwhine
	;{
	;	pitch_scale=0.50
	;	pitch_offset=775
	;	smp0
	;	{
	;		sample=sounds/rgearwhine.wav
	;		volume=1.0
	;		decay=399
	;		attack=399
	;		min=400
	;		max=1500
	;		natural=775
	;	}
	;}
	skid
	{
		volume=1
		smp0
		{
			sample=sounds/skid_rubbing.wav
			min=0.2
			max=0.3
			attack=0.1
			decay=0.2
		}
		smp1
		{
			sample=sounds/skid_mid.wav
			min=0.4
			max=2.0
			attack=0.2
			decay=0.4
		}
		smp2
		{
			sample=sounds/skid_high.wav
			min=2.0
			max=20
			attack=0.4
			decay=0.4
		}
	}
}

traction_control
{
  enable=0
  ; Allowed front/rear wheel speed ratio (1.1=10% difference allowed)
  max_velocity_ratio=1.1
  ; When to turn TC off
  min_velocity_ratio=1.0
  min_velocity=0
}
abs
{
  ; Anti-lock braking system
  enable=0
  ; Allowed front/rear wheel speed ratio
  max_velocity_ratio=1.1
  ; When to turn TC off
  min_velocity_ratio=1.0
  min_velocity=0.1
  ; Braking factor when ABS is applied
  braking_factor=0.5
}
