<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<placeable type="cowHusbandry" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../shared/xml/schema/placeable.xsd">
    <storeData>
        <name>$l10n_storeItem_animalBarnCowMedium</name>
        <functions>
            <function>$l10n_function_animalPenCow</function>
        </functions>
        <image>store_oldCowshed.png</image>
        <canBeSold>true</canBeSold>
        <showInStore>true</showInStore>
        <price>50000</price>
        <dailyUpkeep>50</dailyUpkeep>
        <lifetime>1000</lifetime>
        <rotation>0</rotation>
        <brand>NONE</brand>
        <species>placeable</species>
        <category>animalpens</category>
        <brush>
            <type>placeable</type>
            <category>animals</category>
            <tab>cows</tab>
        </brush>
        <storeIconRendering>
            <settings cameraXRot="-12" cameraYRot="-20" />
        </storeIconRendering>
    </storeData>

    <base>
        <filename>oldCowshed.i3d</filename>
        <canBeRenamed>true</canBeRenamed>
        <boughtWithFarmland>true</boughtWithFarmland>
    </base>

    <placement useRandomYRotation="false" useManualYRotation="true" >
        <testAreas>
            <testArea startNode="testArea1Start" endNode="testArea1End"/>
        </testAreas>

       <sounds>
            <placeLayered template="cowLayer" />
            <place template="medImp" />
        </sounds>
    </placement>

    <tipOcclusionUpdateAreas>
        <tipOcclusionUpdateArea startNode="tipOcclusionUpdateAreaStart" endNode="tipOcclusionUpdateAreaEnd" />
    </tipOcclusionUpdateAreas>

    <clearAreas>
        <clearArea startNode="clearArea1Start" widthNode="clearArea1Width" heightNode="clearArea1Height"/>
    </clearAreas>

    <leveling>
        <levelAreas>
            <levelArea startNode="levelArea1Start" widthNode="levelArea1Width" heightNode="levelArea1Height" groundType="asphalt" />
        </levelAreas>
    </leveling>


    <indoorAreas>
        <indoorArea startNode="indoorAreaStart" widthNode="indoorAreaWidth" heightNode="indoorAreaHeight"/>
    </indoorAreas>

    <ai>
        <updateAreas>
            <updateArea startNode="tipOcclusionUpdateAreaStart" endNode="tipOcclusionUpdateAreaEnd" />
        </updateAreas>
    </ai>

<animatedObjects>
        <animatedObject saveId="door01" >
            <animation duration="4.5">
				<part node="mainDoor1">
                    <keyFrame time="0.0" translation="-4.503 -0.001 -12.579"/>
                    <keyFrame time="1.0" translation="-0.847 -0.001 -12.579"/>
                </part>            
				</animation>
            <controls triggerNode="doortrigger2" posAction="ACTIVATE_HANDTOOL" posText="action_openGate" negText="action_closeGate" />
            <sounds>
                <moving linkNode="doortrigger2" template="slidingGateWoodLoop" />
                <posEnd linkNode="doortrigger2" template="woodDoorOpen" />
                <negEnd linkNode="doortrigger2" template="woodDoorClose" />
            </sounds>
        </animatedObject>
        <animatedObject saveId="door02" >
            <animation duration="4.5">
				<part node="mainDoor2">
                    <keyFrame time="0.0" translation="-4.503 -0.017 12.579"/>
                    <keyFrame time="1.0" translation="-0.847 -0.017 12.579"/>
                </part>            
				</animation>
            <controls triggerNode="doortrigger1" posAction="ACTIVATE_HANDTOOL" posText="action_openGate" negText="action_closeGate" />
            <sounds>
                <moving linkNode="doortrigger1" template="slidingGateWoodLoop" />
                <posEnd linkNode="doortrigger1" template="woodDoorOpen" />
                <negEnd linkNode="doortrigger1" template="woodDoorClose" />
            </sounds>
        </animatedObject>
        <animatedObject saveId="door03" >
            <animation duration="4.5">
				<part node="doubleDoor1L">
                    <keyFrame time="0.0" rotation="0 0 0"/>
                    <keyFrame time="1.0" rotation="0 -150 0"/>
                </part>
				<part node="doubleDoor1R">
                    <keyFrame time="0.0" rotation="0 0 0"/>
                    <keyFrame time="1.0" rotation="0 150 0"/>
                </part>				
				</animation>
            <controls triggerNode="doortriggeranimal1" posAction="ACTIVATE_HANDTOOL" posText="action_openGate" negText="action_closeGate" />
            <sounds>
                <moving linkNode="doortriggeranimal1" template="glassDoorLoop" />
                <negEnd linkNode="doortriggeranimal1" template="metalDoorsClose" />
            </sounds>
        </animatedObject>
        <animatedObject saveId="door04" >
            <animation duration="4.5">
				<part node="doubleDoor1L.001">
                    <keyFrame time="0.0" rotation="0 0 0"/>
                    <keyFrame time="1.0" rotation="0 150 0"/>
                </part>
				<part node="doubleDoor1R.001">
                    <keyFrame time="0.0" rotation="0 0 0"/>
                    <keyFrame time="1.0" rotation="0 -150 0"/>
                </part>				
				</animation>
            <controls triggerNode="doortriggeranimal1.001" posAction="ACTIVATE_HANDTOOL" posText="action_openGate" negText="action_closeGate" />
            <sounds>
                <moving linkNode="doortriggeranimal1.001" template="glassDoorLoop" />
                <negEnd linkNode="doortriggeranimal1.001" template="metalDoorsClose" />
            </sounds>
        </animatedObject>
        <animatedObject saveId="door05" >
            <animation duration="4.5">
				<part node="doubleDoor2L.001">
                    <keyFrame time="0.0" rotation="0 0 0"/>
                    <keyFrame time="1.0" rotation="0 150 0"/>
                </part>
				<part node="doubleDoor2R.001">
                    <keyFrame time="0.0" rotation="0 0 0"/>
                    <keyFrame time="1.0" rotation="0 -150 0"/>
                </part>				
				</animation>
            <controls triggerNode="doortriggeranima2.001" posAction="ACTIVATE_HANDTOOL" posText="action_openGate" negText="action_closeGate" />
            <sounds>
                <moving linkNode="doortriggeranima2.001" template="glassDoorLoop" />
                <negEnd linkNode="doortriggeranima2.001" template="metalDoorsClose" />
            </sounds>
        </animatedObject>
        <animatedObject saveId="door06" >
            <animation duration="4.5">
				<part node="doubleDoor2L">
                    <keyFrame time="0.0" rotation="0 0 0"/>
                    <keyFrame time="1.0" rotation="0 -150 0"/>
                </part>
				<part node="doubleDoor2R">
                    <keyFrame time="0.0" rotation="0 0 0"/>
                    <keyFrame time="1.0" rotation="0 150 0"/>
                </part>				
				</animation>
            <controls triggerNode="doortriggeranima2" posAction="ACTIVATE_HANDTOOL" posText="action_openGate" negText="action_closeGate" />
            <sounds>
                <moving linkNode="doortriggeranima2" template="glassDoorLoop" />
                <negEnd linkNode="doortriggeranima2" template="metalDoorsClose" />
            </sounds>
        </animatedObject>
    </animatedObjects>

 <hotspots>
        <hotspot type="COW" teleportNode="teleportNode" />
    </hotspots>

    <infoTrigger triggerNode="infoTrigger" />

    <husbandry saveId="Animals_COW" hasStatistics="false">
        <storage node="storage" fillTypes="LIQUIDMANURE BUFFALOMILK MILK STRAW MANURE" isExtension="false">
            <capacity fillType="LIQUIDMANURE" capacity="56250" />
            <capacity fillType="BUFFALOMILK" capacity="33750" />
            <capacity fillType="MILK" capacity="33750" />
            <capacity fillType="STRAW" capacity="11375" />
            <capacity fillType="MANURE" capacity="0" />
        </storage>

        <unloadingStation supportsExtension="true" storageRadius="50" hideFromPricesMenu="true">
            <unloadTrigger exactFillRootNode="exactFillRootNodeStraw" fillTypes="STRAW" />
            <unloadTrigger fillTypes="MANURE BUFFALOMILK MILK LIQUIDMANURE" />
        </unloadingStation>

        <loadingStation supportsExtension="true" storageRadius="50">
            <loadTrigger triggerNode="liquidManureTrigger" fillTypes="LIQUIDMANURE" fillLitersPerSecond="2000" aiNode="aiLoadingNodeLiquidManure" />
            <loadTrigger triggerNode="milkTrigger" fillTypes="MILK BUFFALOMILK" fillLitersPerSecond="2000" aiNode="aiLoadingNodeMilk"/>
        </loadingStation>

        <animals type="COW" maxNumAnimals="40" maxNumVisualAnimals="15">
            <navigation rootNode="navigationRootNode" filename="navigationMesh.i3d" />
            <loadingTrigger node="loadingTrigger" />
        </animals>

        <food capacity="33750" >
            <foodPlaces>
            </foodPlaces>
			<dynamicFoodPlane node="fillVolumeFood" defaultFillType="forage" maxAllowedHeapAngle="60" maxSubDivEdgeLength="0.5" capacity="10000"/>
            <unloadTrigger exactFillRootNode="exactFillRootNodeFood" />
            <baleTrigger triggerNode="baleTrigger"/>
        </food>

        <liquidManure />

     <water automaticWaterSupply="true" />

        <straw>
            <manure factor="1.5" />
            <strawPlane node="strawPlane" minY="0.002" maxY="0.002" colorChange="false" />
        </straw>
