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

Function GunHit

TombEngine/Game/people.cpp:102–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100}
101
102short GunHit(int x, int y, int z, short velocity, short yRot, short roomNumber)
103{
104 auto pos = GetJointPosition(LaraItem, Random::GenerateInt(0, NUM_LARA_MESHES - 1));
105 DoBloodSplat(pos.x, pos.y, pos.z, (GetRandomControl() & 3) + 3, LaraItem->Pose.Orientation.y, LaraItem->RoomNumber);
106 return GunShot(x, y, z, velocity, yRot, roomNumber);
107}
108
109short GunShot(int x, int y, int z, short velocity, short yRot, short roomNumber)
110{

Callers

nothing calls this directly

Calls 5

GetJointPositionFunction · 0.85
GenerateIntFunction · 0.85
DoBloodSplatFunction · 0.85
GetRandomControlFunction · 0.85
GunShotFunction · 0.85

Tested by

no test coverage detected