car
{
       name=Volvo XC90 GNR 
       year=2017
       credits=Model by GTA V, converted to Racer by Arouca21/racer Simulator Portugal
       comments=Hybrid 321 cv/ 524 Nm
       id=Volvoxc90
       version=090b
       wheels=4
       shadow
       {
           texture=shadow.tga
           width=2.5
           length=5.3
           offset_z=0.0
           offset=0
       }
       cg
       {
          x=0
          y=-0.38
          z=0.23
       }
}
graphics
{
  	shadow
  	{
    		model
    		{
      			file=shadow.dof
			use_shaders=0
    		}
		intensity=0.2
  	}
	generic
	{
		model0
                {
                        file=capot.dof
                }
                model1
                {
                        file=choques_tras.dof
                }
                model2
                {
                        file=porta_condutor.dof
                }
                model3
                {
                        file=porta_passageiro.dof
                }
                model4
                {
                        file=porta_tras_esquerda.dof
                }
                model5
                {
                        file=porta_tras_direita.dof
                }
                model6
                {
                        file=mala.dof
                }
                model7
                {
                        file=choques_frente.dof
                }
                model8
                {
                        file=cocpit.dof
                }
                model9
                {
                        file=motor.dof

    		}
	}
}

::::::::::::::::::::::::::::::::::::::KOROSERIA::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
body
{
  	mass=2300
  	inertia
  	{
    		x=1855
    		y=1959
    		z=409
  	}
  	model
  	{
    		file=body.dof
  	}
  	model_incar
  	{
    		file=body.dof
  	}
	model_light_l
	{
		file=lights.dof
	}
	model_braking_l
	{
		file=brakes.dof
	}
 model_lightroad_l
 {
  file=lightsin.dof
 }
  model_reverse_l
  {
    file=reverse.dof
  }
  model_reverse_r
  {
    file=brakes.dof
}
        width=1.886
        height=1.486
        length=5.113
  	manual_box=1
}
steer
{
        x=0.368
        y=0.379
        z=0.41
  	xa=25
        lock=1080
  	linearity=0.003
  	model
  	{
    		file=volante.dof
  	}
}
lights
{
  ; Projected lights
  light0
  {
    texture=light.tga
    ; Field of view (vertical)
    fov=65
    ; Aspect (horizontal)
    aspect=3
    ; Distance to car
    z=2
    ; Pitching with respect to car (in degrees)
    pitch=-2
    ; Fall-off distance
    far=300
  }
}
:::::::::::::::::::::::::::::::::ABS::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
abs
{
  	enable=1
	min_velocity=1.7
  	max_velocity_ratio=1.10
  	min_velocity_ratio=1.05
}
tc
{
  	enable=1
	min_velocity=1.2
  	max_velocity_ratio=1.05
  	min_velocity_ratio=1.1
}
:::::::::::::::::::::::::::::::SILNIK V8::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
engine
{
   mass=
   idle_rpm=850
   max_rpm=7000
   curve_torque=torque.crv
   max_torque=524 (321cv)
   reaction=1.60
   autoclutch_rpm=3500
   starter=1
   starter_torque=110
   start_stalled=1
   enable_stall=1
   stall_rpm=500
   start_rpm=1000
   shifting
   {
   automatic=1
    shift_up_rpm=6500
    shift_down_rpm=1500
    blip_throttle=0
    cut_throttle=1
    fast=1
    shift_down_rpm=0
    time_to_declutch=0
    time_in_neutral=0
    time_to_clutch=0
    time_to_declutch_down=50
    time_in_neutral_down=50
    time_to_clutch_down=50
   }
   inertia
   {
      engine=0.17
      final_drive=0.1
   }
   braking_coeff=2.5
   rolling_friction_coeff=0.1
}

gearbox
{
  gears=9
  gear0
  {
    ratio=-3.317
    inertia=0.9
  }
  gear1
  {
    ratio=4.714
    inertia=0.09
  }
  gear2
  {
    ratio=3.143
    inertia=0.07
  }
  gear3
  {
    ratio=2.106
    inertia=0.04
}
gear4
{
ratio=1.667
interia=0.02
}
gear5
{
ratio=1.285
interia=0.01
}
gear6
{
ratio=1.00
interia=0.01
}
gear7
{
ratio=0.839
interia=0.01
}
gear8
{
ratio=0.667
interia=0.01
  }
  end_ratio=2.8
}

::::::::::::::::::::::::::::::::SPRZĘGŁO::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
clutch
{
	max_torque=1750
}
:::::::::::::::::::::::::::::::::::::::H. RĘCZNY::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
handbrakes
{
   wheels=23
}
::::::::::::::::::::::::::::::::::::::NAPĘD:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

