MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / zRumbleStartEntDistance

Function zRumbleStartEntDistance

src/SB/Game/zRumble.cpp:111–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109}
110
111void zRumbleStartEntDistance(xEnt* ent, F32 dist, _tagRumbleType type, F32 maxTime)
112{
113 xVec3 ent_player_dist;
114 xVec3Sub(&ent_player_dist, xEntGetPos(&globals.player.ent), xEntGetPos(ent));
115
116 zRumbleStartDistance(globals.currentActivePad, SQR(ent_player_dist.x) + SQR(ent_player_dist.z),
117 SQR(dist), type, maxTime);
118}
119
120S32 zPadAddRumble(_tagRumbleType type, F32 time, S32 replace, U32 fxflags)
121{

Callers 1

zRumbleStartFunction · 0.85

Calls 3

xVec3SubFunction · 0.85
xEntGetPosFunction · 0.85
zRumbleStartDistanceFunction · 0.70

Tested by

no test coverage detected