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

Function leapCB

src/SB/Game/zNPCTypeBossSandy.cpp:1257–1281  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1255}
1256
1257static S32 leapCB(xGoal* rawgoal, void*, en_trantype* trantype, F32 dt, void*)
1258{
1259 zNPCGoalBossSandyLeap* leap = (zNPCGoalBossSandyLeap*)rawgoal;
1260 zNPCBSandy* sandy = (zNPCBSandy*)leap->psyche->clt_owner;
1261 S32 nextgoal = 0;
1262
1263 if (leap->stage == 3)
1264 {
1265 if (sandy->AnimTimeRemain(NULL) < 1.7000000476837158f * dt) // 1.7
1266 {
1267 if (sandy->bossFlags & 2)
1268 {
1269 *trantype = GOAL_TRAN_SET;
1270 nextgoal = 'NGB9';
1271 }
1272 else
1273 {
1274 *trantype = GOAL_TRAN_SET;
1275 nextgoal = 'NGB8';
1276 }
1277 }
1278 }
1279
1280 return nextgoal;
1281}
1282
1283static S32 sitCB(xGoal* rawgoal, void*, en_trantype* trantype, F32 dt, void*)
1284{

Callers

nothing calls this directly

Calls 1

AnimTimeRemainMethod · 0.80

Tested by

no test coverage detected