differential
{
	type=0
	ratio=4.62
	inertia=0.16
	locking_coeff=100
	output0=2
	output1=3
}

::::::::::::::::::::::::::::::::::AERO::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
aero
{
  body
  {
    center=0 0 0
    cx=0.37
    area=2.45		
  }
  wings=1
  wing0
  {
    name=Overall aerodynamic effect R
    span=1
    cord=0.1
    coeff_drag=0
    coeff_down=8.5
    center=0 0.03 -1.38
    angle=0
    angle_offset=1
  }
}

::::::::::::::::::::::::::::::::::::::::::ZAWIESZNIE:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
antirollbar
{
 	count=2
 	arb0
 	{
  		susp_left=0
  		susp_right=1
  		k=50000
 	}
 	arb1
 	{
  		susp_left=2
  		susp_right=3
  		k=40000
 	}
}

susp_front
{
 	y=-0.1
 	z=1.475
                 restlen=0.42
  	minlen=0.1
  	maxlen=0.65
  	k=58000
  	bump_rate=4500
  	bump_function=0
  	rebound_rate=2500
  	rebound_function=0
  	anti_pitch=0
  	camber_change_per_m=0.2
    	caster_offset=0.0
  	roll_center
  	{
    		x=0
    		y=-0.7
    		z=0
  	}
}

susp_rear
{
 	y=-0.07
 	z=-1.35
 	  	restlen=0.42
  	minlen=0.0
  	maxlen=0.9
  	k=45000
 	bump_rate=5000
  	bump_function=0
  	rebound_rate=4500
  	rebound_function=0
  	anti_pitch=0
  	camber_change_per_m=0.4
  	roll_center
  	{
    		x=0
    		y=-0.7
    		z=0
  	}
}

susp0~susp_front
{
    	x=0.817
    	camber_change_steering=0.050
    	toe_change_per_m=0.130
    
}
susp1~susp_front
{
    	x=-0.817
    	camber_change_steering=-0.050
    	toe_change_per_m=-0.130
}


susp2~susp_rear
{
    	x=0.812
	;estimation based on Gustave's M3 site
    	toe_change_per_m=-0.016
}

susp3~susp_rear
{
    	x=-0.812
	;estimation based on Gustave's M3 site
    	toe_change_per_m=0.016
}

tire_model_front
{
	damping_predict_lat=0
  	damping_predict_long=0
}

tire_model_rear
{
  	damping_predict_lat=0
  	damping_predict_long=0
}
pacejka
{
    a0=1.2
    a1=-80
    a2=2300
    a3=2000
    a4=9
    a5=0.015
    a6=-0.25
    a7=0
    a8=-0.03
    a9=-0.001
    a10=-0.15
    a111=-8.5
    a112=-0.29
    a12=17.8
    a13=-2.4
    b0=1.3
    b1=-40
    b2=2300
    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.12
    optimal_slipangle=0.173
}
wheel_front
{
	y=0
	z=0
	powered=1
  	steering=1
	reverse_steering=0
	lock=62
	ackerman=1.215
	mass=15
	inertia=1.0
	radius=0.39
	rolling_coeff=0.015
	friction_road=1
	max_braking=4200
	braking_factor=0.75
	inboard_brakes=0
	tire_rate=175000
	pacejka~pacejka
	{
	}
}
wheel_rear
{
	y=0
	z=0
	powered=1
	steering=0
	reverse_steering=0
	lock=0
	mass=15
  	inertia=1.0
  	radius=0.39
  	rolling_coeff=0.015
  	friction_road=1
  	max_braking=4200
  	max_handbrake_torque=2000
  	braking_factor=0.25
	inboard_brakes=0
  	tire_rate=175000
  	pacejka~pacejka
  	{
  	}
}
wheel0~wheel_front
{
	x=0
	toe=-0.980
	camber=1.980
    	model
  	{
    		file=left.dof
  	}
    		model_brake
  	{
    		file=left_caliper.dof
  	}
}

wheel1~wheel_front
{
  	x=0
  	toe=0.980
  	camber=1.980
    	model
  	{
    		file=right.dof
  	}
    		model_brake
  	{
    		file=right_caliper.dof
  	}
}



wheel2~wheel_rear
{
  	x=0
  	toe=-0.080
  	camber=-0.035
    	model
  	{
    		file=left.dof
  	}
   	model_brake
  	{
    		file=left_caliper.dof
  	}
}

wheel3~wheel_rear
{
  	x=0
  	toe=0.080
  	camber=-0.035
    	model
  	{
    		file=right.dof
  	}
    	model_brake
  	{
    		file=right_caliper.dof
  	}
}
::::::::::::::::::::::::::::::::::::::::::::::::::::::::KAMERAY::::::::::::::::::::::::::::::::::::::::::::::

