<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<placeable type="chickenHusbandry" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../shared/xml/schema/placeable.xsd">
    <storeData>
        <name>$l10n_storeItem_bigOldHenhouse</name>
       
	   
        <image>store/store_henhouse.dds</image>
        <price>38000</price>
        <functions>
            <function>$l10n_function_animalPenChicken</function>
        </functions>
        <lifetime>1000</lifetime>
        <dailyUpkeep>30</dailyUpkeep>
        <rotation>0</rotation>
        <brand>NONE</brand>
        <species>PLACEABLE</species>
        <category>animalpens</category>
        <brush>
            <type>husbandry</type>
            <category>animals</category>
            <tab>chickens</tab>
        </brush>

        <storeIconRendering>
            <settings cameraXRot="-15" cameraYRot="40" advancedBoundingBox="true"/>
        </storeIconRendering>
       
        <vertexBufferMemoryUsage>2743040</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>576000</indexBufferMemoryUsage>
        <textureMemoryUsage>12779520</textureMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

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

    <placement useRandomYRotation="false" useManualYRotation="true" placementRotationSnapAngle="5" placementPositionSnapSize="0.5" placementPositionSnapOffset="0.25" >
        <testAreas>
            <testArea startNode="0>5|0" endNode="0>5|0|0" />
        </testAreas>
        <sounds>
            <place        template="medImp" />
            <placeLayered template="chickenLayer" />
        </sounds>
    </placement>

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

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

    <indoorAreas>
        <indoorArea startNode="0>4|0" widthNode="0>4|0|0" heightNode="0>4|0|1" />
        <indoorArea startNode="0>4|1" widthNode="0>4|1|0" heightNode="0>4|1|1" />
        <indoorArea startNode="0>4|2" widthNode="0>4|2|0" heightNode="0>4|2|1" />
    </indoorAreas>

    <triggerMarkers>
        <triggerMarker node="0>14|2"    adjustToGround="true" filename="$data/shared/assets/marker/markerIconFood.i3d" />
        <triggerMarker node="0>14|1"    adjustToGround="false" filename="$data/shared/assets/marker/markerIconAnimals.i3d" />
       
    </triggerMarkers>

    <tipOcclusionUpdateAreas>
        <tipOcclusionUpdateArea startNode="0>6|0" endNode="0>6|0|0" />
    </tipOcclusionUpdateAreas>

    <ai>
        <updateAreas>
            <updateArea startNode="0>6|0" endNode="0>6|0|0" />
        </updateAreas>
    </ai>

    <hotspots>
        <hotspot type="CHICKEN" teleportNode="0>15" />
    </hotspots>

    <infoTrigger triggerNode="0>16" />
	
	<dynamicallyLoadedParts>
        
        <dynamicallyLoadedPart filename="i3d/propsHen.i3d" node="0" linkNode="0>21"/> 
       
    </dynamicallyLoadedParts>

    <animatedObjects>
        <animatedObject saveId="wlaz" >
            <animation duration="1">
                
                <part node="0>18|0|0|5|0">
                     <keyFrame time="0" translation="0 0.273 -0.742" rotation="9.862 0 0"/>
                     <keyFrame time="1" translation="0 0.273 -0.742" rotation="-95 0 0"/>
                </part>
                
            </animation>
            <controls triggerNode="0>18|0|0|5|6" posAction="ACTIVATE_HANDTOOL" posText="action_openGate" negText="action_closeGate" />
            <sounds>
                <moving linkNode="0>18|0|0|5|6" template="metalDoorsLoop" />
                <posEnd linkNode="0>18|0|0|5|6" template="metalDoorsOpen" />
                <negEnd linkNode="0>18|0|0|5|6" template="metalDoorsClose" />
            </sounds>
        </animatedObject>
		
		<animatedObject saveId="wrota01" >
            <animation duration="3">
                <part node="0>8|0|0|0">
                    <keyFrame time="0.0" translation="-0.013 -0.424 2.053"  />
                    <keyFrame time="0.2" translation="-0.013 -0.424 1.967"  />
					
                </part>
                <part node="0>8|0|0">
                     <keyFrame time="0.2" translation="47.92 2.024 -1.916" rotation="0 0 0"/>
                     <keyFrame time="1"   translation="47.92 2.024 -1.916" rotation="0 160 0"/>
                </part>
				<part node="0>8|0|1">
                     <keyFrame time="0.5" translation="47.92 2.024 2.272" rotation="0 0 0"/>
                     <keyFrame time="1"   translation="47.92 2.024 2.272" rotation="0 -160 0"/>
                </part>
                
            </animation>
            <controls triggerNode="0>8|0|2" posAction="ACTIVATE_HANDTOOL" posText="action_openGate" negText="action_closeGate" />
            <sounds>
                <moving linkNode="0>8|0|2" template="woodDoorSqueaksSmall" />
                <posEnd linkNode="0>8|0|2" template="woodDoorClose" />
                <negEnd linkNode="0>8|0|2" template="metalDoorsClose" />
            </sounds>
        </animatedObject>
		<animatedObject saveId="wrota02" >
            <animation duration="3">
                <part node="0>8|1|0|0">
                    <keyFrame time="0.0" translation="0.013 -0.424 -2.053"  />
                    <keyFrame time="0.2" translation="0.013 -0.424 -1.968"  />
					
                </part>
                <part node="0>8|1|0">
                     <keyFrame time="0.2" translation="-47.8 2.024 2.246" rotation="0 0 0"/>
                     <keyFrame time="1"   translation="-47.8 2.024 2.246" rotation="0 160 0"/>
                </part>
				<part node="0>8|1|1">
                     <keyFrame time="0.5" translation="-47.8 2.024 -1.942" rotation="0 0 0"/>
                     <keyFrame time="1"   translation="-47.8 2.024 -1.942" rotation="0 -160 0"/>
                </part>
                
            </animation>
            <controls triggerNode="0>8|1|2" posAction="ACTIVATE_HANDTOOL" posText="action_openGate" negText="action_closeGate" />
            <sounds>
                <moving linkNode="0>8|1|2" template="woodDoorSqueaksSmall" />
                <posEnd linkNode="0>8|1|2" template="woodDoorClose" />
                <negEnd linkNode="0>8|1|2" template="metalDoorsClose" />
            </sounds>
        </animatedObject>
		<animatedObject saveId="wrota03" >
            <animation duration="3">
                <part node="0>8|2|0|0">
                    <keyFrame time="0.0" translation="-1.695 -0.016 0.09"  />
                    <keyFrame time="0.2" translation="-1.695 0.104 0.09"  />
					
                </part>
                <part node="0>8|2|0">
                     <keyFrame time="0.2" translation="13.315 0.409 -7.109" rotation="0 0 0"/>
                     <keyFrame time="1"   translation="13.315 0.409 -7.109" rotation="0 -160 0"/>
                </part>
				<part node="0>8|2|1">
                     <keyFrame time="0.5" translation="9.674 0.409 -7.109" rotation="0 0 0"/>
                     <keyFrame time="1"   translation="9.674 0.409 -7.109" rotation="0 160 0"/>
                </part>
                
            </animation>
            <controls triggerNode="0>8|2|2" posAction="ACTIVATE_HANDTOOL" posText="action_openGate" negText="action_closeGate" />
            <sounds>
                <moving linkNode="0>8|2|2" template="woodDoorSqueaksSmall" />
                <posEnd linkNode="0>8|2|2" template="woodDoorClose" />
                <negEnd linkNode="0>8|2|2" template="metalDoorsClose" />
            </sounds>
        </animatedObject>
		<animatedObject saveId="wrota04" >
            <animation duration="3">
                <part node="0>8|3|0|0">
                    <keyFrame time="0.0" translation="-1.696 -0.016 0.09"  />
                    <keyFrame time="0.2" translation="-1.696 0.104 0.09"  />
					
                </part>
                <part node="0>8|3|0">
                     <keyFrame time="0.2" translation="-21.983 0.409 -7.109" rotation="0 0 0"/>
                     <keyFrame time="1"   translation="-21.983 0.409 -7.109" rotation="0 -160 0"/>
                </part>
				<part node="0>8|3|1">
                     <keyFrame time="0.5" translation="-25.625 0.409 -7.109" rotation="0 0 0"/>
                     <keyFrame time="1"   translation="-25.625 0.409 -7.109" rotation="0 160 0"/>
                </part>
                
            </animation>
            <controls triggerNode="0>8|3|2" posAction="ACTIVATE_HANDTOOL" posText="action_openGate" negText="action_closeGate" />
            <sounds>
                <moving linkNode="0>8|3|2" template="woodDoorSqueaksSmall" />
                <posEnd linkNode="0>8|3|2" template="woodDoorClose" />
                <negEnd linkNode="0>8|3|2" template="metalDoorsClose" />
            </sounds>
        </animatedObject>
		<animatedObject saveId="wrota05" >
            <animation duration="2">
                <part node="0>8|4|0">
                     <keyFrame time="0"   translation="24.495 2.025 -2.069" />
                     <keyFrame time="1"   translation="24.495 2.025 -4.171" />
                </part>
				 <part node="0>8|4|1">
                     <keyFrame time="0.4"   translation="24.495 2.025 2.375" />
                     <keyFrame time="1"     translation="24.495 2.025 4.49" />
                </part>
            </animation>
            <controls triggerNode="0>8|4|2" posAction="ACTIVATE_HANDTOOL" posText="action_openGate" negText="action_closeGate" />
            <sounds>
                <moving linkNode="0>8|4|2" template="slidingGateMetalLoop"  />
                <posEnd linkNode="0>8|4|2" template="slidingGateMetalOpen"  />
                <negEnd linkNode="0>8|4|2" template="slidingGateMetalClose" />
            </sounds>
        </animatedObject>
		<animatedObject saveId="brama01" >
            <animation duration="1.5">
                <part node="0>8|5|0">
                     <keyFrame time="0"   translation="-39.467 1.95 -2.3" />
                     <keyFrame time="1"   translation="-34.684 1.95 -2.3" />
                </part>
				
            </animation>
            <controls triggerNode="0>8|5|0|2" posAction="ACTIVATE_HANDTOOL" posText="action_openGate" negText="action_closeGate" />
            <sounds>
                <moving linkNode="0>8|5|0|2" template="slidingGateMetalLoop"  />
                <posEnd linkNode="0>8|5|0|2" template="slidingGateMetalOpen"  />
                <negEnd linkNode="0>8|5|0|2" template="slidingGateMetalClose" />
            </sounds>
        </animatedObject>
		<animatedObject saveId="brama02" >
            <animation duration="1.5">
                <part node="0>8|6|0">
                     <keyFrame time="0"   translation="-39.467 1.95 2.613" />
                     <keyFrame time="1"   translation="-34.684 1.95 2.613" />
                </part>
				
            </animation>
            <controls triggerNode="0>8|6|0|2" posAction="ACTIVATE_HANDTOOL" posText="action_openGate" negText="action_closeGate" />
            <sounds>
                <moving linkNode="0>8|6|0|2" template="slidingGateMetalLoop"  />
                <posEnd linkNode="0>8|6|0|2" template="slidingGateMetalOpen"  />
                <negEnd linkNode="0>8|6|0|2" template="slidingGateMetalClose" />
            </sounds>
        </animatedObject>
		<animatedObject saveId="light01" >
            <animation duration="1">
			
			   <part node="0>12|1|0|2">
                     <keyFrame time="0.0" translation="0 0 0" rotation="13 0 0"/>
                     <keyFrame time="1" translation="0 0 0" rotation="-13 0 0"/>
                </part>
				<part node="0>12|1|0|3">
                    <keyFrame time="0.0" visibility="true"/>
                    <keyFrame time="1.0" visibility="false"/>
                </part>
				<part node="0>12|1|0|4">
                    <keyFrame time="0.0" visibility="false"/>
                    <keyFrame time="1.0" visibility="true"/>
                </part>
                <part node="0>12|1|1|1">
                    <keyFrame time="0.0" visibility="false"/>
                    <keyFrame time="0.2" visibility="true"/>
                </part>
				 <part node="0>12|1|2|1">
                    <keyFrame time="0.2" visibility="false"/>
                    <keyFrame time="0.4" visibility="true"/>
                </part>
				 
				
            </animation>
            <controls triggerNode="0>12|1|3" posAction="ACTIVATE_HANDTOOL" posText="action_lightOn" negText="action_lightOut" />
            <sounds>
                <moving file="sounds/switchClick.ogg" loops="1" linkNode="0>12|1|3" volume="0.6" radius="40" innerRadius="3" fadeOut="0.25"/>
            </sounds>
        </animatedObject>
		<animatedObject saveId="light02" >
            <animation duration="1">
			
			   <part node="0>12|2|0|2">
                     <keyFrame time="0.0" translation="0 0 0" rotation="13 0 0"/>
                     <keyFrame time="1" translation="0 0 0" rotation="-13 0 0"/>
                </part>
				<part node="0>12|2|0|3">
                    <keyFrame time="0.0" visibility="true"/>
                    <keyFrame time="1.0" visibility="false"/>
                </part>
				<part node="0>12|2|0|4">
                    <keyFrame time="0.0" visibility="false"/>
                    <keyFrame time="1.0" visibility="true"/>
                </part>
                <part node="0>12|2|1|1">
                    <keyFrame time="0.0" visibility="false"/>
                    <keyFrame time="0.2" visibility="true"/>
                </part>
				 <part node="0>12|2|2|1">
                    <keyFrame time="0.2" visibility="false"/>
                    <keyFrame time="0.4" visibility="true"/>
                </part>
				<part node="0>12|2|3|1">
                    <keyFrame time="0.2" visibility="false"/>
                    <keyFrame time="0.4" visibility="true"/>
                </part>
				<part node="0>12|2|4|1">
                    <keyFrame time="0.2" visibility="false"/>
                    <keyFrame time="0.4" visibility="true"/>
                </part>
				<part node="0>12|2|5|1">
                    <keyFrame time="0.2" visibility="false"/>
                    <keyFrame time="0.4" visibility="true"/>
                </part>
				<part node="0>12|2|6|1">
                    <keyFrame time="0.2" visibility="false"/>
                    <keyFrame time="0.4" visibility="true"/>
                </part>
				<part node="0>12|2|7|1">
                    <keyFrame time="0.2" visibility="false"/>
                    <keyFrame time="0.4" visibility="true"/>
                </part>
				<part node="0>12|2|8|1">
                    <keyFrame time="0.2" visibility="false"/>
                    <keyFrame time="0.4" visibility="true"/>
                </part>
				<part node="0>12|2|9|1">
                    <keyFrame time="0.2" visibility="false"/>
                    <keyFrame time="0.4" visibility="true"/>
                </part>
				<part node="0>12|2|10|1">
                    <keyFrame time="0.2" visibility="false"/>
                    <keyFrame time="0.4" visibility="true"/>
                </part>
				<part node="0>12|2|11|1">
                    <keyFrame time="0.2" visibility="false"/>
                    <keyFrame time="0.4" visibility="true"/>
                </part>
				 
				
            </animation>
            <controls triggerNode="0>12|2|12" posAction="ACTIVATE_HANDTOOL" posText="action_lightOn" negText="action_lightOut" />
            <sounds>
                <moving file="sounds/switchClick.ogg" loops="1" linkNode="0>12|2|12" volume="0.6" radius="40" innerRadius="3" fadeOut="0.25"/>
            </sounds>
        </animatedObject>
    </animatedObjects>

    <husbandry saveId="Animals_CHICKEN" hasStatistics="false">
	  

        <animals type="CHICKEN" maxNumAnimals="3500" >
            <navigation rootNode="0>11" filename="i3d/navigationMeshHen.i3d" />
            <loadingTrigger node="0>17" />
        </animals>

        <food capacity="19500" >
            <foodPlane node="0>7|2" minY="0" maxY="0.11" changeVisibility="true" defaultFillType="WHEAT"/>
            <unloadTrigger exactFillRootNode="0>7|0" />
            <foodPlaces>
                <foodPlace node="0>7|3|0"/>
                <foodPlace node="0>7|3|1"/>
                <foodPlace node="0>7|3|2"/>
                <foodPlace node="0>7|3|3"/>
                <foodPlace node="0>7|3|4"/>
                <foodPlace node="0>7|3|5"/>
                <foodPlace node="0>7|3|6"/>
                <foodPlace node="0>7|3|7"/>
                <foodPlace node="0>7|3|8"/>
                <foodPlace node="0>7|3|9"/>
                <foodPlace node="0>7|3|10"/>
                <foodPlace node="0>7|3|11"/>
                <foodPlace node="0>7|3|12"/>
                <foodPlace node="0>7|3|13"/>
                <foodPlace node="0>7|3|14"/>
                <foodPlace node="0>7|3|15"/>
                <foodPlace node="0>7|3|16"/>
                <foodPlace node="0>7|3|17"/>
            </foodPlaces>
        </food>
		
		
		
		

        <pallets>
            <palletSpawner fillTypes="EGG" maxNumPallets="80">
                <palletTrigger node="0>10|0" />
                <spawnPlaces>
                <spawnPlace startNode="0>10|1" endNode="0>10|1|0" />
                <spawnPlace startNode="0>10|2" endNode="0>10|2|0" />
                <spawnPlace startNode="0>10|3" endNode="0>10|3|0" />
               
                
                </spawnPlaces>
            </palletSpawner>
        </pallets>
    </husbandry>

</placeable>
