<?xml version="1.0" encoding="utf-8" standalone="no"?>
<vehicle xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" type="pallet" xsi:noNamespaceSchemaLocation="https://validation.gdn.giants-software.com/xml/fs25/vehicle.xsd">
    <storeData>
        <name>$l10n_storeItem_bucketPallet</name>
        <image>$data/objects/pallets/bucketPallet/store_bucketPallet.png</image>
        <price>1290</price>
        <category>pallets</category>
        <brand>NONE</brand>
        <showInStore>false</showInStore>
        <canBeSold>false</canBeSold>
        <financeCategory>OTHER</financeCategory>

        <storeIconRendering>
            <settings centerIcon="true" cameraXRot="-15" cameraYRot="35"/>
        </storeIconRendering>
        <vertexBufferMemoryUsage>158208</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>51968</indexBufferMemoryUsage>
        <textureMemoryUsage>655360</textureMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_pallet</typeDesc>
        <filename>i3d/bucketPallet.i3d</filename>
        <size width="1.3" length="0.9" height="0.8" lengthOffset="0"/>
        <canBeReset>false</canBeReset>
        <components maxMass="100">
            <component centerOfMass="0 0.2 0" solverIterationCount="10" mass="60"/>
        </components>
        <showInVehicleMenu>false</showInVehicleMenu>
        <mapHotspot available="false"/>
        <input allowed="false"/>
        <supportsPickUp>true</supportsPickUp>
    </base>

    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration>
                <fillUnits removeVehicleIfEmpty="true">
                    <fillUnit unitTextOverride="$l10n_unit_pieces" fillTypes="BUCKET" capacity="1000" startFillLevel="1000" ignoreFillLimit="true"/>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>
	
	<dischargeable requiresTipOcclusionArea="false">
        <dischargeNode node="raycastNode" emptySpeed="500" fillUnitIndex="1" maxDistance="6" canStartDischargeAutomatically="true">
            <raycast useWorldNegYDirection="true" />
            <info width="0.4" length="0.4" />
            <activationTrigger node="dischargeActivationTrigger" />
        </dischargeNode>
    </dischargeable>

	<fillTriggerVehicle triggerNode="fillTrigger" fillUnitIndex="1" litersPerSecond="500"/>
	
    <pallet fillUnitIndex="1" linkNode="bucketPallet_main_component1">
        <texture diffuse="$data/objects/pallets/shared/euroPallet/euroPalletNew_diffuse.dds"/>
        <texture diffuse="$data/objects/pallets/shared/euroPallet/euroPalletMiddle_diffuse.dds"/>
        <texture diffuse="$data/objects/pallets/shared/euroPallet/euroPalletOld_diffuse.dds"/>

        <content>
            <object node="bucket01" tensionBeltNode="bucket01Tension"/>
            <object node="bucket02" tensionBeltNode="bucket02Tension"/>
            <object node="bucket03" tensionBeltNode="bucket03Tension"/>
            <object node="bucket04" tensionBeltNode="bucket04Tension"/>
            <object node="bucket05" tensionBeltNode="bucket05Tension"/>
            <object node="bucket06" tensionBeltNode="bucket06Tension"/>
        </content>
        <sounds>
            <unload template="palletsFillWood" pitchScale="0.9" volumeScale="2.5" supportsReverb="false"/>
        </sounds>
    </pallet>

    <dynamicMount triggerNode="dynamicMountTrigger" triggerForceAcceleration="4" additionalMountDistance="0.757" jointTransY="0.106" jointLimitToRotY="true"/>

    <i3dMappings>
        <i3dMapping id="bucketPallet_main_component1" node="0>"/>
        <i3dMapping id="bucket01" node="0>0|0"/>
        <i3dMapping id="bucket01Tension" node="0>0|0|0"/>
        <i3dMapping id="bucket02" node="0>0|1"/>
        <i3dMapping id="bucket02Tension" node="0>0|1|0"/>
        <i3dMapping id="bucket03" node="0>0|2"/>
        <i3dMapping id="bucket03Tension" node="0>0|2|0"/>
        <i3dMapping id="bucket04" node="0>0|3"/>
        <i3dMapping id="bucket04Tension" node="0>0|3|0"/>
        <i3dMapping id="bucket05" node="0>0|4"/>
        <i3dMapping id="bucket05Tension" node="0>0|4|0"/>
        <i3dMapping id="bucket06" node="0>0|5"/>
        <i3dMapping id="bucket06Tension" node="0>0|5|0"/>
        <i3dMapping id="dynamicMountTrigger" node="0>1"/>
        <i3dMapping id="dischargeNode" node="0>2"/>
		<i3dMapping id="raycastNode" node="0>4"/>
		<i3dMapping id="fillTrigger" node="0>5"/>
		<i3dMapping id="dischargeActivationTrigger" node="0>6"/>
    </i3dMappings>
</vehicle>
