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

Function TriggerLaraBlood

TombEngine/Game/effects/effects.cpp:1206–1226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1204}
1205
1206void TriggerLaraBlood()
1207{
1208 int node = 1;
1209
1210 for (int i = 0; i < LARA_MESHES::LM_HEAD; i++)
1211 {
1212 if (node & LaraItem->TouchBits.ToPackedBits())
1213 {
1214 auto vec = GetJointPosition(LaraItem,
1215 i,
1216 Vector3i(
1217 (GetRandomControl() & 31) - 16,
1218 (GetRandomControl() & 31) - 16,
1219 (GetRandomControl() & 31) - 16
1220 ));
1221 DoBloodSplat(vec.x, vec.y, vec.z, (GetRandomControl() & 7) + 8, 2 * GetRandomControl(), LaraItem->RoomNumber);
1222 }
1223
1224 node <<= 1;
1225 }
1226}
1227
1228void Ricochet(Pose& pose)
1229{

Callers 3

CollideFirePendulumFunction · 0.85
CollideTurningBladeFunction · 0.85

Calls 5

GetJointPositionFunction · 0.85
GetRandomControlFunction · 0.85
DoBloodSplatFunction · 0.85
ToPackedBitsMethod · 0.80
Vector3iClass · 0.70

Tested by

no test coverage detected