<?xml version="1.0" encoding="utf-8" standalone="no"?>
<vehicle type="conveyorBeltLSFMSpecial" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../bin/shared/xml/schema/vehicle.xsd">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>

    <storeData>
        <name>
		<en>concrete mixer treating</en>
		<hu>Olcsó kivitelezésű csávázó</hu>
		</name>
        <specs>
		    <combination xmlFilename="agregator/agregator.xml"/>
			<combination xmlFilename="Banki1L.xml"/>
            <maxSpeed>5</maxSpeed>
        </specs>
        <functions>
            <function>$l10n_function_beton</function>
            <function>$l10n_function_seedTreating</function>
        </functions>
        <image>vehicles/hagyomanyos/store.png</image>
        <price>349</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
		<brand>GBF</brand>
        <category>GBFE</category>
        <shopTranslationOffset>0 0.048 0</shopTranslationOffset>
        <shopRotationOffset>0 0 0</shopRotationOffset>
        <vertexBufferMemoryUsage>0</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>0</indexBufferMemoryUsage>
        <textureMemoryUsage>0</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_betonmixer</typeDesc>
        <filename>vehicles/hagyomanyos/betonkevero.i3d</filename>
        <sounds filename="vehicles/hagyomanyos/sound/kevero.xml" volumeFactor="0.8"/>
        <size width="3" length="14.5" lengthOffset="0.1"/>
        <components>
            <component centerOfMass="0 0 0" solverIterationCount="10" mass="70"/>
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="VEHICLE_BETONKEVERO" />
    </base>

    <wheels>
        <wheelConfigurations>
            <wheelConfiguration name="$l10n_configuration_valueDefault" price="0" >
                <wheels autoRotateBackSpeed="2" >
                    <wheel isLeft="true" hasTireTracks="true" hasParticles="true">
                        <physics restLoad="0.4" repr="0>1|6"  forcePointRatio="0.15" radius="0.13" width="0.12" initialCompression="20" suspTravel="0.05" spring="36" damper="10" yOffset="0.01"/>
                    </wheel>
                    <wheel isLeft="false" hasTireTracks="true" hasParticles="true">
                        <physics restLoad="0.4" repr="0>1|7" forcePointRatio="0.15" radius="0.13" width="0.12" initialCompression="20" suspTravel="0.05" spring="36" damper="10" yOffset="0.01"/>
                    </wheel>
                    <wheel  isLeft="true" hasTireTracks="true" hasParticles="true">
                        <physics restLoad="0.3" rotSpeed="1" repr="0>0|6"  radius="0.17" width="0.12" forcePointRatio="0.15" initialCompression="20" suspTravel="0.05" spring="30" damper="10" yOffset="0.015"/>
                    </wheel>
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>

        <ackermannSteeringConfigurations>
            <ackermannSteering rotSpeed="40" rotMax="60" rotCenterWheel1="1" rotCenterWheel2="2"/>
        </ackermannSteeringConfigurations>


    </wheels>
	
		
	<attacherJoints>
        <attacherJoint node="0>30|0" jointType="agri" allowsJointLimitMovement="false" allowsLowering="false" lowerRotLimit="0 0 0">
            <schema position="1 0" rotation="0" invertX="false" />
        </attacherJoint>
    </attacherJoints>
	
	<connectionHoses>
        <hose inputAttacherJointIndices="1" type="electric" node="0>31" length="2.0" diameter="0.01" straighteningFactor="1.0">
        </hose>

        <target attacherJointIndices="1" type="electric"        node="0>32"  socket="electric"/>
    </connectionHoses>
	

	<attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="0>22|2|0" jointType="bikeTrailer"  attacherHeight="0.75" />
        </inputAttacherJoints>
        <brakeForce force="0.1" maxForce="0.9" maxForceMass="80"/>
    </attachable>

    <enterable isTabbable="true" enterText="$l10n_enterText_mix" >
        <exitPoint node="0>0|13"/>
        <enterReferenceNode node="0>"/>
		<characterNode node="0>0|7|0|0" animationNode="2" cameraMinDistance="0.01" spineRotation="270 0 90" useAnimation="true" />
		
        <cameras>
            <camera node="0>0|14|0|0" rotatable="true" rotateNode="0>0|14|0" limit="true" useWorldXZRotation="true" rotMinX="-1.4" rotMaxX="1" isInside="false" transMin="2.5" transMax="40" translation="0 0 8.3" rotation="-20 180 0">
            </camera>
			<camera node="0>0|14|3|0" rotatable="true" limit="true" rotMinX="-1.1" rotMaxX="0.4" transMin="0" transMax="0" useMirror="true" isInside="true"/>
        </cameras>
    </enterable>

    <drivable>
        <sounds>
            <waterSplash template="WATER_SPLASH_01" />
        </sounds>
        <cruiseControl minSpeed="0.001"/>
        <steeringWheel node="0>0|12" indoorRotation="70" outdoorRotation="70"/>
    </drivable>

    <motorized forceSpeedHudDisplay="true" turnOnText="$l10n_action_workeron" turnOffText="$l10n_action_workeroff">
        <consumerConfigurations>
            <consumerConfiguration consumersEmptyWarning="$l10n_warning_motorBatteryEmpty">
                <consumer fillUnitIndex="3" usage="16" fillType="electricCharge" />
            </consumerConfiguration>
        </consumerConfigurations>

        <motorConfigurations>
            <motorConfiguration name="Betonkevero" price="0" hp="2">
                <motor torqueScale="0.14" minRpm="850" maxRpm="2200" maxForwardSpeed="5" startAnimationName="engineStarter" maxBackwardSpeed="5" brakeForce="0.5" lowBrakeForceScale="0.1" accelerationLimit="1" dampingRateScale="0.2"  >
                    <torque normRpm="0.45" torque="0.9"/>
                    <torque normRpm="0.5" torque="0.97"/>
                    <torque normRpm="0.59" torque="1"/>
                    <torque normRpm="0.72" torque="1"/>
                    <torque normRpm="0.86" torque="0.88"/>
                    <torque normRpm="1" torque="0.72"/>
                </motor>
                <transmission minForwardGearRatio="160" maxForwardGearRatio="350" minBackwardGearRatio="160" maxBackwardGearRatio="350" />
            </motorConfiguration>
        </motorConfigurations>

        <differentialConfigurations>
            <differentialConfiguration>
                <differentials>
                    <differential torqueRatio="0.5" maxSpeedRatio="2.6" wheelIndex1="1" wheelIndex2="2"/>
                </differentials>
            </differentialConfiguration>
        </differentialConfigurations>
		<!--
		<animationNodes>
             <animationNode node="0>1|5|0|0" rotSpeed="200" rotAxis="1" turnOnFadeTime="1" turnOffFadeTime="1"/>
        </animationNodes>	-->


        <motorStartDuration>1000</motorStartDuration>
    </motorized>

    <fillVolume>
        <fillVolumeConfigurations>
            <fillVolumeConfiguration>
                <volumes>
                    <volume node="0>1|5|5|0|0" maxDelta="0.20" maxAllowedHeapAngle="20" fillUnitIndex="1" />
					<volume node="0>1|5|5|1|0" maxDelta="0.20" maxAllowedHeapAngle="20" fillUnitIndex="2" />
                </volumes>
            </fillVolumeConfiguration>
        </fillVolumeConfigurations>
		
		<loadInfos>
            <loadInfo>
                <node node="0>0|17" width="2" length="4.0" />
            </loadInfo>
        </loadInfos>

        <unloadInfos>
            <unloadInfo>
                <node node="0>0|18" width="1.0" length="1.5" />
            </unloadInfo>
        </unloadInfos>
    </fillVolume>

    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration>
                <fillUnits fillTypeChangeThreshold="1">
                    <fillUnit unitTextOverride="$l10n_unit_literShort" fillTypeCategories="bulk" capacity="300" showOnHud="true" startFillLevel="300" showInShop="false" updateMass="true">
					<exactFillRootNode node="0>0|15" />
					<fillTrigger litersPerSecond="80"/>
                    </fillUnit>
                    <fillUnit unitTextOverride="$l10n_unit_literShort" fillTypes="LIQUIDSEEDTREATMENT" showOnHud="true" capacity="2.1" updateMass="true" startFillLevel="2.1" uiPrecision="1">
                        <exactFillRootNode node="0>0|16" />
                    </fillUnit>
                    <fillUnit unitTextOverride="$l10n_unit_kw" showOnHud="false" showInShop="false" fillTypes="ELECTRICCHARGE" capacity="80" />
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>
	
	<trailer>
        <trailerConfigurations>
            <trailerConfiguration>
                <trailer>
                    <tipSide name="$l10n_magki" dischargeNodeIndex="1">
						<animation name="forog1" speedScale="1.0" turnOnFadeTime="1.0" turnOffFadeTime="2.0" />
						<animation name="forog2" speedScale="0.9" turnOnFadeTime="1.0" turnOffFadeTime="2.0" />	
                    </tipSide>
                </trailer>
            </trailerConfiguration>
        </trailerConfigurations>
    </trailer>
	
	<animations>
		<animation name="toggleCover"><!-- kiöntési animáció -->
        </animation>
		<animation name="engineStarter"><!--bekapcsolási animáció -->
        </animation>
		<animation name="turnedOnAnimation" looping="true"><!--lapát és a lpátos fickó animációja -->
			<part node="0>5|0" startTime="0" endTime="7.533" animationClip="lapatosSource" clipStartTime="0" clipEndTime="7533" />
			<part node="0>4|0" startTime="0" endTime="7.533" animationClip="lapatSource" clipStartTime="0" clipEndTime="7533" />
		</animation>
		<animation name="forog1" looping="true"><!--vetőmag animáció -->
			<part node="0>1|5|5|0" startTime="0" endTime="1.666" animationClip="forogSource" clipStartTime="0" clipEndTime="1666" />
		</animation>	
		<animation name="forog2" looping="true"><!--csávázó folyadék animáció -->
			<part node="0>1|5|5|1" startTime="0" endTime="1.666" animationClip="forogSource" clipStartTime="0" clipEndTime="1666" />
		</animation>	
		<animation name="dzsoni">
			<part node="0>1|4" startTime="0" endTime="0.01" visibility="true"  /><!--agregátor kapcsoloja ég-->
			<part node="0>1|4" startTime="0.01" endTime="0.02" visibility="false"  /><!--agregátor kapcsoloja nem ég-->
			<part node="0>39" startTime="0" endTime="0.01" visibility="false"  /><!--agregátor kapcsoloja ég-->
			<part node="0>39" startTime="0.01" endTime="0.02" visibility="true"  /><!--agregátor kapcsoloja nem ég-->
        </animation>
		<animation name="sideDoor"><!-- átalakulás lapátos eltüntetés és aktiválás  X gombra-->
			<part node="0>4|0"  startTime="0.0" endTime="0.05" visibility="false"  /><!--lapát nem látható-->
			<part node="0>4|0"  startTime="0.05" endTime="0.10" visibility="true"  /><!--lapát látható-->
			<part node="0>5|1"  startTime="0.0" endTime="0.05" visibility="false"  /><!--lapátos nem látható-->
			<part node="0>5|1"  startTime="0.05" endTime="0.10" visibility="true"  /><!--lapátos látható-->
			<part node="0>0|7"  startTime="0.0" endTime="0.05" visibility="true"  /><!--alap farmer látható-->
			<part node="0>0|7"  startTime="0.05" endTime="0.10" visibility="false"  /><!--alap farmer nem látható-->
			<part node="0>8" startTime="0" endTime="0.01" startTrans="-0.99 0 50" endTrans="-0.99 0 0" /><!--lapátolás funkció bekapcs kikapcs-->
        </animation>
		<animation name="akaszt" ><!-- akasztási pont megjelenitése és eltüntetése -->
        <part node="0>22" startTime="0" endTime="0.01" visibility="false"  />
		<part node="0>22" startTime="0.01" endTime="0.02" visibility="true"  />
		<part node="0>22" startTime="0" endTime="0.01" startTrans="0 -20 -0.1" endTrans="0 0 0" />
		</animation>
	</animations>
	
	<foldable>
        <foldingConfigurations>
            <foldingConfiguration>
                <foldingParts posDirectionText="$l10n_lapatbe" negDirectionText="$l10n_lapatki" >
                    <foldingPart animationName="sideDoor" speedScale="1"/>
                </foldingParts>
            </foldingConfiguration>
        </foldingConfigurations>
    </foldable>
	
	
	<interactiveControl>
        <interactiveControlConfigurations title="$l10n_actionIC_Animation">
            <interactiveControlConfiguration name="$l10n_actionIC_interactive">
                <interactiveControls>
                    <outdoorTrigger node="0>14" />
						<interactiveControl posText="$l10n_ki" negText="$l10n_be">
						<clickPoint node="0>26" size="0.05" type="INDOOR" iconType="CROSS" />
						<clickPoint node="0>27" size="0.05" type="OUTDOOR" iconType="CROSS" />
						<animation name="akaszt" speedScale="2" initTime="0.0" />
						<soundModifier indoorFactor="2.0" delayedSoundAnimationTime="0.1" />
						</interactiveControl>
				</interactiveControls>
			</interactiveControlConfiguration>
		</interactiveControlConfigurations>
	</interactiveControl>
    <dischargeable stopDischargeOnDeactivate="false" requiresTipOcclusionArea="false">
        <dischargeNode node="0>10" emptySpeed="100" fillUnitIndex="1" canStartDischargeAutomatically="true"> 
            <info width="0.4" length="0.4" />
            <raycast maxDistance="20"/>
            <fillType converterName="SEEDTREATMENT"/>
				<turnedOnAnimation name="forog1" speedScale="1.0" turnOnFadeTime="1.0" turnOffFadeTime="2.0" />
				<turnedOnAnimation name="forog2" speedScale="0.9" turnOnFadeTime="1.0" turnOffFadeTime="2.0" />	
            <effects>
                <effectNode effectClass="PipeEffect" effectNode="0>11"      materialType="pipe"           delay="0" maxBending="0.5" extraDistance="0.1"/>
                <effectNode                          effectNode="0>12" materialType="unloadingSmoke" delay="0.1" alignToWorldY="true"/>
            </effects>
				<sounds>
            <start file="vehicles/hagyomanyos/sound/on.wav" />
            <work file="vehicles/hagyomanyos/sound/hang.wav" />
            <stop file="vehicles/hagyomanyos/sound/off.wav" />
        </sounds>
        </dischargeNode>    
    </dischargeable>

    <seedTreater fillUnitIndex="2" dischargeNodeIndex="1" usagePerLiter="0.0078" fillFromTriggerThreshold="10" treatmentSpeedFactor="0.05"/>

	<ai supportsAIJobs="false">
	<agentAttachment/>
	</ai>
	
	<honk>
        <sound file="vehicles\hagyomanyos\sound\futtty.wav"/>
    </honk>
	
	<shovel>
        <shovelNode node="0>8" fillUnitIndex="1" width="4" length="5" yOffset="-0.1" zOffset="0.1" needsMovement="false" needsActivation="true"  fillLitersPerSecond="400" needsAttacherVehicle="false">
        </shovelNode>

        <shovelNode node="0>8" fillUnitIndex="1" width="4" length="5" yOffset="-0.1" zOffset="0.1" needsMovement="false" needsActivation="true"  fillLitersPerSecond="400" needsAttacherVehicle="false">
        </shovelNode>

        <shovelNode node="0>8" fillUnitIndex="1" width="4" length="5" yOffset="-0.1" zOffset="0.1" needsMovement="false" needsActivation="true"  fillLitersPerSecond="400" needsAttacherVehicle="false">
        </shovelNode>

        <shovelNode node="0>8" fillUnitIndex="1" width="4" length="5" yOffset="-0.1" zOffset="0.1"  needsMovement="false" needsActivation="true" fillLitersPerSecond="400" needsAttacherVehicle="false">
        </shovelNode>
    </shovel>
	
	
	<turnOnVehicle  requiresMotorTurnOn="false"  turnedOnByAttacherVehicle="true"   toggleButton="TURN_ON_ALL_IMPLEMENTS" turnOnText="$l10n_csavazobe" turnOffText="$l10n_csavazoki">
	<turnedOnAnimation name="turnedOnAnimation"/>      
	<turnedOnAnimation name="forog1" speedScale="1.0" turnOnFadeTime="0.0" turnOffFadeTime="2.0" />
	<turnedOnAnimation name="forog2" speedScale="0.9" turnOnFadeTime="0.0" turnOffFadeTime="2.0" />	
	<turnedAnimation name="dzsoni"/>
		<animationNodes>
             <animationNode node="0>1|5|0|0" rotSpeed="200" rotAxis="1" turnOnFadeTime="1" turnOffFadeTime="1"/>
        </animationNodes>	
		<sounds>
            <start file="vehicles/hagyomanyos/sound/on.wav" />
            <work file="vehicles/hagyomanyos/sound/hang.wav" />
            <stop file="vehicles/hagyomanyos/sound/off.wav" />
        </sounds>
	</turnOnVehicle>
	
	
	
	<pushHandTool>
       <raycast node1="0>0|7|1" node2="0>0|7|2" playerNode="0>0|7|0"/>
        <wheels front="2 3" back="1"/>

        <ikChains>
            <target ikChain="rightArm"  targetNode="0>0|8" poseId="wideFingers"/>
             <target ikChain="leftArm"   targetNode="0>0|9" poseId="wideFingers"/> 
        </ikChains>

        <customChainLimits>
            <customChainLimit chainId="leftArm" nodeIndex="1" minRx="-30" maxRx="30" minRy="40" maxRy="65" minRz="-90" maxRz="40" localLimits="true"/>
            <customChainLimit chainId="leftArm" nodeIndex="2" minRx="-25" maxRx="25" minRy="0" maxRy="0" minRz="-144" maxRz="-3" localLimits="true"/>

            <customChainLimit chainId="rightArm" nodeIndex="1" minRx="-30" maxRx="30" minRy="40" maxRy="65" minRz="-90" maxRz="40" localLimits="true"/>
            <customChainLimit chainId="rightArm" nodeIndex="2" minRx="-25" maxRx="25" minRy="0" maxRy="0" minRz="-144" maxRz="-3" localLimits="true"/>
        </customChainLimits>

        <playerConditionalAnimation>
            <item id="idle" entryTransitionDuration="0.25" exitTransitionDuration="0.25" >
                <clips>
                    <clip clipName="idle1Source" />
                </clips>
                <conditions>
                    <conditionGroup>
                        <condition parameter="absSmoothedForwardVelocity" lower="0.2" />
                    </conditionGroup>
                </conditions>
            </item>
            <item id="walk" entryTransitionDuration="0.25" exitTransitionDuration="0.25" >
                <clips speedScaleType="distance" speedScaleParameter="1.8">
                    <!-- <clip clipName="walkFwd1Source" /> -->
					<clip clipName="NPCWalkMale03Source" />
                </clips>
                <conditions>
                    <conditionGroup>
                        <condition parameter="smoothedForwardVelocity" between="0.3, 4"/>
                    </conditionGroup>
                </conditions>
            </item>
            <item id="walkBack" entryTransitionDuration="0.5" exitTransitionDuration="0.25" >
                <clips speedScaleType="distance" speedScaleParameter="2.25">
                    <clip clipName="walkBwdLoopSource" />
                </clips>
                <conditions>
                    <conditionGroup>
                        <condition parameter="smoothedForwardVelocity" between="-3, -0.3" />
                    </conditionGroup>
                </conditions>
            </item>
        </playerConditionalAnimation>
    </pushHandTool>


	

    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="3" fieldMultiplier="2"/>
</vehicle>
