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

Method Process

src/SB/Game/zNPCGoalRobo.cpp:241–257  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

239}
240
241S32 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
259S32 zNPCGoalTaunt::Enter(F32 dt, void* updCtxt)
260{

Callers

nothing calls this directly

Calls 15

GetInArenaMethod · 0.95
FlankPlayerMethod · 0.95
MoveEvadeMethod · 0.95
SyncCattleProdMethod · 0.95
HoundPlayerMethod · 0.95
xVec3SubFunction · 0.85
xEntGetPosFunction · 0.85
xVec3Length2Function · 0.85
NPCC_faceDirFunction · 0.85
xDrawSetColorFunction · 0.85
xDrawLineFunction · 0.85
xEntGetCenterFunction · 0.85

Tested by

no test coverage detected