</husbandry>

    <triggerMarkers>
        <triggerMarker node="markerMilk"         filename="$data/shared/assets/marker/markerIconMilk.i3d" />
        <triggerMarker node="markerFood"         filename="$data/shared/assets/marker/markerIconFood.i3d" />
        <triggerMarker node="markerAnimals"      filename="$data/shared/assets/marker/markerIconAnimals.i3d" />
        <triggerMarker node="markerLiquidManure" filename="$data/shared/assets/marker/markerIconSlurry.i3d" />
    </triggerMarkers>

    <lights>
    </lights>

    <colorable>
        <nodes>
            <node node="main_vis" />
            <node node="mainDoor1" />
            <node node="mainDoor2" />
            <node node="doubleDoor1L" />
            <node node="doubleDoor1R" />
            <node node="doubleDoor2R" />
            <node node="doubleDoor1R.001" />
            <node node="doubleDoor2R.001" />
            <node node="doubleDoor2L" />
            <node node="doubleDoor1L.001" />
            <node node="doubleDoor2L.001" />
            <node node="farmDoor1" />
            <node node="farmDoor2" />
            <node node="farmDoor3" />
            <node node="farmDoor4" />
        </nodes>

        <colors>
            <color value="RUDOLFHOERMANN_GREEN" />
            <color value="RUDOLFHOERMANN_BEIGE" />
            <color value="RUDOLFHOERMANN_RED" />
            <color value="RUDOLFHOERMANN_BLUE" />
            <color value="RUDOLFHOERMANN_DARKGREY" />
            <color value="RUDOLFHOERMANN_LIGHTGREY" />
            <color value="RUDOLFHOERMANN_WHITEALU" />
            <color value="RUDOLFHOERMANN_GREYALU" />
            <color value="RUDOLFHOERMANN_OXIDRED" />
            <color value="RUDOLFHOERMANN_WOODDARK" />
            <color value="RUDOLFHOERMANN_WOODBRIGHT" />
            <color value="RUDOLFHOERMANN_LIGHTGREEN" />
            <color value="RUDOLFHOERMANN_BROWN" />
            <color value="RUDOLFHOERMANN_DARKBEIGE" />
        </colors>
    </colorable>

