<?xml version="1.0"?>
<ItemRenderer>
	<Data>
		<Sprite name="s_pogoFoot" fileName="game/player_feet16.rttex" textureSize="32" frame="10,22" />
		<Sprite name="s_pogoStick" fileName="game/player_feet16.rttex" textureSize="32" frame="11,22" />
		<Animations>
			<CurveAnimationFloat name="a_Offset" isLoop="true" animTime="700" playOnState="MotionY.No">
				<Curve name="ClothingOffsetFromShoes">
					<KeyFrame>0, 0</KeyFrame>
					<KeyFrame>0.07, 0</KeyFrame>
					<KeyFrame>0.25, -15</KeyFrame>
					<KeyFrame>0.5, -18</KeyFrame>
					<KeyFrame>0.75, -15</KeyFrame>
					<KeyFrame>0.93, 0</KeyFrame>
					<KeyFrame>1, 0</KeyFrame>
				</Curve>
			</CurveAnimationFloat>
			<CurveAnimationVec3 name="a_PoleOffset" isLoop="true" animTime="700" playOnState="MotionY.No">
				<Curve name="poleOffset">
					<KeyFrame>0, 0,-4.5,0</KeyFrame>
					<KeyFrame>0.05, 0,-4,0</KeyFrame>
					<KeyFrame>0.25, 0,1,0</KeyFrame>
					<KeyFrame>0.5, 0,1.5,0</KeyFrame>
					<KeyFrame>0.75, 0,1,0</KeyFrame>
					<KeyFrame>0.95, 0,-4,0</KeyFrame>
					<KeyFrame>1, 0,-4.5,0</KeyFrame>
				</Curve>
			</CurveAnimationVec3>
			<CurveAnimationFloat name="a_OffsetAir" isLoop="true" animTime="700" playOnState="MotionY.Yes">
				<Curve name="ClothingOffsetFromShoes">
					<KeyFrame>0, 0</KeyFrame>
				</Curve>
			</CurveAnimationFloat>
		</Animations>
		<StateMachines>
			<StateMachine name="MotionY">
				<States>
					<State name="No" />
					<State name="Yes" />
					<State name="Mannequin" />
				</States>
				<Transitions>
					<Transition to="No" from="Yes">
						<Condition type="and">
							<IsVariableFloat name="speed.y" operator="Less" abs="true">0.1</IsVariableFloat>
							<IsVariableBool name="isMannequin">false</IsVariableBool>
						</Condition>
					</Transition>
					<Transition to="Yes" from="No">
						<Condition type="and">
							<IsVariableFloat name="speed.y" operator="Greater" abs="true">0.1</IsVariableFloat>
							<IsVariableBool name="isMannequin">false</IsVariableBool>
						</Condition>
					</Transition>
					<Transition to="Mannequin" from="No|Yes">
						<Condition>
							<IsVariableBool name="isMannequin">true</IsVariableBool>
						</Condition>
					</Transition>
				</Transitions>
			</StateMachine>
		</StateMachines>
		<VariableMap>
			<Set name="ClothingOffsetFromShoes">0</Set>
			<Set name="poleScale">1,0.3,1</Set>
			<Set name="poleOffset">0,0,0</Set>
		</VariableMap>
		<RenderOptions>
			<Default>
				<Set name="ClothingOffsetFromShoes">-5</Set>
				<Set name="UserNameOffset">14</Set>
				<Set name="IgnorePunchTypeCheck">true</Set>
				<Set name="RenderBackArmInTheFront">false</Set>
			</Default>
		</RenderOptions>
	</Data>
	<RenderRules>
		<Update>
			<StopIf>
				<IsZombified>true</IsZombified>
			</StopIf>
			<AvatarTransform class="FootPosition">
			  <Set name="foot1dy">0</Set>
			  <Set name="foot2dy">0</Set>
			  <Set name="foot1y">0</Set>
			  <Set name="foot2y">0</Set>
			</AvatarTransform>
		</Update>
		<RenderShoes>
			<Group>
				<Translate onState="MotionY.No">poleOffset</Translate>
				<Scale>poleScale</Scale>
				<SpriteRender name="s_pogoStick" alignment="UPPER_CENTER" />
			</Group>
			<SpriteRender name="s_pogoFoot" offset="1,-8" alignment="UPPER_CENTER" />
			<StopIf>
				<IsAction>PUNCH</IsAction>
				<IsAction>BUILD</IsAction>
				<IsSitting>true</IsSitting>
			</StopIf>
			<AvatarTransform class="ArmAngle">
				<Set name="armName">arm2Angle</Set>
				<Set name="armAngle">0</Set>
			</AvatarTransform>
			<AvatarTransform class="ArmAngle">
				<Set name="armName">arm1Angle</Set>
				<Set name="armAngle">-20</Set>
			</AvatarTransform>
		</RenderShoes>
	</RenderRules>
</ItemRenderer>
