<?xml version="1.0" encoding="utf-8" standalone="no"?>
<vehicle type="R100e">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
    <storeData>
        <name>Volvo R100E</name>
        <specs>
            <power>800</power>
            <maxSpeed>50</maxSpeed>
        </specs>
       <image>R100e.dds</image>
        <price>130000</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>VOLVO</brand>
         <category>FSMinersCreations</category>
        
    </storeData>
    <base>
        <typeDesc>$l10n_typeDesc_truck</typeDesc>
        <filename>Volvo_R100E.i3d</filename>
        <size width="6" length="10" />
        <filename>tgs18500.i3d</filename>
        <sounds filename="sounds/R100.xml"/>
        <components>
            <component centerOfMass="0 0 -3.071" solverIterationCount="10" mass="25250" />
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="TRUCK"/>
        <mapHotspot type="TRUCK"/>
    </base>
   <wheels>
        <wheelConfigurations>
             <wheelConfiguration name="Wheels" price="0">
                <wheels autoRotateBackSpeed="2.2">
                   <wheel isLeft="true" hasParticles="true" hasTireTracks="true">
                        <physics rotSpeed="1" restLoad="6.5" repr="0>1|0|0|0|0" radius="1.3" mass="0.4" width="0.60" forcePointRatio="0.5" initialCompression="25" suspTravel="0.2" spring="60" damper="30" frictionScale="1.60" />
                    </wheel>
                    <wheel isLeft="false" hasParticles="true" hasTireTracks="true">
                        <physics rotSpeed="1" restLoad="6.5" repr="0>1|1|0|0|0" radius="1.3" mass="0.4" width="0.60" forcePointRatio="0.5" initialCompression="25" suspTravel="0.2" spring="60" damper="30" frictionScale="1.60" />
                    </wheel>
                    <wheel isLeft="true" hasParticles="true" hasTireTracks="true">
                        <physics rotSpeed="0" restLoad="6.5" repr="0>1|2|0" radius="1.3" mass="0.49" width="1.6" forcePointRatio="0.5" initialCompression="25" suspTravel="0.18" spring="60" damper="30" frictionScale="1.60" />
                        
                    </wheel>
                    <wheel isLeft="false" hasParticles="true" hasTireTracks="true">
                        <physics rotSpeed="0" restLoad="6.5" repr="0>1|3|0" radius="1.3" mass="0.49" width="1.6" forcePointRatio="0.5" initialCompression="25" suspTravel="0.18" spring="60" damper="30" frictionScale="1.60" />
                        
                    </wheel>		
                </wheels>
            </wheelConfiguration>	
        </wheelConfigurations>

        <ackermannSteeringConfigurations>
            <ackermannSteering rotSpeed="50" rotMax="40" rotCenterWheel1="2" rotCenterWheel2="3" />
        </ackermannSteeringConfigurations>
    </wheels>
    <lights>
        <!--sharedLight linkNode="workingLightSquare_01" node="0" lightTypes="1" filename="$data/shared/assets/lights/lizard/workingLightSquare_01.xml">
            <rotationNode name="rotationNode1" rotation="10 0 0"/>
        </sharedLight>
        <sharedLight linkNode="workingLightSquare_02" node="0" lightTypes="1" filename="$data/shared/assets/lights/lizard/workingLightSquare_01.xml">
            <rotationNode name="rotationNode1" rotation="10 0 0"/>
        </sharedLight>
        <sharedLight linkNode="frontLightCone_01_01" node="0" filename="$data/shared/assets/lights/lizard/frontLightCone_01.xml"/>
        <sharedLight linkNode="frontLightCone_01_02" node="0" filename="$data/shared/assets/lights/lizard/frontLightCone_01.xml"/>
        <sharedLight linkNode="workingLightOval_02_01" node="0" lightTypes="2" filename="$data/shared/assets/lights/lizard/workingLightOval_02.xml">
            <rotationNode name="rotationNode1" rotation="10 0 0"/>
        </sharedLight>
        <sharedLight linkNode="workingLightOval_02_02" node="0" lightTypes="2" filename="$data/shared/assets/lights/lizard/workingLightOval_02.xml">
            <rotationNode name="rotationNode1" rotation="10 0 0"/>
        </sharedLight>
        <sharedLight linkNode="workingLightOval_02_03" node="0" lightTypes="2" filename="$data/shared/assets/lights/lizard/workingLightOval_02.xml">
            <rotationNode name="rotationNode1" rotation="30 0 0"/>
        </sharedLight>
        <sharedLight linkNode="workingLightOval_02_04" node="0" lightTypes="2" filename="$data/shared/assets/lights/lizard/workingLightOval_02.xml">
            <rotationNode name="rotationNode1" rotation="30 0 0"/>
        </sharedLight-->
        <states>
            <state lightTypes="0" />
            <state lightTypes="0 1" />
            <state lightTypes="0 1 2" />
        </states>
        <realLights>
            <low>
                <light node="0>9|0|4" lightTypes="1" />
            </low>
            <high>
                <light node="0>9|0|5" lightTypes="1" />
                <light node="0>9|0|6" lightTypes="2" />
				<reverseLight node="0>9|0|7" />
                <!--light node="workLightFrontHigh1" lightTypes="2"/>
                <light node="highBeamHigh" lightTypes="3"/>
                <light node="backLightsHigh1" lightTypes="0"/>
                <brakeLight node="backLightsHigh1"/>
                <turnLightLeft node="turnLightLeftFront"/>
                <turnLightRight node="turnLightRightFront"/>
                
                <interiorLight node="interiorScreenLight"/-->
            </high>
        </realLights>
        <defaultLights>
            <defaultLight shaderNode="0>9|0|0|1" lightTypes="2" intensity="120" />
            <defaultLight shaderNode="0>9|0|1|1" lightTypes="2" intensity="120" />
            <defaultLight shaderNode="0>9|0|2|1" lightTypes="1" intensity="50" />
            <defaultLight shaderNode="0>9|0|3|1" lightTypes="1" intensity="50" />
            <defaultLight shaderNode="0>9|3|0" lightTypes="0" intensity="20" />
			
            <defaultLight shaderNode="0>9|1|0" lightTypes="0" intensity="0.99" />
			
            <defaultLight shaderNode="0>9|0|8" lightTypes="0" intensity="50" />
            <defaultLight shaderNode="0>9|0|9" lightTypes="0" intensity="50" />
           
        </defaultLights>
        <!--turnLights>
            <turnLightLeft shaderNode="turnlightLeftStatic"/>
            <turnLightLeft shaderNode="turnlightLeft2Static"/>
            <turnLightRight shaderNode="turnlightRightStatic"/>
            <turnLightRight shaderNode="turnlightRight2Static"/>
        </turnLights-->
        <brakeLights>
            <brakeLight shaderNode="0>9|3|1" intensity="100" />
        </brakeLights>
        <reverseLights>
            <reverseLight shaderNode="0>9|2|0|0" intensity="150" />
            <reverseLight shaderNode="0>9|2|1|0" intensity="150" />
        </reverseLights>
        <sounds>
            <switchLight template="SWITCH_01" linkNode="0>" />
            <turnLight template="SWITCH_TURNLIGHT" linkNode="0>" />
        </sounds>
        <!--beaconLights>
            <beaconLight node="beaconLightLeft" filename="$data/shared/assets/beaconLights/lizard/beaconLight02.xml"/>
            <beaconLight node="beaconLightRight" filename="$data/shared/assets/beaconLights/lizard/beaconLight02.xml"/>
        </beaconLights-->
       
    </lights>
	
  <fillUnit>
		<fillUnitConfigurations>
			<fillUnitConfiguration>
				<fillUnits>
					<fillUnit unitTextOverride="$l10n_unit_literShort" showOnHud="false" showInShop="false" fillTypes="diesel" capacity="400">
						
					</fillUnit>
					<fillUnit unitTextOverride="$l10n_unit_literShort" showOnHud="false" showInShop="false" fillTypes="def" capacity="60" />
					<fillUnit unitTextOverride="$l10n_unit_literShort" showOnHud="false" showInShop="false" fillTypes="air" capacity="4000" />
					<fillUnit unitTextOverride="$l10n_unit_literShort" fillTypeCategories="bulk" capacity="72000">
						<exactFillRootNode node="exactFillRootNode" />
						<autoAimTargetNode node="fillAutoAimTargetNode" startZ="2.2" endZ="-4.0" invert="false" fillUnitIndex="4" startPercentage="25" />
					</fillUnit>	
				</fillUnits>
			</fillUnitConfiguration>
		</fillUnitConfigurations>
	</fillUnit>
	
	<fillVolume>
		<fillVolumeConfigurations>
			<fillVolumeConfiguration>
				<volumes>
					<volume node="fillVolume" maxDelta="0.12" maxAllowedHeapAngle="15" fillUnitIndex="4" />
				</volumes>
			</fillVolumeConfiguration>
		</fillVolumeConfigurations>

		<unloadInfos>
			<unloadInfo>
				<node node="fillVolumeUnloadInfo" width="1.0" length="1.7" />
			</unloadInfo>            
		</unloadInfos>

		<heightNodes>
			<heightNode>
				<refNode node="fillVolumeHeightNodeBack1" />
				<refNode node="fillVolumeHeightNodeBack2" />
				<node node="effectNodes" baseScale="1 1 1" transAxis="0 0 0" transMax="0 0.5 0" />
			</heightNode>             
		</heightNodes>
	</fillVolume>

	<trailer>
		<trailerConfigurations>
			<trailerConfiguration>
				<trailer>
					<tipSide name="$l10n_info_tipSideBack" dischargeNodeIndex="1" unloadInfoIndex="1">
						<animation name="tipAnimationBack" speedScale="1.0" startTipTime="0.3" />
					</tipSide>                    
				</trailer>
			</trailerConfiguration>
		</trailerConfigurations>
	</trailer>

	<dischargeable>
		<dischargeNode node="dischargeNodeBack" emptySpeed="7800" fillUnitIndex="4" unloadInfoIndex="1">
			<info width="4.4" length="1.9" zOffset="0.2" />
			<effects>
				<effectNode effectClass="TipEffect">
					<effectNode effectNode="effectParticle" effectClass="ParticleEffect" />
					<effectNode effectNode="effectGrain" materialType="unloading" materialTypeId="1" fadeTime="0.5" extraDistanceNode="dischargeNodeBack" extraDistance="1.2" />
				</effectNode>
				<effectNode effectNode="effectSmoke" materialType="smoke" materialTypeId="1" fadeTime="0.5" />
			</effects>
		</dischargeNode>        
	</dischargeable>
	
	<animations>
		
		<animation name="tipAnimationBack">
			<part node="tipper" startTime="0.5" endTime="14" startRot="0 0 0" endRot="-33.774 0 0" />
			
			<part node="effectNodes" startTime="2.2" endTime="14" startRot="0 0 0" endRot="32 0 0" />
			
			 <sound template="metalClose" startTime="0.01" volumeScale="0.3" pitchScale="2.8"/>
            <sound template="clackVar2" startTime="0.1" volumeScale="1" pitchScale="1.7"/>
            <sound template="latchSmall" startTime="0.1" volumeScale="0.15" pitchScale="2.0"/>
            <sound template="clackVar1" startTime="0.3" direction="-1" volumeScale="1.1" pitchScale="1.2"/>
            <sound template="clackVar1" startTime="0.2" direction="0" volumeScale="0.7" pitchScale="1"/>
            <sound template="metalOpen" startTime="0.3" direction="1" volumeScale="1.4" pitchScale="0.8"/>
            <sound template="sheetImp02" startTime="2" direction="1" volumeScale="1" pitchScale="1.3"/>
            <sound template="clackVar6" startTime="2" direction="1" volumeScale="1.3" pitchScale="0.8"/>
            <sound template="clackVar1" startTime="2.9" direction="-1" volumeScale="1.1" pitchScale="1"/>
            <sound template="clackVar5" startTime="0.1" direction="-1" volumeScale="0.8" pitchScale="1"/>
            <sound template="clackVar3" startTime="0.1" direction="-1" volumeScale="0.8" pitchScale="0.9"/>
		</animation>
	</animations>
	
	<powerConsumer ptoRpm="600" neededMinPtoPower="50" neededMaxPtoPower="50"/>
	
	<cylindered>
	
	 <movingTool node="tipper" playSound="true" isConsumingPower="true">
               
               </movingTool>
		
        <movingParts>	
			 <movingPart node="0>7|0|0" referencePoint="0>9|5" referenceFrame="0>9|5" isActiveDirty="true" maxUpdateDistance="30">
                <translatingPart node="0>7|0|0|1" />
            </movingPart>
		</movingParts>
		
		 <sounds>
            <actionSound template="hydraulicLayerTone2"   pitchScale="1.5" volumeScale="1.2" linkNode="0>7|0|0"   actionNames="TRANSLATING_POS TRANSLATING_NEG" nodes="0>7|0|0" fadeIn="0.1" fadeOut="0.05"/>
            <actionSound template="hydraulicLayerTone"    pitchScale="0.7" volumeScale="1.2" linkNode="0>7|0|0"   actionNames="TRANSLATING_POS" nodes="0>7|0|0" fadeIn="0.1" fadeOut="0.05"/>
		<!-- 	
			 <actionSound template="metalLowVar2"  pitchScale="1.0" volumeScale="3"   linkNode="tipper"   actionNames="TOOL_MOVE_END_POS_LIMIT" nodes="tipper"/>
            <actionSound template="cylinderPunch" pitchScale="1.5" volumeScale="0.4" linkNode="tipper"   actionNames="TOOL_MOVE_END_POS_LIMIT" nodes="tipper"/>
            <actionSound template="metalClose"    pitchScale="2.5" volumeScale="0.2" linkNode="tipper"   actionNames="TOOL_MOVE_END_POS_LIMIT" nodes="tipper"/>
            <actionSound template="clackVar6"     pitchScale="1.0" volumeScale="1.0" linkNode="tipper"   actionNames="TOOL_MOVE_END_POS_LIMIT" nodes="tipper"/>

            <actionSound template="metalLowVar2"  pitchScale="1.3" volumeScale="2.0"   linkNode="tipper"   actionNames="TOOL_MOVE_END_NEG_LIMIT" nodes="tipper"/>
            <actionSound template="cylinderPunch" pitchScale="1.8" volumeScale="0.2" linkNode="tipper"   actionNames="TOOL_MOVE_END_NEG_LIMIT" nodes="tipper"/>
            <actionSound template="metalClose"    pitchScale="2.8" volumeScale="0.1" linkNode="tipper"   actionNames="TOOL_MOVE_END_NEG_LIMIT" nodes="tipper"/>
            <actionSound template="clackVar6"     pitchScale="1.8" volumeScale="0.5" linkNode="tipper"   actionNames="TOOL_MOVE_END_NEG_LIMIT" nodes="tipper"/> -->

        </sounds>
