<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="lsfmIBCTankPallet" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../shared/xml/schema/vehicle.xsd">
    <storeData>
        <name>IBC Tank Additive</name>
        <functions>
            <function>$l10n_function_lsfmIBCTank</function>
        </functions>
		<specs>
            <capacity>1000</capacity>
			<weight ignore="true"/>
        </specs>
		<showInStore>true</showInStore>
        <canBeSold>true</canBeSold>
		<allowLeasing>false</allowLeasing>
        <image>store/store_ibcTank_fillable.png</image>
        <price>120</price>
		<shopHeight>2</shopHeight>
        <rotation>-90</rotation>
        <brand>LSFMINNOVATIONS</brand>
        <category>barrels ibc</category>

		<storeIconRendering>
            <settings cameraXRot="-15" cameraYRot="25" />
        </storeIconRendering>
        <audioMemoryUsage>0</audioMemoryUsage>
    </storeData>

    <base>
		<typeDesc>IBC Tank Additive</typeDesc>
        <filename>objects/ibcTank_fillable.i3d</filename>
        <size width="1.6" length="1.4" height="1.5" />
        <input allowed="false"/>
        <canBeReset>false</canBeReset>
        <supportsPickUp>true</supportsPickUp>
        <components maxMass="850">
            <component centerOfMass="0 0.1 0" solverIterationCount="10" mass="100" />
        </components>
        <showInVehicleMenu>false</showInVehicleMenu>
        <mapHotspot available="false" />
    </base>

    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration>
                <fillUnits removeVehicleIfEmpty="false" fillTypeChangeThreshold="1">
                    <fillUnit unitTextOverride="$l10n_unit_literShort" fillType="SILAGE_ADDITIVE" capacity="2000" updateMass="true" ignoreFillLimit="true">	
                        <exactFillRootNode node="exactFillRootNode" />
						<dashboard displayType="ANIMATION" valueType="fillLevel" animName="fillLevelAnimation" />
					</fillUnit>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>
	
	<fillTriggerVehicle triggerNode="fillTrigger" fillUnitIndex="1" litersPerSecond="200"/>

    <dynamicMount triggerNode="dynamicMountTrigger" />

	<animations>
        <animation name="fillLevelAnimation">
            <part node="fillPlaneWater"  startTime="0.000" endTime="1.000" startScale="1 0 1" endScale="1 1 1" />
            <part node="fillPlaneMilk"  startTime="0.000" endTime="1.000" startScale="1 0 1" endScale="1 1 1" />
            <part node="fillPlaneLiquidFertilizer"  startTime="0.000" endTime="1.000" startScale="1 0 1" endScale="1 1 1" />
            <part node="fillPlaneHerbicide"  startTime="0.000" endTime="1.000" startScale="1 0 1" endScale="1 1 1" />
            <part node="fillPlaneDiesel"  startTime="0.000" endTime="1.000" startScale="1 0 1" endScale="1 1 1" />
            <part node="fillPlaneRubinTT"  startTime="0.000" endTime="1.000" startScale="1 0 1" endScale="1 1 1" />
        </animation>
    </animations>

    <dischargeable requiresTipOcclusionArea="false">
        <dischargeNode node="raycastNode" emptySpeed="100" fillUnitIndex="1" maxDistance="3" canStartDischargeAutomatically="true">
            <raycast useWorldNegYDirection="true" />
            <info width="0.8" length="0.8" />
            <activationTrigger node="dischargeActivationTrigger" />

			<stateObjectChanges>
                <objectChange node="angelTube" visibilityActive="true" visibilityInactive="false"/>
                <!-- <objectChange node="angelTube" visibilityActive="false" visibilityInactive="true"/> -->
            </stateObjectChanges>

            <!-- <distanceObjectChanges threshold="0.3">
                <objectChange node="outputParts" visibilityActive="true" visibilityInactive="false"/>
            </distanceObjectChanges> -->

            <effects>
				<effectNode effectNode="pipeEffect" materialType="washer" materialTypeId="1"  delay="0" fadeTime="0.5" /> 
			</effects>
        </dischargeNode>
    </dischargeable>
	
    <tensionBeltObject>
        <meshNodes>
            <meshNode node="tensionBeltMesh"/>
        </meshNodes>
    </tensionBeltObject>
		
	<fillTypeSigns>
        <fillTypeSign node="fillTypeIconsWater" fillTypeName="SILAGE_ADDITIVE" />
    </fillTypeSigns>

	<designConfigurations title="$l10n_title_materialCondition">
        <designConfiguration name="$l10n_configuration_valueSolid" price="0">
            <objectChange node="ibcTank_vis" visibilityActive="true" visibilityInactive="false"/>
        </designConfiguration>
        <designConfiguration name="$l10n_configuration_valueTransparent" price="0">
            <objectChange node="ibcTankAlpha_vis" visibilityActive="true" visibilityInactive="false"/>
        </designConfiguration>
    </designConfigurations>
	
    <i3dMappings>
		<i3dMapping id="ibcTank_main_component1" node="0>" />
        <i3dMapping id="dynamicMountTrigger" node="0>0|0" />
        <i3dMapping id="ibcTank_vis" node="0>2|0|0" />
        <i3dMapping id="ibcTankAlpha_vis" node="0>2|0|1" />
        <i3dMapping id="fillTrigger" node="0>0|1" />
		<i3dMapping id="exactFillRootNode" node="0>0|2" />
		<i3dMapping id="tensionBeltMesh" node="0>2|1" />
		<i3dMapping id="dischargeActivationTrigger" node="0>3|2" />
		<i3dMapping id="raycastNode" node="0>3|0" />
        <i3dMapping id="pipeEffect" node="0>3|1|0" />
		<i3dMapping id="fillTypeIconsWater" node="0>4|0" />
		<i3dMapping id="fillTypeIconsMilk" node="0>4|1" />
		<i3dMapping id="fillTypeIconsLiquidFertilizer" node="0>4|2" />
		<i3dMapping id="fillTypeIconsHerbicide" node="0>4|3" />
		<i3dMapping id="fillTypeIconsDiesel" node="0>4|4" />
		<i3dMapping id="fillTypeIconsRubinTT" node="0>4|5" />
		<i3dMapping id="fillPlaneWater" node="0>4|0|0" />
		<i3dMapping id="fillPlaneMilk" node="0>4|1|0" />
		<i3dMapping id="fillPlaneLiquidFertilizer" node="0>4|2|0" />
		<i3dMapping id="fillPlaneHerbicide" node="0>4|3|0" />
		<i3dMapping id="fillPlaneDiesel" node="0>4|4|0" />
		<i3dMapping id="fillPlaneRubinTT" node="0>4|5|0" />
		<i3dMapping id="angelTube" node="0>3|1|1" />
	</i3dMappings>
</vehicle>
