| 4449 | } |
| 4450 | |
| 4451 | void zNPCGoalTubeDuckling::DuckStackInterpInit() |
| 4452 | { |
| 4453 | zNPCTubeSlave* npc = (zNPCTubeSlave*)(psyche->clt_owner); |
| 4454 | xVec3 dist; |
| 4455 | xVec3 pos_stacked; |
| 4456 | |
| 4457 | npc->PosStacked(&pos_stacked); |
| 4458 | xVec3Sub(&dist, npc->Pos(), &pos_stacked); |
| 4459 | dst_visacard = xVec3Length(&dist); |
| 4460 | if (dst_visacard < 0.001f) |
| 4461 | { |
| 4462 | dst_visacard = -1.0f; |
| 4463 | xVec3Copy(&dir_visacard, &g_O3); |
| 4464 | } |
| 4465 | else |
| 4466 | { |
| 4467 | xVec3Normalize(&dir_visacard, &dist); |
| 4468 | } |
| 4469 | } |
| 4470 | |
| 4471 | S32 zNPCGoalTubeAttack::Enter(F32 dt, void* updCtxt) |
| 4472 | { |
nothing calls this directly
no test coverage detected