</cylindered>
    
    <enterable isTabbable="true">
        <enterReferenceNode node="VolvoR100" />
        <exitPoint node="exitPoint" />
		
        <cameras>
            <camera node="outdoorCamera1" rotatable="true" rotateNode="outdoorCameraTarget" limit="true" useWorldXZRotation="true" rotMinX="-1.4" rotMaxX="1" transMin="4.5" transMax="40" translation="0 0 9" rotation="-20 180 0">
                <raycastNode node="cameraRaycastNode1" />
                <raycastNode node="cameraRaycastNode2" />
                <raycastNode node="cameraRaycastNode3" />
            </camera>
            <camera node="0>3|0|3|1|0" rotatable="true" limit="true" rotMinX="-1.1" rotMaxX="0.4" transMin="0" transMax="0" useMirror="true" isInside="true" positionSmoothingParameter="0.4" shadowFocusBox="shadowFocusBox" />
        </cameras>
		
        <characterNode node="0>3|0|3|0" cameraMinDistance="1.5" spineRotation="-90 0 90">
            <target ikChain="rightFoot" targetNode="0>3|0|3|0|3" />
            <target ikChain="leftFoot" targetNode="0>3|0|3|0|2" />
            <target ikChain="rightArm" targetNode="0>3|0|0|0|0" />
            <target ikChain="leftArm" targetNode="0>3|0|0|0|1" />
        </characterNode>
        <!--characterTargetNodeModifier node="playerRightFootTargetGas" transitionTime="0.1">
            <state node="playerRightFootTargetGas" referenceNode="gasPedal" directionReferenceNode="playerRightFootTargetGasRef"/>
            <state node="playerRightFootTargetBrake" referenceNode="brakePedal" directionReferenceNode="playerRightFootTargetBrakeRef"/>
        </characterTargetNodeModifier-->
	 </enterable>
	
	
    <suspensions>
        <suspension node="0>3|0|3"              weight="150" minTranslation="-0.05 -0.15 0.0" maxTranslation="0.05 0.15 0.0" suspensionParametersX="20 4" suspensionParametersY="5 1" suspensionParametersZ="20 4" />
        <suspension useCharacterTorso="true" weight="90" minRotation="0 -5 -5" maxRotation="0 5 5" suspensionParametersY="7 1" suspensionParametersZ="7 1" />
    </suspensions>
	
    <motorized>
        <consumerConfigurations>
            <consumerConfiguration>
                <consumer fillUnitIndex="1" usage="150" fillType="diesel" />
                <!-- usage is per hour at max load and max rpm -->
                <consumer fillUnitIndex="2" usage="3.5" fillType="def" />
                <!-- usage is per hour at max load and max rpm -->
                <consumer fillUnitIndex="3" usage="300" fillType="air" permanentConsumption="false" refillLitersPerSecond="350" refillCapacityPercentage="0.5" />
                <!-- usage per second at full brake power -->
            </consumerConfiguration>
        </consumerConfigurations>
        <differentialConfigurations>
             <differentialConfiguration>
				<differentials>
					<differential torqueRatio="0.5" maxSpeedRatio="1.6" wheelIndex1="1" wheelIndex2="2" />
				<!-- front left-right -->
					<differential torqueRatio="0.5" maxSpeedRatio="1.6" wheelIndex1="3" wheelIndex2="4" />
				<!-- back left-right -->
					<differential torqueRatio="0.7" maxSpeedRatio="1.6" differentialIndex1="1" differentialIndex2="2" />
				<!-- front-back -->
				</differentials>
            </differentialConfiguration>
        </differentialConfigurations>
        <motorConfigurations>
            <motorConfiguration name="Volvo R100E" hp="800" price="0">
                <motor torqueScale="7.394" minRpm="850" maxRpm="2650" maxForwardSpeed="50" maxBackwardSpeed="15" brakeForce="28" lowBrakeForceScale="0.22" rotInertia="0.004788">
                    <torque rpm="850" torque="0.9" />
                    <torque rpm="1000" torque="1" />
                    <torque rpm="1450" torque="1" />
                    <torque rpm="1900" torque="0.75" />
                    <torque rpm="2200" torque="0.63" />
                    <torque rpm="2500" torque="0.2" />
                </motor>
                <transmission minForwardGearRatio="14" maxForwardGearRatio="200" minBackwardGearRatio="40" maxBackwardGearRatio="200" />
            </motorConfiguration>
        </motorConfigurations>
        <!--exhaustEffects>
            <exhaustEffect node="exhaustParticle" filename="$data/particleSystems/shared/exhaust.i3d" minRpmColor="0.9 0.9 0.9 0.05" maxRpmColor="0.9 0.9 0.9 0.2" minRpmScale="0.03" maxRpmScale="0.2" xzRotationsOffset="40 0" xzRotationsForward="20 80" xzRotationsBackward="20 -80" xzRotationsLeft="20 80" xzRotationsRight="20 -80"/>
        </exhaustEffects-->
		
		
       
    </motorized>
    <drivable>
        <sounds>
            <waterSplash template="WATER_SPLASH_01" linkNode="0>" />
        </sounds>
        <steeringWheel node="steeringWheel" indoorRotation="450" outdoorRotation="30" />
       
    </drivable>
    
   
    <honk>
       <sound file="sounds/hornBig.ogg" linkNode="0>" />
    </honk>
   
    
   <!--  
    <ai>
        <collisionTrigger node="aiCollisionTrigger" />
    </ai> -->
    
    <foliageBending>
        <bendingNode minX="-1.35" maxX="1.35" minZ="-3.15" maxZ="3.1" yOffset="0.5" />
        <bendingNode minX="-0.3" maxX="0.3" minZ="-3.5" maxZ="-3.05" yOffset="0.4" />
    </foliageBending>
	
	<tensionBeltObject> 
        <meshNodes>
            <meshNode node="0>9|7" />
            <meshNode node="0>9|8" />
            <meshNode node="0>9|9" />
        </meshNodes>
    </tensionBeltObject>
  
  <baseMaterial>
        <material name="Chassis" baseNode="0>9">
            <shaderParameter name="colorMat2" material="0" value="0.8 0.33 0.036 " />
        </material>

        <material name="tipper" baseNode="0>7|0">
            <shaderParameter name="colorMat0" material="0" value="0.8 0.33 0.036 " />
        </material>

        <material name="Rim" baseNode="0>1|0|0|0|0">
            <shaderParameter name="colorMat1" material="0" value="0.8 0.33 0.036 " /> 
        </material>

        <material name="RimR" baseNode="0>1|3|0">
            <shaderParameter name="colorMat2" material="0" value="0.8 0.33 0.036 " />
        </material>
		
		  <material name="cabin" baseNode="0>3">
            <shaderParameter name="colorMat1" material="0" value="0.8 0.33 0.036 " />
        </material>
	</baseMaterial>

    <baseMaterialConfigurations useDefaultColors="true" defaultColorIndex="0">
        <baseMaterialConfiguration name="VOLVO Orange" material="0" color="0.8 0.33 0.036 " price="0" />
        <baseMaterialConfiguration name="VOLVO Gray" material="0" color="0.055 0.055 0.055 0 " price="500" />
        <baseMaterialConfiguration name="FS Miner" material="0" color="1 0.2 0 " price="500" />
        <baseMaterialConfiguration name="CYSG" material="0" color="0.95 0.55 0.05 0" price="500" />

        <material name="Chassis" shaderParameter="colorMat2" />
        <material name="tipper" shaderParameter="colorMat0" />
        <material name="Rim" shaderParameter="colorMat1" />
        <material name="RimR" shaderParameter="colorMat2" />
        <material name="cabin" shaderParameter="colorMat1" />
     </baseMaterialConfigurations>
	
    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2" />
    <washable dirtDuration="90" washDuration="1" workMultiplier="3" fieldMultiplier="2" />
	
	
    <i3dMappings>
	
	<i3dMapping id="VolvoR100" node="0>" />
    <i3dMapping id="exitPoint" node="0>6" />
	<i3dMapping id="outdoorCameraTarget" node="0>4|0" />
        <i3dMapping id="outdoorCamera1" node="0>4|0|0" />
        <i3dMapping id="indoorCamera1" node="0>3|0|3|1|0" />
        <i3dMapping id="cameraRaycastNode1" node="0>4|2" />
        <i3dMapping id="cameraRaycastNode2" node="0>4|3" />
        <i3dMapping id="cameraRaycastNode3" node="0>4|4" /> 
        <i3dMapping id="shadowFocusBox" node="0>4|5" />
	 <i3dMapping id="steeringWheel" node="0>3|0|0|0" /> 
	 
		<i3dMapping id="tipper" node="0>7" />
		<i3dMapping id="exactFillRootNode" node="0>7|0|2|0" />
		<i3dMapping id="fillAutoAimTargetNode" node="0>7|0|2|1" />
	 <i3dMapping id="fillVolume" node="0>7|0|1|3" />
		<i3dMapping id="fillVolumeUnloadInfo" node="0>7|0|1|2" />
		<i3dMapping id="fillVolumeHeightNodeBack1" node="0>7|0|1|0" />
		<i3dMapping id="fillVolumeHeightNodeBack2" node="0>7|0|1|1" />
		<i3dMapping id="dischargeNodeBack" node="0>8" />
		
		<i3dMapping id="effect" node="0>7|0|3" />
		<i3dMapping id="effectNodes" node="0>7|0|3|0" />
		<i3dMapping id="effectParticle" node="0>7|0|3|1|0" />
		<i3dMapping id="effectGrain" node="0>7|0|3|0|0" />
		<i3dMapping id="effectSmoke" node="0>7|0|3|0|1" />
		<i3dMapping id="particleNode" node="0>7|0|3|1" />
		
		
	
    </i3dMappings>
</vehicle>