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

Method PosGet

src/SB/Game/zNPCSupport.cpp:1062–1080  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1060}
1061
1062void NPCTarget::PosGet(xVec3* pos)
1063{
1064 switch (typ_target)
1065 {
1066 case NPC_TGT_NONE:
1067 break;
1068 case NPC_TGT_PLYR:
1069 case NPC_TGT_ENT:
1070 case NPC_TGT_BASE:
1071 NPCC_pos_ofBase(bas_target, pos);
1072 break;
1073 case NPC_TGT_POS:
1074 xVec3Copy(pos, &pos_target);
1075 break;
1076 case NPC_TGT_MVPT:
1077 xVec3Copy(pos, zMovePointGetPos(nav_target));
1078 break;
1079 }
1080}
1081
1082void NPCC_xBoundAway(xBound* bnd)
1083{

Callers 5

InCylinderMethod · 0.95
EnterMethod · 0.45
SpawnBeastieMethod · 0.45
Chk_AutoSmoothMethod · 0.45
EnterMethod · 0.45

Calls 3

xVec3CopyFunction · 0.85
zMovePointGetPosFunction · 0.85
NPCC_pos_ofBaseFunction · 0.70

Tested by

no test coverage detected