<?xml version="1.0" encoding="utf-8" standalone="no"?>
<vehicle type="S706_milk">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
    <storeData>
        <name>Škoda 706 CAS 25</name>
        <specs>
            <power>180</power>
            <maxSpeed>60</maxSpeed>
        </specs>
        <functions>
		    <function>$l10n_function_fire</function>
            <function>$l10n_function_tank</function>
            <function>$l10n_function_highPressureWasher</function>
            <function>Cisternová automobilová stříkačka</function>
        </functions>
        <image>icon.dds</image>
        <price>4500</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>LIAZY</brand>
        <category>trucks</category>
    </storeData>
    <base>
        <typeDesc>$l10n_typeDesc_highPressureWasher</typeDesc>
        <filename>706.i3d</filename>
        <size width="5" length="10" lengthOffset="5"/>
        <components>
            <component centerOfMass="0 1 -0.12" solverIterationCount="20" mass="7923"/>
        </components>
        <schemaOverlay attacherJointPosition="0 0">
            <default name="DEFAULT_VEHICLE"/>
            <selected name="DEFAULT_VEHICLE_SELECTED"/>
        </schemaOverlay>
    </base>
    <wheels>
        <wheelConfigurations>
            <wheelConfiguration name="$l10n_configuration_valueDefault" price="0">
                <wheels autoRotateBackSpeed="2.5">
                    <wheel isLeft="true" hasTireTracks="true" hasParticles="true">
                        <physics rotSpeed="1" restLoad="2.13" repr="0>1" forcePointRatio="0.2" radius="0.54" width="0.33" mass="0.25" initialCompression="45" suspTravel="0.2" spring="30" damper="50"/>
						<tire isCareWheel="false"/>
                    </wheel>
                    <wheel isLeft="false" hasTireTracks="true" hasParticles="true">
                        <physics rotSpeed="1" restLoad="2.13" repr="0>0" forcePointRatio="0.2" radius="0.54" width="0.33" mass="0.25" initialCompression="45" suspTravel="0.2" spring="30" damper="50"/>
						<tire isCareWheel="false"/>
                    </wheel>
                    <wheel isLeft="true" hasTireTracks="true" hasParticles="true">
                        <physics rotSpeed="0" restLoad="2.37" repr="0>3" forcePointRatio="0.2" radius="0.54" width="0.5" mass="0.25" initialCompression="45" suspTravel="0.2" spring="40" damper="50"/>
						<tire isCareWheel="false"/>
                    </wheel>
                    <wheel isLeft="false" hasTireTracks="true" hasParticles="true">
                        <physics rotSpeed="0" restLoad="2.37" repr="0>2" forcePointRatio="0.2" radius="0.54" width="0.5" mass="0.25" initialCompression="45" suspTravel="0.2" spring="40" damper="50"/>
						<tire isCareWheel="false"/>
                    </wheel>
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>
        <ackermannSteeringConfigurations>
            <ackermannSteering rotSpeed="80" rotMax="42" rotCenterWheel1="3" rotCenterWheel2="4"/>
        </ackermannSteeringConfigurations>
    </wheels>
    <attacherJoints>
        <attacherJoint node="0>12" jointType="trailer" lowerRotLimit="10 50 50" allowsJointLimitMovement="false" upperRotRotationOffset="0">
            <schema position="0 0" rotation="0" invertX="true"/>
        </attacherJoint>
        <sounds>
            <attach template="ATTACH_01" linkNode="0>" />
        </sounds>
    </attacherJoints>
    <lights>
        <states>
            <state lightTypes="0"/>
            <state lightTypes="0 1"/>
        </states>
        <realLights>
            <low>
                <light node="0>20|0|0" lightTypes="0" excludedLightTypes="3"/>
                <light node="0>20|0|1" lightTypes="1"/>
            </low>
            <high>
                <light node="0>20|0|1" lightTypes="1"/>
                <light node="0>20|0|0" lightTypes="0" excludedLightTypes="3"/>
                <light node="0>20|1|0" lightTypes="0" excludedLightTypes="3"/>
                <light node="0>20|0|2" lightTypes="0"/>
                <turnLightLeft node="0>20|2|0"/>
                <turnLightLeft node="0>20|2|1"/>
                <turnLightLeft node="0>20|2|2"/>
                <turnLightRight node="0>20|3|0"/>
                <turnLightRight node="0>20|3|1"/>
                <turnLightRight node="0>20|3|2"/>
				<brakeLight node="0>20|1|0"/>
            </high>
        </realLights>
        <defaultLights>
            <defaultLight shaderNode="0>20|4|0" lightTypes="0 3" />
            <defaultLight shaderNode="0>20|4|1" lightTypes="0 3" />
            <defaultLight shaderNode="0>20|4|2" lightTypes="1" />
            <defaultLight shaderNode="0>20|4|3" lightTypes="1" />
            <defaultLight shaderNode="0>20|4|4|1" lightTypes="0 3" intensity="8" />
            <defaultLight shaderNode="0>20|4|5|1" lightTypes="0 3" intensity="8"/>
            <defaultLight shaderNode="0>20|4|8|0" lightTypes="0 3" intensity="8" />
            <defaultLight shaderNode="0>20|4|9|0" lightTypes="0 3" intensity="8"/>
        </defaultLights>
        <turnLights>
            <turnLightLeft shaderNode="0>20|4|4|0" />
            <turnLightLeft shaderNode="0>20|4|6|0" />
            <turnLightLeft shaderNode="0>20|4|6|1" />
            <turnLightLeft shaderNode="0>20|4|8|1" />
            <turnLightRight shaderNode="0>20|4|5|0" />
            <turnLightRight shaderNode="0>20|4|7|0" />
            <turnLightRight shaderNode="0>20|4|7|1" />
            <turnLightRight shaderNode="0>20|4|9|1" />
        </turnLights>
        <brakeLights>
            <brakeLight shaderNode="0>20|4|8|0" />
            <brakeLight shaderNode="0>20|4|9|0" />
        </brakeLights>
        <beaconLights>
            <beaconLight node="0>26" filename="assets/beaconLight02.xml" playSound="true"/>
			<beaconLight node="0>24" filename="assets/beaconLight02.xml" playSound="true"/>
			<beaconLight node="0>25" filename="assets/beaconLight02.xml" playSound="true"/>
        </beaconLights>	
        <sounds>
            <switchLight template="SWITCH_01" linkNode="0>" />
            <turnLight template="SWITCH_TURNLIGHT" linkNode="0>" />
        </sounds>
	</lights>
    <enterable>
        <exitPoint node="0>14"/>
        <enterReferenceNode node="0>"/>
        <characterNode node="0>11|0" cameraMinDistance="1.5" spineRotation="-90 0 90">
            <target ikChain="rightFoot" targetNode="0>11|1"/>
            <target ikChain="leftFoot" targetNode="0>11|2"/>
            <target ikChain="rightArm" targetNode="0>10|0|1"/>
            <target ikChain="leftArm" targetNode="0>10|0|2"/>
        </characterNode>
        <cameras>
            <camera node="0>13|0" rotatable="true" rotateNode="0>13" limit="true" useWorldXZRotation="true" rotMinX="-1.4" rotMaxX="1" transMin="4" transMax="35"/>
            <camera node="0>15" rotatable="true" limit="true" rotMinX="-1.1" rotMaxX="0.4" transMin="0" transMax="0" useMirror="true" isInside="true"/>
        </cameras>
        <mirrors>
            <mirror node="0>18|0"/>
            <mirror node="0>18|1"/>
        </mirrors>
    </enterable>
    <motorized>
        <consumerConfigurations>
            <consumerConfiguration>
                <consumer fillUnitIndex="2" usage="45"  fillType="diesel" />  <!-- usage is per hour at max load and max rpm -->
                <consumer fillUnitIndex="3" usage="200" fillType="air" permanentConsumption="false" refillLitersPerSecond="250" refillCapacityPercentage="0.5"/>
            </consumerConfiguration>
        </consumerConfigurations>
        <motorConfigurations>
            <motorConfiguration name="Liaz706RT" price="0">
                <motor torqueScale="0.763" minRpm="800" maxRpm="2200" maxForwardSpeed="60" maxBackwardSpeed="15" brakeForce="6" lowBrakeForceScale="0.1" lowBrakeForceSpeedLimit="1" rotInertia="0.002">
                    <torque normRpm="0.45" torque="0.5"/>
                    <torque normRpm="0.5" torque="0.6"/>
                    <torque normRpm="0.59" torque="0.7"/>
                    <torque normRpm="0.72" torque="1"/>
                    <torque normRpm="0.86" torque="0.88"/>
                    <torque normRpm="1" torque="0.7"/>
                </motor>
                <transmission minForwardGearRatio="12" maxForwardGearRatio="150" minBackwardGearRatio="40" maxBackwardGearRatio="150"/>
            </motorConfiguration>
        </motorConfigurations>
        <differentialConfigurations>
            <differentialConfiguration>
                <differentials>
                    <differential torqueRatio="0.5" maxSpeedRatio="1.4" wheelIndex1="3" wheelIndex2="4"/>
                </differentials>
            </differentialConfiguration>
        </differentialConfigurations>
        <exhaustEffects>
            <exhaustEffect node="0>16" filename="$data/particleSystems/shared/exhaust.i3d" minRpmColor="0 0 0 0.05" maxRpmColor="0.01 0.01 0.01 5" minRpmScale="0.08" maxRpmScale="0.8" xzRotationsOffset="40 0" xzRotationsForward="0 0" xzRotationsBackward="100 0" xzRotationsLeft="0 -100" xzRotationsRight="0 100"/>
        </exhaustEffects>
        <motorStartDuration>1900</motorStartDuration>
        <dashboards>
			<dashboard displayType="ANIMATION" valueType="speed" animName="speedDisplay" minValueAnim="0" maxValueAnim="115" groups="MOTOR_ACTIVE"/>
            <dashboard displayType="ANIMATION" valueType="rpm" animName="rpmDisplay" minValueAnim="0" maxValueAnim="2400" groups="MOTOR_ACTIVE"/>
        </dashboards>
		<sounds externalSoundFile="audio/liaz706.xml" />
    </motorized>
    <drivable>
        <sounds>
            <waterSplash template="WATER_SPLASH_01" linkNode="0>" />
        </sounds>
        <steeringWheel node="0>10|0" indoorRotation="540" outdoorRotation="60"/>
    </drivable>
    <animations>
		<animation name="Horn">
			<part node="0>22|36" startTime="0" endTime="0.1" visibility="false" />
			<part node="0>22|36" startTime="0.1" endTime="0.2" visibility="true" />
        </animation>
        <animation name="speedDisplay">
            <part node="0>17|1|4" startTime="0" endTime="1" startRot="0 130 0" endRot="0 -110 0"/>
        </animation>
        <animation name="fuelDisplay">
            <part node="0>17|1|0" startTime="0" endTime="1" startRot="0 45 0" endRot="0 -45 0"/>
        </animation>
        <animation name="rpmDisplay">
            <part node="0>17|1|1" startTime="0" endTime="0.4" startRot="0 115 0" endRot="0 10 0"/>
            <part node="0>17|1|1|0" startTime="0" endTime="10" startRot="0 0 0" endRot="0 -25 0"/>
            <part node="0>17|1|2" startTime="0" endTime="0.4" startRot="0 50 0" endRot="0 25 0"/>
            <part node="0>17|1|2|0" startTime="0" endTime="10" startRot="0 0 0" endRot="0 -10 0"/>
            <part node="0>17|1|3" startTime="0" endTime="0.4" startRot="0 50 0" endRot="0 10 0"/>
            <part node="0>17|1|3|0" startTime="0" endTime="10" startRot="0 0 0" endRot="0 -20 0"/>
        </animation>
        <animation name="sterace">
            <part node="0>17|3|0|0" startTime="0" endTime="3" startRot="0 0 0" endRot="0 0 90"/>
            <part node="0>17|3|0|0" startTime="3" endTime="6" startRot="0 0 90" endRot="0 0 0"/>
            <part node="0>17|3|1|0" startTime="0" endTime="3" startRot="0 0 0" endRot="0 0 -90"/>
            <part node="0>17|3|1|0" startTime="3" endTime="6" startRot="0 0 -90" endRot="0 0 0"/>
        </animation>
        <animation name="animace">
            <part node="0>22|14" startTime="0" duration="1" startRot="0 0 0" endRot="0 0 160"/>
			<part node="0>22|15" startTime="0" duration="1" startRot="0 0 0" endRot="0 0 -160"/>
        </animation>
    </animations>
    <wipers>
        <wiper animName="sterace" >
            <state animSpeed="3" animPause="1.0" />
        </wiper>
    </wipers>
    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration>
                <fillUnits>
		            <fillUnit unit="$l10n_unit_literShort" fillTypes="WATER" capacity="6250">
                        <exactFillRootNode node="0>19|0" />
                    </fillUnit>
                    <fillUnit capacity="160" unit="$l10n_unit_literShort" fillTypes="diesel" showOnHud="false" showInShop="false">
                        <dashboard displayType="ANIMATION" valueType="fillLevel" animName="fuelDisplay" groups="MOTOR_ACTIVE"/>
                    </fillUnit>
                    <fillUnit capacity="1000" unit="$l10n_unit_literShort" fillTypes="air" showOnHud="false" showInShop="false"/>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>
    <fillTriggerVehicle triggerNode="0>19|1" fillUnitIndex="1" litersPerSecond="350"/>
	<dischargeable>
        <dischargeNode node="0>19|2" emptySpeed="350" fillUnitIndex="1" canDischargeToGround="true">
            <info width="2" length="3" zOffset="0.5" />
            <trigger node="0>19|3" />
        </dischargeNode>
        <dischargeable requiresTipOcclusionArea="false" />
    </dischargeable>
    <waterTrailer fillUnitIndex="1" fillLitersPerSecond="350" fillNode="0>">
        <sounds>
            <refill template="DEFAULT_REFUEL_SOUND" linkNode="0>" />
        </sounds>
    </waterTrailer>
    <foliageBending>
        <bendingNode minX="-1.3" maxX="1.3" minZ="-4.1" maxZ="3.4" yOffset="0.3" node="0>" />
    </foliageBending>
    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="50" washDuration="1" workMultiplier="2"/>
    <foldable>
        <foldingParts turnOnFoldMaxLimit="1" turnOnFoldMinLimit="0.9" >
            <foldingPart animationName="animace" speedScale="1"/>
        </foldingParts>
    </foldable>
	<highPressureWasher>
        <!-- <handtool filename="data/firstPerson/highPressureWasherLances/kaercher/hds9184MLance.xml" /> -->
        <handtool filename="firehose.xml" useCustom="true"/>	
		<lance node="0>28|1" />
		<player playerTrigger="0>28|0" playerLanceDistance="15" />
		<sounds>
			<motorStart linkNode="0>" 	file="$data/sounds/vehicles/engine/komatsu_931/komatsu_931_start.ogg" 		innerRadius="5.0" outerRadius="80.0" >
				<volume indoor="0.3" outdoor="1.00" />
				<pitch indoor="1.00" outdoor="1.00" />
				<lowpassGain indoor="0.50" outdoor="1.00" />
			</motorStart>
			<motorStop linkNode="0>" 		file="$data/sounds/vehicles/engine/komatsu_931/komatsu_931_stop.ogg" 		innerRadius="5.0" outerRadius="80.0" >
				<volume indoor="0.3" outdoor="1.00" />
				<pitch indoor="1.00" outdoor="1.00" />
				<lowpassGain indoor="0.50" outdoor="1.00" />
			</motorStop>
			<motorIdle linkNode="0>" 		file="$data/sounds/vehicles/engine/komatsu_931/komatsu_931_idle_loop.ogg" 	innerRadius="5.0" outerRadius="80.0" fadeOut="0.1" >
				<volume indoor="0.3" outdoor="1.00" />
				<pitch indoor="1.00" outdoor="1.00" />
				<lowpassGain indoor="0.50" outdoor="1.00" />
			</motorIdle>
		    <!-- optional sounds -->
			<motorStartWork linkNode="0>" file="$data/sounds/vehicles/engine/komatsu_931/komatsu_931_run_loop.ogg" 	innerRadius="5.0" outerRadius="80.0" >
				<volume indoor="0.3" outdoor="1.00" />
				<pitch indoor="1.00" outdoor="1.00" />
				<lowpassGain indoor="0.50" outdoor="1.00" />
			</motorStartWork>
			<!-- <motorStopWork linkNode="0>" file="Sounds/vtwin_workstop.ogg" innerRadius="5.0" outerRadius="80.0" > -->
				<!-- <volume indoor="0.3" outdoor="1.00" /> -->
				<!-- <pitch indoor="1.00" outdoor="1.00" /> -->
				<!-- <lowpassGain indoor="0.50" outdoor="1.00" /> -->
			<!-- </motorStopWork> -->
			<motorIdleWork linkNode="0>" 	file="$data/sounds/vehicles/engine/komatsu_931/komatsu_931_load_loop.ogg" 	innerRadius="5.0" outerRadius="80.0" fadeOut="0.1" >
				<volume indoor="0.3" outdoor="1.00" />
				<pitch indoor="1.00" outdoor="1.00" />
				<lowpassGain indoor="0.50" outdoor="0.75" />
			</motorIdleWork>
        </sounds>
		<!-- <exhaustEffects> -->
			<!-- <exhaustEffect node="exhaustParticle1" filename="$data/particleSystems/shared/exhaust.i3d" /> <!-- Defaults: scaleFactor="1" minScale="0.2" maxScale="0.35" xzRotationsOffset="0 0" exhaustColor="0.0384 0.0359 0.0627 2.0" minExhaustAlpha="0.1" maxExhaustAlpha="2.0" colorScaleFactor="1" --> -->
		<!-- </exhaustEffects> -->
		<!-- <exhaustParticleSystems> -->
			<!-- <exhaustParticleSystem node="0>0|4" file="$data/particleSystems/shared/threshingCutterParticles.i3d" scale="0.1 1 0.1" spriteScaleX="0.1" spriteScaleY="0.1" /> <!-- Defaults: particleColor="0.0384 0.0359 0.0627 2.0" scaleFactor="1" minScale="0.1" maxScale="0.5" --> -->
		<!-- </exhaustParticleSystems> -->
		<consumerConfiguration showFuelLevel="false">
			<fuel usage="0" /> <!-- liters per hour -->
			<water usage="1280" /> <!-- liters per hour -->
			<motorWorkingFactor workingFactor="30" /> <!-- percentage that motor works harder over idle when spraying, affects fuel usage accordingly -->
		</consumerConfiguration>
    </highPressureWasher>
	<cover>
        <coverConfigurations>
            <coverConfiguration openCoverWhileTipping="false">
                <cover openAnimation="Horn" fillUnitIndices="1"/>
            </coverConfiguration>
        </coverConfigurations>
    </cover>
    <dashboard>
        <groups>
            <group name="MOTOR_STARTING" isMotorStarting="true"/>
            <group name="MOTOR_ACTIVE"   isMotorStarting="true" isMotorRunning="true"/>
        </groups>
    </dashboard>
    <honk>
        <sound template="HONK_FENDT511C" linkNode="0>" />
    </honk>
    <ai>
        <collisionTrigger node="0>6"/>
    </ai>
</vehicle>
