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

Function zNPCSleepy_Timestep

src/SB/Game/zNPCTypeRobot.cpp:64–78  ·  view source on GitHub ↗

Scheduling

Source from the content-addressed store, hash-verified

62
63// Scheduling
64void zNPCSleepy_Timestep(F32 dt)
65{
66 static S8 init;
67 static F32 tmr_cycle;
68
69 if (init == 0)
70 {
71 init = 1;
72 tmr_cycle = 0.0f;
73 }
74
75 F32 dVar1 = NPCC_TmrCycle(&tmr_cycle, 0.01666667f, 2.63f);
76 zNPCSleepy::hyt_NightLightCurrent = 4.0f;
77 zNPCSleepy::hyt_NightLightCurrent += (0.35f * isin(PI * dVar1));
78}
79
80void zNPCFodBzzt_DoTheHokeyPokey(F32 dt);
81void ZNPC_Destroy_Robot(xFactoryInst* inst);

Callers 1

zNPCRobot_TimestepFunction · 0.85

Calls 2

isinFunction · 0.85
NPCC_TmrCycleFunction · 0.70

Tested by

no test coverage detected