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

Method startAni_Forward

src/logic/NpcAnimationHandler.cpp:325–338  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

323}
324
325void NpcAnimationHandler::startAni_Forward()
326{
327 std::string anim = buildStateAnimationNameBasedOnWeapon(getWalkModeTag(m_WalkMode) + "L");
328
329 if(!isStateAnimationPlaying())
330 return;
331
332 // Some use "F" as postfix for some reason
333 if(!doesAnimationExist(anim))
334 anim = buildStateAnimationNameBasedOnWeapon(getWalkModeTag(m_WalkMode) + "F");
335
336 if(!isAnimationActive(anim))
337 playAnimationTrans(anim);
338}
339
340void NpcAnimationHandler::startAni_Backward()
341{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected