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

Method PlayWithAnimSpd

src/SB/Game/zNPCGoalAmbient.cpp:106–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104}
105
106void zNPCGoalJellyBumped::PlayWithAnimSpd()
107{
108 zNPCJelly* npc = (zNPCJelly*)psyche->clt_owner;
109
110 F32 pos_factor = npc->AnimTimeRemain(NULL) / npc->AnimDuration(NULL);
111 pos_factor = CLAMP(pos_factor, 0.01f, 1.0f);
112 pos_factor = SMOOTH(pos_factor, 1.0f, 3.0f);
113
114 npc->AnimCurSingle()->CurrentSpeed = pos_factor;
115}
116
117void zNPCGoalJellyBumped::StreakPrep()
118{

Callers

nothing calls this directly

Calls 4

SMOOTHFunction · 0.85
AnimTimeRemainMethod · 0.80
AnimDurationMethod · 0.80
AnimCurSingleMethod · 0.80

Tested by

no test coverage detected