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

Method ModifyAnimSpeed

src/SB/Game/zNPCGoalRobo.cpp:2940–2951  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2938}
2939
2940void zNPCGoalAttackHammer::ModifyAnimSpeed()
2941{
2942 zNPCCommon* npc = ((zNPCCommon*)(psyche->clt_owner));
2943 F32 speed = 1.5f;
2944 U32 cheats = zGameExtras_CheatFlags();
2945 if ((cheats & 0x800))
2946 {
2947 speed = 2.5f;
2948 }
2949 xAnimSingle* anim = npc->AnimCurSingle();
2950 anim->CurrentSpeed = speed;
2951}
2952
2953void zNPCGoalAttackHammer::FXStreakPrep()
2954{

Callers

nothing calls this directly

Calls 2

zGameExtras_CheatFlagsFunction · 0.85
AnimCurSingleMethod · 0.80

Tested by

no test coverage detected