car
{
	name=Opel Astra G
	year=1998 - 2003
	credits=Model: sin5k4, Adaptation: Damian A, Corections: johnthelemon, Waldy.
  	comments=1.7 CDTi, 170Nm@1800Nm, 80PS@4400Rpm, 5 speed FWD
  	wheels=4
  	id=opel_astra_g
  	version=090
	skid
	{
		sample=skid.wav
	}
  	shadow
  	{
    		texture=shadow.tga
    		width=2.2
    		length=4.9
    		offset_z=-0.06
  	}
  	cg
  	{
    		x=0
    		y=0
    		z=0
  	}
  	ff_factor=0.35
}

abs
{
  	enable=1
	min_velocity=5
  	max_velocity_ratio=1.10
  	min_velocity_ratio=1.09
}

traction_control
{
  	enable=0
	min_velocity=5
  	max_velocity_ratio=1.10
  	min_velocity_ratio=1.09
}

graphics
{
  shadow
  {
    model
    {
      file=body.dof
      use_shaders=1
    }
    intensity=0.3
  }
  generic
  {
    model0
    {
      file=driver_body.dof
      offset
      {
        x=0.325
        y=0.141
        z=-0.166
      }
    }
    model1
    {
      file=driver_head.dof
      offset
      {
        x=0.325
        y=0.141
        z=-0.166
      }
    }
  }
}

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

flares
{
  ; Headlights
  flare0
  {
    pos=0.560 -0.210 1.92
    color=0.8 0.9 1
    normal=0 0 1
    z_offset=-2500
    size_factor=0.5
    intensity=0.15
    hor_scale=3
    billboard=1
  }
  flare1
  {
    pos=-0.560 -0.210 1.92
    color=0.8 0.9 1
    normal=0 0 1
    z_offset=-2500
    size_factor=0.5
    intensity=0.15
    hor_scale=3
    billboard=1
  }
  ; Fog lights
  flare2
  {
    pos=0.48 -0.53 1.97
    color=0.8 0.9 1
    normal=0 0 1
    z_offset=-2500
    size_factor=0.5
    intensity=0.15
    hor_scale=1
  }
  flare3
  {
    pos=-0.48 -0.53 1.97
    color=0.8 0.9 1
    normal=0 0 1
    z_offset=-2500
    size_factor=0.5
    intensity=0.15
    hor_scale=1
  }
  ; Taillights
  flare4
  {
    pos=0.65 0.02 -1.90
    color=0.75 0.0 0.125
    normal=0 0 -1
    z_offset=-2500
    size_factor=0.5
    intensity=0.125
    hor_scale=3
    billboard=1
  }
  flare5
  {
    pos=-0.65 0.02 -1.90
    color=0.75 0.0 0.125
    normal=0 0 -1
    z_offset=-2500
    size_factor=0.5
    intensity=0.125
    hor_scale=3
    billboard=1
  }
  ;Brake lights
  flare6
  {
    pos=0.65 0.02 -1.90
    color=1 0.125 0.0
    normal=0 0 -1
    z_offset=-2500
    size_factor=0.5
    intensity=0.15
    rule=brake
    hor_scale=2
    billboard=1
  }
  flare7
  {
    pos=-0.65 0.02 -1.90
    color=1 0.125 0.0
    normal=0 0 -1
    z_offset=-2500
    size_factor=0.5
    intensity=0.15
    rule=brake
    hor_scale=2
    billboard=1
  }
  flare8
  {
    pos=0.0 0.43 -1.31
    color=1 0.125 0
    normal=0 0 -1
    z_offset=-2500
    size_factor=0.25
    intensity=0.15
    hor_scale=7
    rule=brake
    billboard=1
  }
}

body
{
  	mass=1120
  	inertia
  	{
    		x=1740
    		y=1840
    		z=390
  	}
  	model
  	{
    		file=body.dof
  	}
  	model_incar
  	{
    		file=body.dof
  	}
 	model_light_l
  	{
    		file=lights_exterior.dof
  	}
 	model_lightroad_l
  	{
    		file=lights_interior.dof
  	}
  	model_braking_l
  	{
    		file=lights_brake.dof
  	}
  	model_reverse_l
  	{
    		file=lights_reverse.dof
  	}

  	width=1.645
  	height=1.190
  	length=4.025
  	manual_box=0
}

steer
{
  	x=0.325
  	y=-0.040
  	z=0.435
  	radius=10
  	xa=17
  	lock=1080
  	linearity=0.65
  	model
  	{
    		file=steer.dof
  	}
}

