MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / CanRunJumpForward

Function CanRunJumpForward

TombEngine/Game/Lara/PlayerContext.cpp:939–954  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

937 }
938
939 bool CanRunJumpForward(const ItemInfo& item, const CollisionInfo& coll)
940 {
941 const auto& player = GetLaraInfo(item);
942
943 // Check running jump timer.
944 if (player.Control.Count.Run < PLAYER_RUN_JUMP_TIME)
945 return false;
946
947 auto setup = JumpSetupData
948 {
949 item.Pose.Orientation.y,
950 CLICK(3 / 2.0f)
951 };
952
953 return TestJumpSetup(item, coll, setup);
954 }
955
956 bool CanSprintJumpForward(const ItemInfo& item, const CollisionInfo& coll)
957 {

Callers 2

lara_as_run_forwardFunction · 0.85
CanQueueRunningJumpFunction · 0.85

Calls 1

TestJumpSetupFunction · 0.85

Tested by

no test coverage detected