| 239 | } |
| 240 | |
| 241 | S32 zNPCGoalNotice::Process(en_trantype* trantype, F32 dt, void* updCtxt, xScene* xscn) |
| 242 | { |
| 243 | zNPCRobot* npc = (zNPCRobot*)(psyche->clt_owner); |
| 244 | xVec3 dir_dest; |
| 245 | |
| 246 | xVec3Sub(&dir_dest, xEntGetPos(&globals.player.ent), npc->Pos()); |
| 247 | dir_dest.y = 0.0f; |
| 248 | |
| 249 | if (xVec3Length2(&dir_dest) > 1.0f) |
| 250 | { |
| 251 | xVec3Normalize(&dir_dest, &dir_dest); |
| 252 | npc->TurnToFace(dt, &dir_dest, 12.566371f); |
| 253 | } |
| 254 | |
| 255 | npc->VelStop(); |
| 256 | return zNPCGoalPushAnim::Process(trantype, dt, updCtxt, xscn); |
| 257 | } |
| 258 | |
| 259 | S32 zNPCGoalTaunt::Enter(F32 dt, void* updCtxt) |
| 260 | { |
nothing calls this directly
no test coverage detected