camera0
{
  name=Driver
  fov=60
  model=1
  wheels=0
  view=1
  offset
  {
    x=0.368
    y=0.62
    z=-0.05
  }
  offset_to
  {

    x=0.35
    y=-0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.3
  }
  dst
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
}
camera1
{
  name=Driver, left
  fov=60
  model=1
  wheels=0
  view=1
  offset
  {
   x=0.368
    y=0.62
    z=-0.05
  }
  offset_to
  {
    x=10.43
    y=0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.3
  }
  dst
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
}
camera2
{
  name=Driver, right
  fov=60
  model=1
  wheels=0
  view=0
  offset
  {
   x=0.368
    y=0.62
    z=-0.05
  }
  offset_to
  {
    x=-9.57
    y=0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.3
  }
  dst
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
}
camera3
{
  name=Driver
  fov=60
  model=1
  wheels=0
  view=0
  offset
  {
   x=-0.368
    y=0.62
    z=-0.05
  }
  offset_to
  {

    x=0.43
    y=-0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.3
  }
  dst
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
}
camera4
{
  name=Chase
  fov=60
  model=0
  wheels=0
  view=0
  offset
  {
    x=0
    y=-0.3
    z=-5
  }
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  angle
  {
    x=15
    y=180
    z=0
  }
}
camera5
{
  name=Chase rear
  fov=60
  model=0
  wheels=0
  view=0
  offset
  {
    x=0
    y=-0.5
    z=-7
  }
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  angle
  {
    x=15
    y=0
    z=0
  }
}
camera6
{
  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
  }
}
camera7
{
	name=Side
	fov=60
	model=0
	wheels=0
	view=0
	offset
	{
		x=1.267185
		y=0.129164
		z=-2.6
	}

	angle
	{
		x=1.361085
		y=-165.972626
		z=1.298599
	}
	follow
	{
		pitch=0
		yaw=1
		roll=1
	}

}
camera8
{
  offset
  {
    x=0.0
    y=1.4
    z=-4
  }
  angle
  {
    x=0.000000
    y=130.000000
    z=0.000000
  }
  name=Chase Close
  follow
  {
    pitch=0
    yaw=0
    roll=0
  }
  fov=75
  model=0
  wheels=0
  view=0
  src
  {
    mass=6
    k=250
    damping=90
    maxdist=2
  }
  dst
  {
    mass=1
    k=100
    damping=70
    maxdist=2
  }
}
camera9
{
  name=Chase rear
  fov=60
  model=1
  wheels=0
  view=1
  offset
  {
    x=0.0
    y=-0.75
    z=0.0
  }
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  angle
  {
    x=15
    y=0
    z=0
  }
}
audio
{
  skid
  {
    volume=1
    sample=skid.wav
    sample2=skid.wav
  }
  horn
  {
    sample=horn.wav
  }
accelerate_out
  	{
    		smp0~audio.acc_all
		{
			sample=v8/low.wav
			min=1
			max=6500
                                                    decay=2000
			natural=2500
			volume=0.8
		}
smp1~audio.acc_all
		{
			sample=v8/6000.wav
			min=1500
			max=9999
			natural=5000
			attack=1000
			volume=1
		}

	}
  	decelerate_out
  	{
smp0~audio.acc_all
   				{
			sample=v8/low.wav
			min=1
			max=6500
                                                    decay=2000
			natural=2500
			volume=0.8
		}
smp1~audio.acc_all
		{
			sample=v8/6000.wav
			min=1500
			max=9999
			natural=5000
			attack=1000
			volume=1
		}

	}
accelerate_in
  {	
smp0~audio.acc_all
	{
			sample=v8/lowin.wav
			min=1
			max=6500
                                                    decay=2000
			natural=2500
			volume=0.2
		}
smp1~audio.acc_all
		{
			sample=v8/6000in.wav
			min=1500
			max=9999
			natural=5000
			attack=1000
			volume=1
		}

	}
decelerate_in
  {
smp0~audio.acc_all
	{
			sample=v8/lowin.wav
			min=1
			max=6500
                                                    decay=2000
			natural=2500
			volume=0.2
		}
smp1~audio.acc_all
		{
			sample=v8/6000in.wav
			min=1500
			max=9999
			natural=5000
			attack=1000
			volume=1
		}
	}
wind
  {
    smp0~audio.acc_all
    {
      sample=wiater.wav
      volume=0.8
      min=5
      max=150
      attack=10
      natural=20
    }
  }
}
