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

Function zNPCMsg_AreaNotify

src/SB/Game/zNPCMessenger.cpp:240–256  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

238static NPCMsg g_msgdata;
239
240void zNPCMsg_AreaNotify(zNPCCommon* sender, en_NPC_MSG_ID msgid, F32 rad, S32 filter,
241 en_NPCTYPES toNPCType)
242{
243 if (g_lockarea == 0)
244 {
245 g_lockarea = 1;
246 // sda scheduling issue
247 en_NPCTYPES toTypes[2] = { toNPCType, NPC_TYPE_UNKNOWN };
248 memset(&g_msgdata, 0, sizeof(NPCMsg));
249 g_msgdata.from = (sender != NULL) ? (en_NPC_MSG_ID)sender->id : (en_NPC_MSG_ID)'FAKE';
250 g_msgdata.msgid = msgid;
251 g_msgdata.sendto = 0;
252 g_msgdata.infotype = NPC_MDAT_BLANK;
253 zNPCMsg_AreaNotify(sender, &g_msgdata, rad, filter, toTypes);
254 g_lockarea = 0;
255 }
256}
257
258void zNPCMsg_AreaNotify(zNPCCommon* sender, en_NPC_MSG_ID msgid, F32 rad, S32 filter,
259 en_NPCTYPES* toNPCType)

Callers 5

TellBunniesMethod · 0.70
DieTheGoodDeathMethod · 0.70
zEntPlayer_GiveSpatulaFunction · 0.70

Calls 10

memsetFunction · 0.85
zNPCMgr_GetNPCListFunction · 0.85
xVec3CopyFunction · 0.85
xEntGetPosFunction · 0.85
xVec3SubFunction · 0.85
xVec3Length2Function · 0.85
SelfTypeMethod · 0.80
PosMethod · 0.45
IsAliveMethod · 0.45
NPCMessageMethod · 0.45

Tested by

no test coverage detected