﻿<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="livestockTrailer" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../shared/xml/schema/vehicle.xsd">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>

    <storeData>
        <name>Big Master Western WCF</name>
        <specs>
            <combination filterCategory="cars"/>
        </specs>
        <functions>
            <function>$l10n_function_livestockTrailer</function>
        </functions>
        <storePacks>
            <storePack>STARTER_ANIMALS</storePack>
        </storePacks>
        <image>$data/vehicles/boeckmann/bigMasterWesternWCF/store_bigMasterWesternWCF.png</image>
        <price>16000</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>BOECKMANN</brand>
        <category>animalTransport</category>
        <shopTranslationOffset>0 0.002 0</shopTranslationOffset>
        <shopRotationOffset>-1.155 0 0</shopRotationOffset>
        <vertexBufferMemoryUsage>885504</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>158720</indexBufferMemoryUsage>
        <textureMemoryUsage>2293760</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_livestockTrailer</typeDesc>
        <filename>$data/vehicles/boeckmann/bigMasterWesternWCF/bigMasterWesternWCF.i3d</filename>
        <size width="2.7" length="5.2" lengthOffset="0.7" />
        <components>
            <component centerOfMass="0 0.25 0.7" solverIterationCount="10" mass="660" />
            <component centerOfMass="0 0 0" solverIterationCount="10" mass="150" />
            <joint component1="1" component2="2" node="backdoorJoint"  rotLimit="0 0 0" transLimit="0 0 0"/>
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
        <sounds volumeFactor="1.2" />
        <mapHotspot type="TRAILER" />
    </base>

    <wheels>
        <wheelConfigurations>
            <wheelConfiguration name="$l10n_configuration_valueDefault" price="0" brand="CONTINENTAL" saveId="CONTINENTAL_DEFAULT">
                <wheels>
                    <wheel filename="$data/shared/wheels/tires/continental/terrainContactHT/245_65R17.xml" configId="bockmann2" isLeft="true" hasTireTracks="true" >
                        <physics restLoad="0.2" repr="wheelFrontLeft"  radius="0.3" width="0.22" forcePointRatio="0.25" initialCompression="10" suspTravel="0.10" spring="17" damper="10" frictionScale="1.6" yOffset="-0.01" />
                        <tire isCareWheel="false"/>
                        <wheelChock isInverted="true" filename="$data/shared/assets/wheelChocks/wheelChock04.i3d"/>
                    </wheel>
                    <wheel filename="$data/shared/wheels/tires/continental/terrainContactHT/245_65R17.xml" configId="bockmann2" isLeft="false" hasTireTracks="true" >
                        <physics restLoad="0.2" repr="wheelFrontRight" radius="0.3" width="0.22" forcePointRatio="0.25" initialCompression="10" suspTravel="0.10" spring="17" damper="10" frictionScale="1.6" yOffset="-0.01" />
                        <tire isCareWheel="false"/>
                    </wheel>
                    <wheel filename="$data/shared/wheels/tires/continental/terrainContactHT/245_65R17.xml" configId="bockmann2" isLeft="true" hasTireTracks="true" hasParticles="true" >
                        <physics restLoad="0.2" repr="wheelBackLeft"   radius="0.3" width="0.22" forcePointRatio="0.25" initialCompression="10" suspTravel="0.10" spring="17" damper="10" frictionScale="1.6" yOffset="0.01" />
                        <tire isCareWheel="false"/>
                        <wheelChock filename="$data/shared/assets/wheelChocks/wheelChock04.i3d"/>
                    </wheel>
                    <wheel filename="$data/shared/wheels/tires/continental/terrainContactHT/245_65R17.xml" configId="bockmann2" isLeft="false" hasTireTracks="true" hasParticles="true" >
                        <physics restLoad="0.2" repr="wheelBackRight"  radius="0.3" width="0.22" forcePointRatio="0.25" initialCompression="10" suspTravel="0.10" spring="17" damper="10" frictionScale="1.6" yOffset="0.01" />
                        <tire isCareWheel="false"/>
                    </wheel>
                </wheels>
            </wheelConfiguration>

            <wheelConfiguration name="$l10n_configuration_valueDefault" price="0" brand="CONTINENTAL" saveId="CONTINENTAL_DEFAULT2">
                <wheels baseConfig="CONTINENTAL_DEFAULT">
                    <wheel filename="$data/shared/wheels/tires/continental/terrainContactHT/245_65R17.xml" configId="bockmann">
                        <wheelChock/>
                    </wheel>
                    <wheel filename="$data/shared/wheels/tires/continental/terrainContactHT/245_65R17.xml" configId="bockmann"/>
                    <wheel filename="$data/shared/wheels/tires/continental/terrainContactHT/245_65R17.xml" configId="bockmann">
                        <wheelChock/>
                    </wheel>
                    <wheel filename="$data/shared/wheels/tires/continental/terrainContactHT/245_65R17.xml" configId="bockmann"/>
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>
    </wheels>

    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="attacherJoint" jointType="implement" needsToolbar="true" needsLowering="false" lowerRotLimitScale="3 3 3" upperRotLimitScale="3 3 3">
                <distanceToGround lower="0.48" upper="0.48" />
                <objectChange node="attacherJoint" translationActive="0 0.35 3.322" translationInactive="0 0.414 3.322"/>
            </inputAttacherJoint>
            <inputAttacherJoint node="attacherJoint" jointType="trailerLow" attacherHeight="0.47" />
        </inputAttacherJoints>
        <brakeForce force="0.05"/>
        <support animationName="moveSupport" />
    </attachable>

    <connectionHoses>
        <hose inputAttacherJointIndices="1 2" type="electric"  node="electricBack"  length="0.3" diameter="0.008" straighteningFactor="0.5" isTwoPointHose="true">
            <objectChange node="electricBackAdapter" visibilityActive="false" visibilityInactive="true"/>
        </hose>
    </connectionHoses>

    <dynamicallyLoadedParts>
        <dynamicallyLoadedPart node="1|1" linkNode="electricBackAdapter"  filename="$data/shared/connectionHoses/connectors.i3d" />
    </dynamicallyLoadedParts>

    <lights>
        <sharedLight linkNode="yellowRound01" filename="$data/shared/assets/reflectors/lizard/yellowRound_01.xml" />
        <sharedLight linkNode="yellowRound02" filename="$data/shared/assets/reflectors/lizard/yellowRound_01.xml" />
        <sharedLight linkNode="yellowRound03" filename="$data/shared/assets/reflectors/lizard/yellowRound_01.xml" />
        <sharedLight linkNode="yellowRound04" filename="$data/shared/assets/reflectors/lizard/yellowRound_01.xml" />

        <sharedLight linkNode="plateNumberLight02" filename="$data/shared/assets/lights/lizard/plateNumberLight02.xml" />

        <realLights>
            <high>
                <light node="licensePlateLightHigh" lightTypes="0"/>
                <light node="backLightsHigh1"       lightTypes="0"/>
                <brakeLight node="backLightsHigh1" />
                <turnLightLeft node="turnLightLeftBack" />
                <turnLightRight node="turnLightRightBack" />
                <reverseLight node="reverseLightHigh1" />
            </high>
        </realLights>

        <defaultLights>
            <defaultLight shaderNode="frontlight02Static" lightTypes="0" />
            <defaultLight shaderNode="backlightStatic" lightTypes="0" />
        </defaultLights>

        <brakeLights>
            <brakeLight shaderNode="backlightStatic"/>
        </brakeLights>

        <reverseLights>
            <reverseLight shaderNode="reverseLightStatic"/>
        </reverseLights>

        <turnLights>
            <turnLightLeft shaderNode="turnlightLeftStatic" />
            <turnLightRight shaderNode="turnlightRightStatic" />
        </turnLights>
    </lights>

    <licensePlates>
        <licensePlate node="licensePlateBack" position="BACK" preferedType="SQUARISH" placementArea="0.17 0.2 0.08 0.2"/>
    </licensePlates>

    <foldable>
        <foldingConfigurations>
            <foldingConfiguration>
                <foldingParts startMoveDirection="-1">
                    <foldingPart animationName="folding" speedScale="1.0" />
                </foldingParts>
            </foldingConfiguration>
        </foldingConfigurations>
    </foldable>

    <animations>
        <animation name="moveSupport">
            <part node="supportArmPart01" startTime="0" endTime="0.5" startTrans="0.069 0.887 2.557" endTrans="0.069 0.653 2.557" />
            <part node="supportArmCrank"  startTime="0" endTime="0.5" startRot="0 0 0" endRot="0 830 0" />
            <part node="supportArmPart02" startTime="0" endTime="0.2" startRot="0 0 0" endRot="-40 0 0" />
            <part node="supportCol"       startTime="0" endTime="0.5" startTrans="0 0.125 0" endTrans="0 -0.235 0" />

            <part node="handbrakeHandle"  startTime="0" endTime="0.3" startRot="0 0 0" endRot="-50 0 0" />

            <sound template="clackVar1" startTime="0.1" volumeScale="3.3" pitchScale="2" fadeIn="0.1" fadeOut="0.2" linkNode="attacherJoint"/>
        </animation>
        <animation name="toggleCover">
            <part node="tent_open"  startTime="0"    endTime="0.05" visibility="false" />
            <part node="tent_open"  startTime="0.05" endTime="0.1"  visibility="true" />
            <part node="tent_close" startTime="0"    endTime="0.05" visibility="true" />
            <part node="tent_close" startTime="0.05" endTime="0.1"  visibility="false" />

            <sound template="fabricCover2" startTime="0.01" direction="1"  volumeScale="1.4" pitchScale="1.5"/>
            <sound template="fabricCover1" startTime="0.05" direction="-1" volumeScale="1.4" pitchScale="1.8"/>
        </animation>
        <animation name="folding">
            <part node="hook01" startTime="0" endTime="0.2" startRot="0 0 0" endRot="0 40 0" />
            <part node="hook02" startTime="0" endTime="0.2" startRot="0 0 0" endRot="0 -40 0" />
            <part node="backdoorJoint" startTime="0.3" endTime="2.0" startRot="0 0 0" endRot="-90 0 0" />
            <part componentJointIndex="1" startTime="1" endTime="2" startRotLimit="0 0 0" endRotLimit="60 0 0" />

            <sound template="defaultHydraulicSound" startTime="0.4" endTime="1.5"  volumeScale="1"   pitchScale="1" fadeIn="0.1" fadeOut="0.2"/>
            <sound template="clackVar1"             startTime="0.1" direction="1"  volumeScale="1.3" pitchScale="2" />
            <sound template="clackVar1"             startTime="0.2" direction="-1" volumeScale="1.6" pitchScale="1.7" />
            <sound template="clackVar6"             startTime="1.6" direction="1"  volumeScale="1.5" pitchScale="0.9" />
            <sound template="clackVar6"             startTime="0.1" direction="-1" volumeScale="1.1" pitchScale="0.7" />
            <sound template="cylinderPunch"         startTime="0.1" direction="-1" volumeScale="0.5" pitchScale="1.7" />
        </animation>
    </animations>

    <cylindered>
        <movingTools>
            <movingTool node="backdoorJoint" playSound="true">
                <componentJoint index="1" anchorActor="0" />
                <dependentPart node="backDoorHydraulic" />
                <dependentPart node="backDoor" />
            </movingTool>

            <movingTool node="handbrakeHandle">
                <dependentPart node="handbrakeHydraulic" />
            </movingTool>
        </movingTools>

        <movingParts>
            <movingPart node="backDoor" referencePoint="backDoorRef" referenceFrame="backDoorRef" isActiveDirty="true" maxUpdateDistance="300"/>
            <movingPart node="backDoorHydraulic" referencePoint="backDoorHydraulicRef" referenceFrame="backDoorHydraulicRef" isActiveDirty="true" maxUpdateDistance="150">
                <translatingPart node="backDoorHydraulicPunch" />
            </movingPart>

            <movingPart node="handbrakeHydraulic" referencePoint="handbrakeHydraulicRef" referenceFrame="handbrakeHydraulicRef" isActiveDirty="true" maxUpdateDistance="20">
                <translatingPart node="handbrakeHydraulicPart" />
            </movingPart>
        </movingParts>
    </cylindered>

    <livestockTrailer>
        <animal type="horse" node="horseSlots" numSlots="2" />
        <loadTrigger node="loadTrigger" />
        <spawnPlaces>
            <spawnPlace node="spawnPlace1" width="6" />
            <spawnPlace node="spawnPlace2" width="6" />
            <spawnPlace node="spawnPlace3" width="4" />
        </spawnPlaces>
    </livestockTrailer>

    <cover>
        <coverConfigurations>
            <coverConfiguration name="$l10n_configuration_valueDefault" price="0" >
                <cover openAnimation="toggleCover" fillUnitIndices="1"/>
            </coverConfiguration>
        </coverConfigurations>
    </cover>

    <ai>
        <agentAttachment jointNode="attacherJoint" rotCenterWheelIndices="1 2 3 4" width="2.3" height="3" length="3.8" lengthOffset="0.2"/>
    </ai>

    <foliageBending>
        <bendingNode minX="-1.2" maxX="1.2" minZ="-1.6" maxZ="3.2 " yOffset="0.6" />
    </foliageBending>

    <baseMaterial>
        <material name="bigMasterWesternWCF_mat" baseNode="bigMasterWesternWCF_vis">
            <shaderParameter name="colorMat0" value="BOECKMANN_BLUE1"/>
        </material>
        <material name="bigMasterWesternWCFDecalsColor_mat" baseNode="decalsColored">
            <shaderParameter name="colorMat0" value="0.9157 0.9157 0.9157 1"/>
        </material>
    </baseMaterial>

    <baseMaterialConfigurations price="500" useDefaultColors="true" defaultColorIndex="0">
        <baseMaterialConfiguration name="$l10n_ui_colorBlue" color="BOECKMANN_BLUE1"/>
        <material name="bigMasterWesternWCF_mat" shaderParameter="colorMat0" />
        <material name="bigMasterWesternWCFDecalsColor_mat" shaderParameter="colorMat0" useContrastColor="true" contrastThreshold="0.3"/>
    </baseMaterialConfigurations>

    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="4" fieldMultiplier="2"/>

    <i3dMappings>
        <i3dMapping id="bigMasterWesternWCF_main_component1" node="0>" />
        <i3dMapping id="bigMasterWesternWCF_vis" node="0>0" />
        <i3dMapping id="wheelFrontLeft" node="0>0|0|0" />
        <i3dMapping id="wheelFrontRight" node="0>0|0|1" />
        <i3dMapping id="wheelBackLeft" node="0>0|0|2" />
        <i3dMapping id="wheelBackRight" node="0>0|0|3" />
        <i3dMapping id="attacherJoint" node="0>0|1|0" />
        <i3dMapping id="supportArmPart01" node="0>0|1|1|0" />
        <i3dMapping id="supportArmPart02" node="0>0|1|1|0|0" />
        <i3dMapping id="supportArmCrank" node="0>0|1|1|1" />
        <i3dMapping id="supportCol" node="0>0|1|1|2" />
        <i3dMapping id="electricBack" node="0>0|1|3" />
        <i3dMapping id="electricBackAdapter" node="0>0|1|4" />
        <i3dMapping id="yellowRound01" node="0>0|2|0|0" />
        <i3dMapping id="yellowRound02" node="0>0|2|0|1" />
        <i3dMapping id="yellowRound03" node="0>0|2|0|2" />
        <i3dMapping id="yellowRound04" node="0>0|2|0|3" />
        <i3dMapping id="backlightStatic" node="0>0|2|1|3" />
        <i3dMapping id="frontlight02Static" node="0>0|2|1|4" />
        <i3dMapping id="reverseLightStatic" node="0>0|2|1|5" />
        <i3dMapping id="turnlightLeftStatic" node="0>0|2|1|6" />
        <i3dMapping id="turnlightRightStatic" node="0>0|2|1|7" />
        <i3dMapping id="backLightsHigh1" node="0>0|2|2|0" />
        <i3dMapping id="turnLightLeftBack" node="0>0|2|3|0" />
        <i3dMapping id="turnLightRightBack" node="0>0|2|3|1" />
        <i3dMapping id="reverseLightHigh1" node="0>0|2|4|0" />
        <i3dMapping id="backDoor" node="0>0|3|0" />
        <i3dMapping id="backDoorHydraulic" node="0>0|3|0|0" />
        <i3dMapping id="backDoorHydraulicPunch" node="0>0|3|0|0|0" />
        <i3dMapping id="hook01" node="0>0|3|0|1" />
        <i3dMapping id="hook02" node="0>0|3|0|2" />
        <i3dMapping id="licensePlateBack" node="0>0|3|0|5" />
        <i3dMapping id="plateNumberLight02" node="0>0|3|0|6" />
        <i3dMapping id="licensePlateLightHigh" node="0>0|3|0|7" />
        <i3dMapping id="backdoorJoint" node="0>0|3|1" />
        <i3dMapping id="handbrakeHandle" node="0>0|3|2" />
        <i3dMapping id="handbrakeHydraulic" node="0>0|3|2|0" />
        <i3dMapping id="handbrakeHydraulicPart" node="0>0|3|2|0|0" />
        <i3dMapping id="handbrakeHydraulicRef" node="0>0|3|3" />
        <i3dMapping id="backDoorHydraulicRef" node="0>0|4|0" />
        <i3dMapping id="tent_open" node="0>0|5|0" />
        <i3dMapping id="tent_close" node="0>0|5|1" />
        <i3dMapping id="sheepSlots" node="0>0|6|0" />
        <i3dMapping id="pigSlots" node="0>0|6|1" />
        <i3dMapping id="cowSlots" node="0>0|6|2" />
        <i3dMapping id="horseSlots" node="0>0|6|3" />
        <i3dMapping id="loadTrigger" node="0>0|6|4" />
        <i3dMapping id="spawnPlace1" node="0>0|6|5|0" />
        <i3dMapping id="spawnPlace2" node="0>0|6|5|1" />
        <i3dMapping id="spawnPlace3" node="0>0|6|5|2" />
        <i3dMapping id="decalsColored" node="0>0|7|4" />
        <i3dMapping id="bigMasterWesternWCF_backdoor_component2" node="1>" />
        <i3dMapping id="backDoorRef" node="1>0" />
    </i3dMappings>
</vehicle>
