| 1281 | } |
| 1282 | |
| 1283 | static S32 sitCB(xGoal* rawgoal, void*, en_trantype* trantype, F32 dt, void*) |
| 1284 | { |
| 1285 | zNPCGoalBossSandySit* sit = (zNPCGoalBossSandySit*)rawgoal; |
| 1286 | zNPCBSandy* sandy = (zNPCBSandy*)sit->psyche->clt_owner; |
| 1287 | S32 nextgoal = 0; |
| 1288 | |
| 1289 | if (sandy->round == 3 && sHeadPopOffFactor > 0.0f) |
| 1290 | { |
| 1291 | xSndPlay3D(xStrHash("B101_SC_headoff1"), 2.31f, 0.0f, 0x0, 0x0, sandy, 30.0f, SND_CAT_GAME, |
| 1292 | 0.0f); |
| 1293 | *trantype = GOAL_TRAN_SET; |
| 1294 | nextgoal = 'NGB5'; |
| 1295 | } |
| 1296 | else if (sit->sitFlags & 0x1) |
| 1297 | { |
| 1298 | if (sit->timeInGoal > sit->totalTime) |
| 1299 | { |
| 1300 | if (sandy->round == 1) |
| 1301 | { |
| 1302 | nextgoal = 'NGB9'; |
| 1303 | *trantype = GOAL_TRAN_SET; |
| 1304 | } |
| 1305 | else |
| 1306 | { |
| 1307 | nextgoal = 'NGB5'; |
| 1308 | *trantype = GOAL_TRAN_SET; |
| 1309 | } |
| 1310 | } |
| 1311 | } |
| 1312 | else if (sit->timeInGoal > 5.0f) |
| 1313 | { |
| 1314 | nextgoal = 'NGB9'; |
| 1315 | *trantype = GOAL_TRAN_SET; |
| 1316 | } |
| 1317 | |
| 1318 | return nextgoal; |
| 1319 | } |
| 1320 | |
| 1321 | static S32 getUpCB(xGoal* rawgoal, void*, en_trantype* trantype, F32 dt, void*) |
| 1322 | { |
nothing calls this directly
no test coverage detected