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

Function zNPCMsg_SendMsg

src/SB/Game/zNPCMessenger.cpp:80–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80void zNPCMsg_SendMsg(en_NPC_MSG_ID msgevent, U32 npc_id)
81{
82 static NPCMsg msg;
83 memset(&msg, 0, sizeof(NPCMsg));
84 msg.msgid = msgevent;
85 msg.sendto = npc_id;
86 // float scheduling issue
87 zNPCMsg_SendMsg(&msg, -1.0f, 0);
88}
89
90void zNPCMsg_SendMsg(en_NPC_MSG_ID msgevent, zNPCCommon* npc_sendto)
91{

Callers 8

DamageMethod · 0.70
RespawnMethod · 0.70
SysEventMethod · 0.70
MonitorCoweringMethod · 0.70
zNPCMsg_TimestepFunction · 0.70
ProcessMethod · 0.70
on_talk_stopMethod · 0.70
on_talk_startMethod · 0.70

Calls 9

memsetFunction · 0.85
NPCPS_grabMsgFunction · 0.85
NPCPS_copyMsgInfoFunction · 0.85
NPCPS_queMessageFunction · 0.85
zNPCMgr_GetNPCListFunction · 0.85
NPCPS_postOfficeFunction · 0.85
NPCPS_flagForMIDFunction · 0.85
XOrdLookupFunction · 0.50
NPCMessageMethod · 0.45

Tested by

no test coverage detected