<i3dMappings>
  <i3dMapping id="mainNode_animal" node="0>" />
  <i3dMapping id="clearArea1Start" node="0>0" />
  <i3dMapping id="clearArea1Height" node="0>0|0" />
  <i3dMapping id="clearArea1Width" node="0>0|1" />
  <i3dMapping id="indoorAreaStart" node="0>1" />
  <i3dMapping id="indoorAreaHeight" node="0>1|0" />
  <i3dMapping id="indoorAreaWidth" node="0>1|1" />
  <i3dMapping id="levelArea1Start" node="0>2" />
  <i3dMapping id="levelArea1Height" node="0>2|0" />
  <i3dMapping id="levelArea1Width" node="0>2|1" />
  <i3dMapping id="testArea1Start" node="0>3" />
  <i3dMapping id="testArea1End" node="0>3|0" />
  <i3dMapping id="tipOcclusionUpdateAreaStart" node="0>4" />
  <i3dMapping id="tipOcclusionUpdateAreaEnd" node="0>4|0" />
  <i3dMapping id="triggers" node="0>5" />
  <i3dMapping id="doortrigger1" node="0>5|0" />
  <i3dMapping id="doortrigger2" node="0>5|1" />
  <i3dMapping id="doortriggeranima2" node="0>5|2" />
  <i3dMapping id="doortriggeranima2.001" node="0>5|3" />
  <i3dMapping id="doortriggeranimal1" node="0>5|4" />
  <i3dMapping id="doortriggeranimal1.001" node="0>5|5" />
  <i3dMapping id="oldCowShed_vis" node="0>6" />
  <i3dMapping id="fenceLeft" node="0>6|0" />
  <i3dMapping id="fenceA_0" node="0>6|0|0" />
  <i3dMapping id="fenceABar_0" node="0>6|0|0|0" />
  <i3dMapping id="fenceAPole" node="0>6|0|0|1" />
  <i3dMapping id="screwDecals_0" node="0>6|0|0|1|0" />
  <i3dMapping id="screwDecals_1" node="0>6|0|0|2" />
  <i3dMapping id="fenceA_1" node="0>6|0|0|3" />
  <i3dMapping id="fenceABar_1" node="0>6|0|0|3|0" />
  <i3dMapping id="screwDecals_2" node="0>6|0|0|3|1" />
  <i3dMapping id="fenceA_2" node="0>6|0|0|3|2" />
  <i3dMapping id="fenceABar_2" node="0>6|0|0|3|2|0" />
  <i3dMapping id="screwDecals_3" node="0>6|0|0|3|2|1" />
  <i3dMapping id="fenceA_3" node="0>6|0|0|3|2|2" />
  <i3dMapping id="fenceABar_3" node="0>6|0|0|3|2|2|0" />
  <i3dMapping id="screwDecals_4" node="0>6|0|0|3|2|2|1" />
  <i3dMapping id="fenceA_4" node="0>6|0|0|3|2|2|2" />
  <i3dMapping id="screwDecals_5" node="0>6|0|0|3|2|2|2|0" />
  <i3dMapping id="fenceABar_4" node="0>6|0|0|3|2|2|3" />
  <i3dMapping id="doors" node="0>6|1" />
  <i3dMapping id="noAnim" node="0>6|1|0" />
  <i3dMapping id="farmDoor1" node="0>6|1|0|0" />
  <i3dMapping id="farmDoor2" node="0>6|1|0|1" />
  <i3dMapping id="farmDoor3" node="0>6|1|0|2" />
  <i3dMapping id="farmDoor4" node="0>6|1|0|3" />
  <i3dMapping id="openable" node="0>6|1|1" />
  <i3dMapping id="doubleDoor1L" node="0>6|1|1|0" />
  <i3dMapping id="doubleDoor1L.001" node="0>6|1|1|1" />
  <i3dMapping id="doubleDoor1R" node="0>6|1|1|2" />
  <i3dMapping id="doubleDoor1R.001" node="0>6|1|1|3" />
  <i3dMapping id="doubleDoor2L" node="0>6|1|1|4" />
  <i3dMapping id="doubleDoor2L.001" node="0>6|1|1|5" />
  <i3dMapping id="doubleDoor2R" node="0>6|1|1|6" />
  <i3dMapping id="doubleDoor2R.001" node="0>6|1|1|7" />
  <i3dMapping id="mainDoor1" node="0>6|1|1|8" />
  <i3dMapping id="mainDoor2" node="0>6|1|1|9" />
  <i3dMapping id="main_vis" node="0>6|2" />
  <i3dMapping id="fenceF_0" node="0>6|3" />
  <i3dMapping id="screwDecals_6" node="0>6|3|0" />
  <i3dMapping id="fenceF_1" node="0>6|3|1" />
  <i3dMapping id="screwDecals_7" node="0>6|3|1|0" />
  <i3dMapping id="fenceF_2" node="0>6|3|1|1" />
  <i3dMapping id="screwDecals_8" node="0>6|3|1|1|0" />
  <i3dMapping id="fenceF_3" node="0>6|3|1|1|1" />
  <i3dMapping id="screwDecals_9" node="0>6|3|1|1|1|0" />
  <i3dMapping id="fenceF_4" node="0>6|3|1|1|1|1" />
  <i3dMapping id="screwDecals_10" node="0>6|3|1|1|1|1|0" />
  <i3dMapping id="fenceF_5" node="0>6|3|1|1|1|1|1" />
  <i3dMapping id="screwDecals_11" node="0>6|3|1|1|1|1|1|0" />
  <i3dMapping id="roosters" node="0>6|4" />
  <i3dMapping id="Boxeninterior" node="0>6|5" />
  <i3dMapping id="strawPlane" node="0>6|6" />
  <i3dMapping id="fenceH_0" node="0>6|7" />
  <i3dMapping id="fenceH_1" node="0>6|7|0" />
  <i3dMapping id="screwDecals_12" node="0>6|7|0|0" />
  <i3dMapping id="fenceH_2" node="0>6|7|0|1" />
  <i3dMapping id="screwDecals_13" node="0>6|7|0|1|0" />
  <i3dMapping id="fenceH_3" node="0>6|7|0|1|1" />
  <i3dMapping id="screwDecals_14" node="0>6|7|0|1|1|0" />
  <i3dMapping id="fenceH_4" node="0>6|7|0|1|1|1" />
  <i3dMapping id="screwDecals_15" node="0>6|7|0|1|1|1|0" />
  <i3dMapping id="fenceH_5" node="0>6|8" />
  <i3dMapping id="fenceH_6" node="0>6|8|0" />
  <i3dMapping id="screwDecals_16" node="0>6|8|0|0" />
  <i3dMapping id="fenceH_7" node="0>6|8|0|1" />
  <i3dMapping id="screwDecals_17" node="0>6|8|0|1|0" />
  <i3dMapping id="fenceH_8" node="0>6|8|0|1|1" />
  <i3dMapping id="screwDecals_18" node="0>6|8|0|1|1|0" />
  <i3dMapping id="fenceH_9" node="0>6|8|0|1|1|1" />
  <i3dMapping id="screwDecals_19" node="0>6|8|0|1|1|1|0" />
  <i3dMapping id="fenceH_10" node="0>6|8|0|1|1|1|1" />
  <i3dMapping id="screwDecals_20" node="0>6|8|0|1|1|1|1|0" />
  <i3dMapping id="teleportNode" node="0>7" />
  <i3dMapping id="food" node="0>8" />
  <i3dMapping id="fillVolumeFood" node="0>8|0" />
  <i3dMapping id="exactFillRootNodeFood" node="0>8|1" />
  <i3dMapping id="foodPlaces" node="0>8|2" />
  <i3dMapping id="foodPlace1" node="0>8|2|0" />
  <i3dMapping id="foodPlace2" node="0>8|2|1" />
  <i3dMapping id="foodPlace3" node="0>8|2|2" />
  <i3dMapping id="foodPlace4" node="0>8|2|3" />
  <i3dMapping id="foodPlace5" node="0>8|2|4" />
  <i3dMapping id="foodPlace6" node="0>8|2|5" />
  <i3dMapping id="foodPlace7" node="0>8|2|6" />
  <i3dMapping id="foodPlace8" node="0>8|2|7" />
  <i3dMapping id="foodPlace9" node="0>8|2|8" />
  <i3dMapping id="baleTrigger" node="0>8|3" />
  <i3dMapping id="storage" node="0>9" />
  <i3dMapping id="straw" node="0>10" />
  <i3dMapping id="exactFillRootNodeStraw" node="0>10|0" />
  <i3dMapping id="milkTank" node="0>11" />
  <i3dMapping id="milkTrigger" node="0>11|0" />
  <i3dMapping id="aiLoadingNodeMilk" node="0>11|1" />
  <i3dMapping id="liquidManureTank" node="0>12" />
  <i3dMapping id="liquidManureTrigger" node="0>12|0" />
  <i3dMapping id="aiLoadingNodeLiquidManure" node="0>12|1" />
  <i3dMapping id="waterPlaces" node="0>13" />
  <i3dMapping id="waterPlace1" node="0>13|0" />
  <i3dMapping id="navigationRootNode" node="0>14" />
  <i3dMapping id="navMesh" node="0>14|0" />
  <i3dMapping id="walkingPlane" node="0>14|1" />
  <i3dMapping id="warningStripes" node="0>15" />
  <i3dMapping id="markerMilk" node="0>15|0" />
  <i3dMapping id="markerAnimals" node="0>15|1" />
  <i3dMapping id="markerLiquidManure" node="0>15|2" />
  <i3dMapping id="markerFood" node="0>15|3" />
  <i3dMapping id="infoTrigger" node="0>16" />
  <i3dMapping id="loadingTrigger" node="0>17" />
</i3dMappings>
</placeable>
