<?xml version="1.0"?>
<ItemRenderer>
	<Data>
		<Sprite name="s_chest" fileName="game/player_cosmetics3.rttex" textureSize="32" frame="18,24" />
		<Sprite name="s_chestGlow" fileName="game/player_cosmetics3.rttex" textureSize="32" frame="19,24" />
		<Sprite name="s_punchAura" fileName="game/particles_large9.rttex" textureSize="64" frame="11,15" />
		<Sprite name="s_punchFlash" fileName="game/particles_large9.rttex" textureSize="64" frame="12,15" />
		<Animations>
			<SpriteCurveAnimation name="a_chestGlow" isLoop="true" playOnState="Punch.Off" sprite="s_chestGlow" animTime="2500">
				<Curve name="alpha">
					<KeyFrame>0.f, 0.f</KeyFrame>
					<KeyFrame>0.2f, 0.f </KeyFrame>
					<KeyFrame>0.4f, 1.f </KeyFrame>
					<KeyFrame>0.8f, 1.f </KeyFrame>
					<KeyFrame>1.f, 0.f</KeyFrame>
				</Curve>
			</SpriteCurveAnimation>
			<SpriteCurveAnimation name="a_chestGlowPunch" isLoop="true" playOnState="Punch.Start|Punch.Update" sprite="s_chestGlow" animTime="2500">
				<Curve name="alpha">
					<KeyFrame>0.f, 1.f</KeyFrame>
					<KeyFrame>1.f, 1.f</KeyFrame>
				</Curve>
			</SpriteCurveAnimation>
		</Animations>
		<StateMachines>
			<StateMachine name="Punch">
				<States>
					<State name="Off" />
					<State name="Start" />
					<State name="Update" />
				</States>
				<Transitions>
					<Transition from="Off" to="Start">
						<Condition>
							<IsAction>PUNCH</IsAction>
						</Condition>
					</Transition>
					<Transition from="Start" to="Update">
						<Condition>
							<IsAction>PUNCH</IsAction>
						</Condition>
					</Transition>
					<Transition from="Update" to="Off">
						<Condition>
							<IsAction operatorType="NotEqual">PUNCH</IsAction>
						</Condition>
					</Transition>
				</Transitions>
			</StateMachine>
		</StateMachines>
		<ParticleSystems>
			<ParticleSystem name="ps_punchAura" updateStage="AddClothingParticles" updateState="Punch.Update">
				<Emitter>
					<Set name="offset">0, -12</Set>
					<Set name="lifeTime">1.01</Set>
					<Set name="infParticles">true</Set>
					<Set name="checkParticleNumToEmit">true</Set>
					<Set name="particlesPerEmission">1</Set>
					<Set name="particlesToEmit">1</Set>
				</Emitter>
				<Particle usePlayerFacing="true">
					<Set name="sprite">s_punchAura</Set>
					<Set name="relativeToEmitter">true</Set>
					<Set name="blendingMode">PREMULTIPLIED_ALPHA</Set>
					<Curve name="initialAlpha">
						<KeyFrame>0, 0.2</KeyFrame>
						<KeyFrame>0.5, 1</KeyFrame>
						<KeyFrame>1, 0</KeyFrame>
					</Curve>
					<Curve name="initialScale">
						<KeyFrame>0, 0.5, 0.5</KeyFrame>
						<KeyFrame>0.5, 0.65, 0.65</KeyFrame>
						<KeyFrame>1, 0.8, 0.8</KeyFrame>
					</Curve>
					<Set name="lifeTime">1</Set>
				</Particle>
			</ParticleSystem>
			<ParticleSystem name="ps_punchAuraBehind" updateStage="AddClothingParticles" renderStage="RenderBehind" updateState="Punch.Update">
				<Emitter>
					<Set name="offset">0, -12</Set>
					<Set name="lifeTime">1.01</Set>
					<Set name="infParticles">true</Set>
					<Set name="checkParticleNumToEmit">true</Set>
					<Set name="particlesPerEmission">1</Set>
					<Set name="particlesToEmit">1</Set>
				</Emitter>
				<Particle usePlayerFacing="true">
					<Set name="sprite">s_punchAura</Set>
					<Set name="relativeToEmitter">true</Set>
					<Set name="inSpecificOrder">true</Set>
					<Set name="blendingMode">PREMULTIPLIED_ALPHA</Set>
					<Curve name="initialAlpha">
						<KeyFrame>0, 0.2</KeyFrame>
						<KeyFrame>0.5, 0.6</KeyFrame>
						<KeyFrame>1, 0</KeyFrame>
					</Curve>
					<Curve name="initialScale">
						<KeyFrame>0, 0.5, 0.5</KeyFrame>
						<KeyFrame>0.5, 1, 1</KeyFrame>
						<KeyFrame>1, 1.2, 1.2</KeyFrame>
					</Curve>
					<Set name="lifeTime">1</Set>
				</Particle>
			</ParticleSystem>
			<ParticleSystem name="ps_punchFlash" updateStage="AddClothingParticles" updateState="Punch.Start">
				<Emitter>
					<Set name="offset">0, -12</Set>
					<Set name="lifeTime">1.01</Set>
					<Set name="infParticles">true</Set>
					<Set name="checkParticleNumToEmit">true</Set>
					<Set name="particlesPerEmission">1</Set>
					<Set name="particlesToEmit">1</Set>
				</Emitter>
				<Particle usePlayerFacing="true">
					<Set name="sprite">s_punchFlash</Set>
					<Set name="relativeToEmitter">true</Set>
					<Set name="blendingMode">PREMULTIPLIED_ALPHA</Set>
					<Curve name="initialAlpha">
						<KeyFrame>0, 0</KeyFrame>
						<KeyFrame>0.2, 1</KeyFrame>
						<KeyFrame>1, 0</KeyFrame>
					</Curve>
					<Curve name="initialScale">
						<KeyFrame>0, 0.8, 0.8</KeyFrame>
						<KeyFrame>1, 1.6, 1.6</KeyFrame>
					</Curve>
					<Set name="lifeTime">0.25</Set>
				</Particle>
			</ParticleSystem>
		</ParticleSystems>
		<RenderOptions>
			<Default>
				<Set name="IgnorePunchTypeCheck">true</Set>
			</Default>
		</RenderOptions>
	</Data>
	<RenderRules>
		<RenderChestItem>
			<SpriteRender name="s_chest" alignment="DOWN_CENTER" />
			<SpriteRender name="s_chestGlow" alignment="DOWN_CENTER" drawShadow="false" />
		</RenderChestItem>
    <AddClothingParticles>
      <StopIf  type="or">
        <IsZombified>true</IsZombified>
        <IsTrnsformed>true</IsTrnsformed>
        <IsWearing slot="SHIRT">ITEM_ID_TACTICAL_STEALTH_DEVICE</IsWearing>
      </StopIf>
    </AddClothingParticles>
	</RenderRules>
</ItemRenderer>
