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

Function lara_as_vault

TombEngine/Game/Lara/lara_basic.cpp:101–113  ·  view source on GitHub ↗

State: LS_VAULT (164) Collision: lara_void_func()

Source from the content-addressed store, hash-verified

99// State: LS_VAULT (164)
100// Collision: lara_void_func()
101void lara_as_vault(ItemInfo* item, CollisionInfo* coll)
102{
103 auto& player = GetLaraInfo(*item);
104
105 player.Control.Look.Mode = LookMode::None;
106 coll->Setup.EnableObjectPush = false;
107 coll->Setup.EnableSpasm = false;
108
109 EasePlayerElevation(item, player.Context.ProjectedFloorHeight - item->Pose.Position.y);
110 item->Pose.Orientation.Lerp(player.Context.TargetOrientation, 0.4f);
111
112 item->Animation.TargetState = LS_IDLE;
113}
114
115// State: LS_AUTO_JUMP (62)
116// Collision: lara_as_jump_prepare()

Callers

nothing calls this directly

Calls 2

EasePlayerElevationFunction · 0.85
LerpMethod · 0.45

Tested by

no test coverage detected