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

Function LaraDeflectTopSide

TombEngine/Game/Lara/lara_collide.cpp:69–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69bool LaraDeflectTopSide(ItemInfo* item, CollisionInfo* coll)
70{
71 // HACK: If we are falling down, collision is CollisionType::Clamp and
72 // HitStatic flag is set, it means we've collided static from the top.
73
74 if (coll->CollisionType == CollisionType::Clamp &&
75 coll->HitStatic && item->Animation.Velocity.y > 0.0f)
76 {
77 SetAnimation(item, LA_JUMP_WALL_SMASH_START, 1);
78 Rumble(0.5f, 0.15f);
79
80 return true;
81 }
82
83 return false;
84}
85
86bool LaraDeflectEdgeJump(ItemInfo* item, CollisionInfo* coll)
87{

Callers 1

lara_col_jump_upFunction · 0.85

Calls 2

SetAnimationFunction · 0.85
RumbleFunction · 0.85

Tested by

no test coverage detected