MCPcopy Create free account
hub / github.com/REGoth-project/REGoth / isSubStateAnimationPlaying

Method isSubStateAnimationPlaying

src/logic/NpcAnimationHandler.cpp:802–820  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

800}
801
802bool NpcAnimationHandler::isSubStateAnimationPlaying()
803{
804 if(isAnimationActive(buildSubStateAnimationNameBasedOnWeapon(getWalkModeTag(m_WalkMode) + "TURNL")))
805 return true;
806
807 if(isAnimationActive(buildSubStateAnimationNameBasedOnWeapon(getWalkModeTag(m_WalkMode) + "TURNR")))
808 return true;
809
810 if(isAnimationActive(buildSubStateAnimationNameBasedOnWeapon(getWalkModeTag(m_WalkMode) + "STRAFEL")))
811 return true;
812
813 if(isAnimationActive(buildSubStateAnimationNameBasedOnWeapon(getWalkModeTag(m_WalkMode) + "STRAFER")))
814 return true;
815
816 if(isAnimationActive("T_JUMPB"))
817 return true;
818
819 return false;
820}
821
822bool NpcAnimationHandler::isFightAnimationPlaying()
823{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected