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

Function DoBloodSplat

TombEngine/Game/effects/effects.cpp:1177–1192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1175}
1176
1177short DoBloodSplat(int x, int y, int z, short speed, short direction, short roomNumber)
1178{
1179 int intensity = Random::GenerateInt(10, 20);
1180 int probedRoomNumber = GetPointCollision(Vector3i(x, y, z), roomNumber).GetRoomNumber();
1181
1182 if (TestEnvironment(ENV_FLAG_WATER, probedRoomNumber))
1183 {
1184 SpawnUnderwaterBlood(Vector3(x, y, z), probedRoomNumber, intensity);
1185 }
1186 else
1187 {
1188 TriggerBlood(x, y, z, direction >> 4, intensity);
1189 }
1190
1191 return 0;
1192}
1193
1194void DoLotsOfBlood(int x, int y, int z, int speed, short direction, short roomNumber, int count)
1195{

Callers 15

ControlKillerStatueFunction · 0.85
DoSpiderBloodEffectFunction · 0.85
CollideTurningBladeFunction · 0.85
ControlTwinAutoGunFunction · 0.85
PunaHitFunction · 0.85
UpdateFishSwarmFunction · 0.85
HitCorpseFunction · 0.85
ControlDartFunction · 0.85
HeavyGuardHitFunction · 0.85
GuardHitFunction · 0.85
ControlGunShipFunction · 0.85
ControlAutoGunFunction · 0.85

Calls 8

GenerateIntFunction · 0.85
GetPointCollisionFunction · 0.85
TestEnvironmentFunction · 0.85
SpawnUnderwaterBloodFunction · 0.85
TriggerBloodFunction · 0.85
Vector3iClass · 0.70
Vector3Function · 0.50
GetRoomNumberMethod · 0.45

Tested by

no test coverage detected