MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / CanMove

Method CanMove

ogsr_engine/xrGame/Actor_Movement.cpp:664–687  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

662}
663
664bool CActor::CanMove()
665{
666 if (conditions().IsCantWalk())
667 {
668 if (mstate_wishful & mcAnyMove)
669 {
670 HUD().GetUI()->AddInfoMessage("cant_walk");
671 }
672 return false;
673 }
674 else if (conditions().IsCantWalkWeight())
675 {
676 if (mstate_wishful & mcAnyMove)
677 {
678 HUD().GetUI()->AddInfoMessage("cant_walk_weight");
679 }
680 return false;
681 }
682
683 if (IsTalking())
684 return false;
685 else
686 return true;
687}
688
689void CActor::StopAnyMove()
690{

Callers

nothing calls this directly

Calls 4

IsCantWalkMethod · 0.80
AddInfoMessageMethod · 0.80
GetUIMethod · 0.80
IsCantWalkWeightMethod · 0.80

Tested by

no test coverage detected