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

Function Splash

TombEngine/Game/effects/Splash.cpp:140–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138 }
139
140 void Splash(ItemInfo* item)
141 {
142 int probedRoomNumber = GetPointCollision(*item).GetRoomNumber();
143 if (!TestEnvironment(ENV_FLAG_WATER, probedRoomNumber))
144 return;
145
146 int waterHeight = GetPointCollision(*item).GetWaterTopHeight();
147
148 SplashSetup.Position = Vector3(item->Pose.Position.x, waterHeight - 1, item->Pose.Position.z);
149 SplashSetup.SplashPower = item->Animation.Velocity.y;
150 SplashSetup.InnerRadius = 64;
151 SetupSplash(&SplashSetup, probedRoomNumber);
152 }
153}

Callers 3

DoVehicleWaterMovementFunction · 0.85
TestProjectileNewRoomFunction · 0.85
DoProjectileDynamicsFunction · 0.85

Calls 6

GetPointCollisionFunction · 0.85
TestEnvironmentFunction · 0.85
SetupSplashFunction · 0.85
GetWaterTopHeightMethod · 0.80
Vector3Function · 0.50
GetRoomNumberMethod · 0.45

Tested by 1

TestProjectileNewRoomFunction · 0.68