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

Method Update

src/SB/Game/zNPCSupport.cpp:574–586  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

572}
573
574void NPCBlinker::Update(F32 dt, F32 ratio, F32 tym_slow, F32 tym_fast)
575{
576 if (tmr_uvcell < 0.0f)
577 {
578 idx_uvcell++;
579 if (3 < idx_uvcell)
580 {
581 idx_uvcell = 0;
582 }
583 tmr_uvcell = LERP(SQ(ratio), tym_slow, tym_fast);
584 }
585 tmr_uvcell = MAX(-1.0f, tmr_uvcell - dt);
586}
587
588void NPCBlinker::IndexToUVCoord(S32 param_1, F32* param_2, F32* param_3)
589{

Callers 1

Firework_TimestepFunction · 0.45

Calls 3

FlyFlyFlyMethod · 0.95
DetonateMethod · 0.95
LERPFunction · 0.85

Tested by

no test coverage detected