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

Function zEntHangableMountFX

src/SB/Game/zEntHangable.cpp:216–232  ·  view source on GitHub ↗

Equivalent; scheduling.

Source from the content-addressed store, hash-verified

214
215// Equivalent; scheduling.
216static void zEntHangableMountFX(zEntHangable* ent)
217{
218 xParEmitterCustomSettings info;
219
220 if (sMountEmitter != NULL)
221 {
222 info.custom_flags = 0x300;
223 for (S32 i = 0; i < 10; i++)
224 {
225 info.pos = ent->pivot;
226 info.vel.x = 0.0f;
227 info.vel.y = -(xurand() * 2.0f - -2.0f);
228 info.vel.z = 0.0f;
229 xParEmitterEmitCustom(sMountEmitter, (1.0f / 30.0f), &info);
230 }
231 }
232}
233
234S32 zEntHangableEventCB(xBase* from, xBase* to, U32 toEvent, const F32* toParam, xBase*)
235{

Callers 1

zEntHangableEventCBFunction · 0.85

Calls 2

xurandFunction · 0.85
xParEmitterEmitCustomFunction · 0.50

Tested by

no test coverage detected