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

Function Ricochet

TombEngine/Game/effects/effects.cpp:1228–1233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1226}
1227
1228void Ricochet(Pose& pose)
1229{
1230 short angle = Geometry::GetOrientToPoint(pose.Position.ToVector3(), LaraItem->Pose.Position.ToVector3()).y;
1231 auto target = GameVector(pose.Position);
1232 TriggerRicochetSpark(target, angle / 16);
1233}
1234
1235void ControlWaterfallMist(short itemNumber)
1236{

Callers 1

GunMissFunction · 0.85

Calls 4

GetOrientToPointFunction · 0.85
TriggerRicochetSparkFunction · 0.70
GameVectorClass · 0.50
ToVector3Method · 0.45

Tested by

no test coverage detected