engine
{
  	mass=140
  	idle_rpm=500
  	max_rpm=6000
  	start_rpm=750
  	stall_rpm=250
  	autoclutch_rpm=750
  	starter=1
  	starter_torque=75
  	start_stalled=1
  	curve_torque=torque.crv
  	max_torque=170
  	torque_reaction=0.15
  	shifting
  	{
    		automatic=0
		fast=0
    		shift_up_rpm=3000
    		shift_down_rpm=1500
    		time_to_declutch=150
    		time_in_neutral=100
    		time_to_clutch=150
    		time_to_declutch_down=150
    		time_in_neutral_down=100
    		time_to_clutch_down=150
  	}
  	inertia
  	{
    		engine=0.25
  	}
  	braking_coeff=1.50
        braking_offset=5
}

gearbox
{
	gears=6
  	gear0
  	{
    		ratio=-2.42
    		inertia=0.024
    		engine_map=0.67
  	}
  	gear1
  	{
    		ratio=2.85
    		inertia=0.028
    		engine_map=0.67
  	}
  	gear2
  	{
    		ratio=2.00
    		inertia=0.02
    		engine_map=0.875
  	}
  	gear3
  	{
    		ratio=1.42
    		inertia=0.014
    		engine_map=1.00
  	}
  	gear4
  	{
    		ratio=1.03
    		inertia=0.01
    		engine_map=1.00
  	}
  	gear5
  	{
    		ratio=0.75
    		inertia=0.007
    		engine_map=1.00
  	}
}

clutch
{
	max_torque=200
}

handbrakes
{
	wheels=23
}

differential
{
  	type=1
  	ratio=3.23
  	inertia=0.1
  	locking_coeff=50
  	output0=0
  	output1=1
}

aero
{
  	body
  	{
    		center=0 0 0
    		cx=0.325
    		area=1.9536
  	}
  	wings=1
  	wing0
  	{
    		name=overall lift
    		span=1.7
    		cord=1.0
    		coeff_drag=0.0
   		coeff_down=-1.5
    		center=0.0 0.0 -0.75
    		angle=0
    		angle_offset=10
  	}
}

antirollbar
{
  	count=2
  	arb0
  	{
    		susp_left=0
    		susp_right=1
   		k=18000
  	}
  	arb1
  	{
    		susp_left=2
    		susp_right=3
    		k=7500
  	}
}

susp_front
{
  	y=-0.18
  	z=1.30
  	restlen=0.50
  	minlen=0.30
  	maxlen=0.50
  	k=25500
  	bump_rate=1400
  	bump_function=3
  	rebound_rate=3250
  	rebound_function=0
  	anti_pitch=0.2
  	camber_change_per_m=0.417
    	caster_offset=-0.046
  	roll_center
  	{
    	  x=0
    	  y=-0.325
    	  z=0
  	}
}

susp0~susp_front
{
    	x=0.710
    	camber_change_steering=0.050
    	toe_change_per_m=0.035
    
}
susp1~susp_front
{
    	x=-0.710
    	camber_change_steering=0.050
    	toe_change_per_m=-0.035
}

susp_rear
{
  	y=-0.18
  	z=-1.35
  	restlen=0.47
  	minlen=0.30
  	maxlen=0.51
  	k=32800
 	bump_rate=1500
  	bump_function=3
  	rebound_rate=4250
  	rebound_function=0
  	anti_pitch=0.1
  	camber_change_per_m=0.306
  	roll_center
  	{
	   x=0
    	   y=-0.275
    	   z=0
  	}
}

susp2~susp_rear
{
    	x=0.705
    	toe_change_per_m=-0.016
}

susp3~susp_rear
{
    	x=-0.705
    	toe_change_per_m=0.016
}

tire_model_front
{
	damping_predict_lat=0.45
  	damping_predict_long=0.015
}

tire_model_rear
{
  	damping_predict_lat=0.45
  	damping_predict_long=0.015
}

pacejka
{
   	a0=1.4
   	a1=-29
   	a2=1125
   	a3=1700
   	a4=11
   	a5=0.015
   	a6=-0.25
   	a7=1.0
   	a8=-0.03
   	a9=-0.001
   	a10=-0.15
   	a111=-8.0
   	a112=-0.29
   	a12=17.8
   	a13=-2.4

   	b0=1.5
   	b1=-58
   	b2=1250
   	b3=23.3
   	b4=325
   	b5=0.08
   	b6=0.0
   	b7=0.05
   	b8=-0.024
   	b9=0.015
   	b10=0.25
   	b11=-86
   	b12=0.0

   	c0=2.3
   	c1=-3.8
   	c2=-3.14
   	c3=-1.0
   	c4=-7.2
   	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.04
   	c15=-1.029
   	c16=0.27
   	c17=-1.1

   	optimal_slipratio=0.10
   	optimal_slipangle=0.23
}

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
}

