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

Function RopeControl

TombEngine/Objects/Generic/Object/rope.cpp:151–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149 }
150
151 void RopeControl(short itemNumber)
152 {
153 auto* item = &g_Level.Items[itemNumber];
154 auto* rope = &Ropes[item->TriggerFlags];
155
156 if (TriggerActive(item))
157 {
158 rope->active = 1;
159 rope->StoreInterpolationData();
160
161 RopeDynamics(rope);
162 }
163 else
164 rope->active = 0;
165 }
166
167 void RopeCollision(short itemNumber, ItemInfo* laraItem, CollisionInfo* coll)
168 {

Callers

nothing calls this directly

Calls 3

TriggerActiveFunction · 0.85
RopeDynamicsFunction · 0.85

Tested by

no test coverage detected