<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<placeable>
    <storeData>
        <name>$l10n_animalPen_cow</name>
        <image>placeables/store_cowShed_DFP.png</image>
        <price>150000</price>
        <functions>
            <function>$l10n_function_animalPenCow</function>
        </functions>
        <canBeSold>true</canBeSold>
        <showInStore>true</showInStore>
        <lifetime>1000</lifetime>
        <dailyUpkeep>100</dailyUpkeep>
        <rotation>0</rotation>
        <brand>Lizard</brand>
        <species>placeable</species>
        <category>animalpens</category>
        <vertexBufferMemoryUsage>527088</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>70626</indexBufferMemoryUsage>
        <textureMemoryUsage>5964648</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <placeableType>husbandry</placeableType>
    <filename>placeables/DFP_cowShed.i3d</filename>
    <placement testSizeX="30.0" testSizeZ="60.0" sizeX="30" sizeZ="60" useRandomYRotation="false" useManualYRotation="true" placementRotationSnapAngle="90" placementPositionSnapSize="0.5" placementPositionSnapOffset="0.25"/>

    <clearAreas>
        <clearArea startNode="0|22|10" widthNode="0|22|10|0" heightNode="0|22|10|1"/>
    </clearAreas>

    <leveling requireLeveling="true" maxSmoothDistance="10" maxSlope="75" maxEdgeAngle="30">
        <levelAreas>
            <levelArea startNode="0|22|10" widthNode="0|22|10|0" heightNode="0|22|10|1" groundType="asphalt"/>
        </levelAreas>		
    </leveling>


    <triggerMarkers>
        <triggerMarker node="0|22|9" />
    </triggerMarkers>

    <hotspots>
        <hotspot name="Cow barn" fullName="$l10n_animals_cowPasture" imageName="COW_BARN" hidable="true" category="CATEGORY_TRIGGERS" />
    </hotspots>

    <animatedObjects>
        <animatedObject saveId="cowShed_DFP_gate01" >
            <animation duration="1.5">
                <part node="0|23|1">
                    <keyFrame time="0.0" rotation="0 0 0"/>
                    <keyFrame time="0.12" rotation="0 0 0"/>
                    <keyFrame time="1.0" rotation="0 90 0"/>
                </part>
                <part node="0|23|1|0">
                    <keyFrame time="0.0" translation="-0.05 0 0"/>
                    <keyFrame time="0.05" translation="0 0 0"/>
                    <keyFrame time="1.0" translation="0 0 0"/>
                </part>
                <part node="0|23|1|1">
                    <keyFrame time="0.05" translation="-0.05 0 0"/>
                    <keyFrame time="0.10" translation="0 0 0"/>
                    <keyFrame time="1.0" translation="0 0 0"/>
                </part>
            </animation>
            <controls triggerNode="0|23|2" posAction="ACTIVATE_HANDTOOL" posText="action_openGate" negText="action_closeGate" />
            <sounds>
                <moving file="$data/sounds/prefab/gate/gate_loop.wav" loops="0" linkNode="0|23|1" volume="0.8" radius="25" innerRadius="3" fadeOut="0.25"/>
                <posEnd file="$data/sounds/prefab/gate/gate_opened.wav" linkNode="0|23|1" volume="0.8" radius="25" innerRadius="3" />
                <negEnd file="$data/sounds/prefab/gate/gate_closed.wav" linkNode="0|23|1" volume="0.8" radius="25" innerRadius="3" />
            </sounds>
        </animatedObject>
		
        <animatedObject saveId="cowShed_DFP_gate02" >
            <animation duration="1.5">
                <part node="0|24|1">
                    <keyFrame time="0.0" rotation="0 0 0"/>
                    <keyFrame time="0.12" rotation="0 0 0"/>
                    <keyFrame time="1.0" rotation="0 -90 0"/>
                </part>
                <part node="0|24|1|0">
                    <keyFrame time="0.0" translation="-0.05 0 0"/>
                    <keyFrame time="0.05" translation="0 0 0"/>
                    <keyFrame time="1.0" translation="0 0 0"/>
                </part>
                <part node="0|24|1|1">
                    <keyFrame time="0.05" translation="-0.05 0 0"/>
                    <keyFrame time="0.10" translation="0 0 0"/>
                    <keyFrame time="1.0" translation="0 0 0"/>
                </part>
            </animation>
            <controls triggerNode="0|24|2" posAction="ACTIVATE_HANDTOOL" posText="action_openGate" negText="action_closeGate" />
            <sounds>
                <moving file="$data/sounds/prefab/gate/gate_loop.wav" loops="0" linkNode="0|24|1" volume="0.8" radius="25" innerRadius="3" fadeOut="0.25"/>
                <posEnd file="$data/sounds/prefab/gate/gate_opened.wav" linkNode="0|24|1" volume="0.8" radius="25" innerRadius="3" />
                <negEnd file="$data/sounds/prefab/gate/gate_closed.wav" linkNode="0|24|1" volume="0.8" radius="25" innerRadius="3" />
            </sounds>
        </animatedObject>
    </animatedObjects>

    <husbandry saveId="Animals_COW" hasStatistics="false">
        <modules>
            <module name="animals">
                <config type="COW" navmeshNode="0|22|7" animalLoadTriggerNode="0|22|4|0" maxNumAnimals="20" husbandryFileName="$dataS/character/cowAnimalHusbandry.xml" placementRaycastDistance="2.0" carryingCapacity="20" rideableDeliveryStartNode="0|22|10" rideableDeliveryWidthNode="0|22|10|0" rideableDeliveryHeightNode="0|22|10|1" />
            </module>
            <module name="food">
                <config node="0|22|5|0" exactFillRootNode="0" baleTriggerNode="3" animalPlacesNode="1" >
                    <fillPlane node="0|22|5|1" minY="0" maxY="0.45" colorChange="true" />
                </config>
            </module>
            <module name="water">
                <config node="0|22|6|0" exactFillRootNode="0" fillTypes="WATER" acceptedToolTypes="undefined trailer">
                    <fillPlane node="0|22|6|1" minY="0" maxY="0.30" colorChange="true" />
                </config>
            </module>
            <module name="liquidManure">
                <config node="0|22|1" fillTypes="LIQUIDMANURE" triggerNode="0">
                    <fillPlane node="0|21|0" minY="0.017" maxY="0.017" />
                </config>
            </module>
            <module name="manure">
                <config startNode="0|22|0|0" widthNode="0|22|0|1" heightNode="0|22|0|2" fillType="MANURE"/>
            </module>
            <module name="foodSpillage">
                <config fillType="SILAGE">
                    <area startNode="0|22|5|0|2|0" widthNode="0|22|5|0|2|0|0" heightNode="0|22|5|0|2|0|1" />
                    <area startNode="0|22|5|0|2|1" widthNode="0|22|5|0|2|1|0" heightNode="0|22|5|0|2|1|1" />
                    <area startNode="0|22|5|0|2|2" widthNode="0|22|5|0|2|2|0" heightNode="0|22|5|0|2|2|1" />
                    <area startNode="0|22|5|0|2|3" widthNode="0|22|5|0|2|3|0" heightNode="0|22|5|0|2|3|1" />
                </config>
            </module>
            <module name="milk">
                <config node="0|22|3" fillTypes="MILK" triggerNode="0" />
            </module>
            <module name="straw">
                <config node="0|22|2|0" exactFillRootNode="0" fillTypes="STRAW">
                    <fillPlane node="0|22|2|1" minY="0" maxY="0.18" colorChange="false" />
                </config>
            </module>
        </modules>
        <placementRaycast distance="2" />
    </husbandry>

    <tipOcclusionUpdateArea sizeX="30" sizeZ="60" />

</placeable>