wheel_front
{
	y=0
	z=0
  	steering=1
	lock=67.8
	ackerman=1.218
	mass=30
	inertia=1.0
	radius=0.295
	rolling_coeff=0.015
	;friction_road=1
	max_braking=2000
	braking_factor=0.8
	tire_rate=175000
	pacejka~pacejka
	{
	}
}

wheel0~wheel_front
{
	x=0
	toe=-0.369
	camber=1.944
    	model
  	{
    		file=left_std.dof
  	}
    		model_brake
  	{
    		;file=
  	}
}

wheel1~wheel_front
{
  	x=0
  	toe=0.369
  	camber=1.944
    	model
  	{
    		file=right_std.dof
  	}
    		model_brake
  	{
    		;file=
  	}
}

wheel_rear
{
	y=0
	z=0
	steering=0
	lock=0
	mass=30
  	inertia=1.0
  	radius=0.295
  	rolling_coeff=0.015
  	;friction_road=1
  	max_braking=2000
  	max_handbrake_torque=1500
  	braking_factor=0.2
  	tire_rate=175000
  	pacejka~pacejka
  	{
  	}
}

wheel2~wheel_rear
{
  	x=0
  	toe=-0.078
  	camber=-0.044
    	model
  	{
    		file=left_std.dof
  	}
   	model_brake
  	{
    		;file=
  	}
}

wheel3~wheel_rear
{
  	x=0
  	toe=0.078
  	camber=-0.044
    	model
  	{
    		file=right_std.dof
  	}
    	model_brake
  	{
    		;file=
  	}
}

camera0
{
	name=Driver
	fov=65
	model=1
	view=1
	wheels=0
	follow
	{
		pitch=1
		yaw=1
		roll=1
	}
	offset
	{
		x=0.325
		y=0.25
		z=-0.10
	}
	offset_to
	{
		x=0.325
		y=0
		z=10
	}
	src
	{
		mass=5
		k=750
		damping=75
		maxdist=0.2
	}
	dst
	{
		mass=1
		k=0
		damping=0
		maxdist=0
	}
}

camera1
{
  	name=Close Behind
  	fov=60
  	model=0
  	view=0
  	wheels=1
	offset
  	{
    		x=0
    		y=1.0
    		z=-5
  	}
	offset_to
  	{
    		x=0
    		y=0.0
    		z=10
  	}
  	follow
  	{
    		pitch=0
    		yaw=1
    		roll=0
  	}
  	src
  	{
    		mass=1
    		k=200
    		damping=30
   		maxdist=1.5
  	}
  	dst
  	{
   		mass=1
    		k=150
    		damping=20
    		maxdist=1.5
  	}
}

camera2
{
	name=Chase Far
  	fov=60
  	model=0
  	view=0
  	wheels=1
   	offset
   	{
      		x=0.00
      		y=1.50
      		z=-6.00
   	}
	offset_to
  	{
    		x=0
    		y=0
    		z=10
  	}
   	follow
   	{
      		pitch=0
      		yaw=1
      		roll=0
   	}
 	src
 	{
  		mass=5
  		k=500
  		damping=100
  		maxdist=2
 	}
	dst
	{
		mass=1
		k=0
		damping=0
		maxdist=0
	}
}

camera3
{
 	name=Hi-Speed Bumper Cam
 	fov=75
 	model=2
 	view=1
 	wheels=0
 	offset
 	{
  		x=0
  		y=0
  		z=2.1
 	}
 	angle
 	{
  		x=0
  		y=180
  		z=0
 	}
 	follow
 	{
  		pitch=1
  		yaw=1
  		roll=1
 	}
}

camera4
{
  	name=Hood Cam
  	fov=70
  	model=0
  	view=0
  	wheels=0
  	follow
  	{
    		pitch=1
    		yaw=1
    		roll=1
  	}
  	offset
  	{
    		x=0
    		y=-0.4
    		z=0.65
  	}
  	angle
  	{
    		x=7
    		y=180
    		z=0
  	}
}

