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

Function zPlatform_Setup

src/SB/Game/zPlatform.cpp:152–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150}
151
152void zPlatform_Setup(zPlatform* ent, xScene* sc)
153{
154 zEntSetup((zEnt*)ent);
155 sEmitTremble = zParEmitterFind("PAREMIT_PLAT_TREMBLE");
156 sEmitBreakaway = zParEmitterFind("PAREMIT_PLAT_BREAKAWAY");
157 if (ent->subType == ZPLATFORM_SUBTYPE_PADDLE)
158 {
159 ent->tmr = 1e-9f;
160 ent->state = 2;
161 ent->ctr = ent->passet->paddle.startOrient;
162 }
163}
164
165void zPlatform_Save(zPlatform* ent, xSerial* s)
166{

Callers 1

zSceneSetupFunction · 0.85

Calls 2

zEntSetupFunction · 0.85
zParEmitterFindFunction · 0.70

Tested by

no test coverage detected