camera5
{
  	name=Effect Cam 1
  	fov=68
  	model=0
  	view=0
  	wheels=1
  	offset
  	{
    		x=-0.67
    		y=-0.17
    		z=-3.94
  	}
  	angle
  	{
    		x=2.5
    		y=-150
    		z=-15
  	}
  	follow
  	{
    		pitch=0
    		yaw=1
    		roll=0
  	}
}

camera6
{
 	name=Free Cam
 	fov=60
 	model=0
 	view=1
 	wheels=1
 	follow
 	{
  		pitch=0
  		yaw=0
  		roll=0
 	}
 	offset
 	{
  		x=0
  		y=-0.5
  		z=-7.5
 	}
 	angle
 	{
  		x=6
  		y=30
  		z=0
 	}
}

camera7
{
 	name=Effect Cam 3
 	fov=68
 	model=0
 	view=0
 	wheels=1
 	follow
 	{
  		pitch=0
  		yaw=1
  		roll=0
 	}
 	offset
 	{
  		x=0
  		y=0
  		z=-9
 	}
 	angle
 	{
  		x=4
  		y=34
  		z=-14
 	}
}

camera8
{
 	name=Effect Cam 4 - Wheel
 	fov=68
 	model=0
 	view=0
 	wheels=0
 	offset
 	{
  		x=1.15
  		y=0.2
  		z=0.35
 	}
 	angle
 	{
  		x=-2
  		y=-175
  		z=-7
 	}
 	follow
 	{
  		pitch=1
  		yaw=1
  		roll=1
 	}
}

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

audio
{
  skid
  {
    sample=skid.wav
    ;sample2=skid2.wav
  }
  shiftout
  {
    sample=shiftout.wav
  }
  shiftin
  {
    sample=shiftin.wav
  }
  accelerate_out
  {
    smp0
    {
      sample=idle5.wav
      volume=0.74
      min=600
      max=1500
      attack=1000
      decay=2200
      natural=900
    }
    smp1
    {
      sample=low.wav
      min=1500
      max=3000
      attack=1000
      decay=2100
      natural=3200
      volume=1.5
    }
    smp2
    {
      sample=hi2.wav
      min=2700
      max=7500
      attack=1000
      decay=1000
      natural=4200
      volume=1.4
    }
   smp3
      {
	   volume=0.040
         sample=turbo.wav
         min=1100
         max=7000
         natural=200
	   attack=55
          decay=3000
      }
  }
  decelerate_out
  {  
   smp0
    {
      sample=idle5.wav
      volume=0.65
      min=300
      max=1100
      decay=1800
      natural=840
    }
    smp1
    {
      sample=midoff.wav
      volume=0.3
      min=1000
      max=2000
      decay=10000
      natural=5200
    }
    smp2
    {
      sample=highoff.wav
      volume=0.3
      min=8000
      max=10000
      attack=8000
      natural=6000
    }
      smp3
      {
	   volume=0.035
         sample=turbo.wav
         min=1440
         max=1610
         natural=200
	   attack=5
          decay=3000
      }
  }
  accelerate_in
  {
     smp0
    {
      sample=idle-int.wav
      volume=0.83
      min=300
      max=1000
      decay=700
      natural=1700
    }
  smp1
    {
      sample=idle3.wav
      volume=0.12
      min=200
      max=2100
      attack=1000
      decay=3500
      natural=1000
    }
    smp2
    {
      sample=mid-int.wav
      min=1500
      max=3700
      attack=3000
      decay=4000
      natural=2300
      volume=9.9
    }
    smp2
    {
      sample=hi2-int.wav
      min=3700
      max=7500
      attack=3000
      decay=1000
      natural=4500
      volume=6.5
    }
   smp3
      {
	   volume=0.017
         sample=turbo.wav
         min=1100
         max=7000
         natural=200
         attack=45
          decay=3000
      }
  }
  decelerate_in
  {
       smp0
    {
      sample=idle-int.wav
      volume=0.39
      min=300
      max=1000
      decay=700
      natural=1720
    }
    smp1
    {
      sample=midoff.wav
      volume=0.2
      min=1000
      max=2000
      decay=10000
      natural=5200
    }
    smp2
    {
      sample=highoff.wav
      volume=0.3
      min=8000
      max=10000
      attack=8000
      natural=6000
    }
      smp3
      {
	   volume=0.012
         sample=turbo.wav
         min=1440
         max=1610
         natural=200
	   attack=25
          decay=3000
      }
  }
  wind
  {
    smp0
    {
      sample=wind.wav
      volume=0.15
      min=11
      max=150
      attack=10
      natural=50
    }
  }
}