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

Method SelfSetup

src/SB/Game/zNPCTypeVillager.cpp:557–571  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

555}
556
557void zNPCVillager::SelfSetup()
558{
559 xBehaveMgr* bmgr = xBehaveMgr_GetSelf();
560 this->psy_instinct = bmgr->Subscribe(this, 0);
561 xPsyche* psy = this->psy_instinct;
562
563 psy->BrainBegin();
564 this->AddBaseline(psy, FOLK_grul_goAlert, FOLK_grul_goAlert, FOLK_grul_goAlert,
565 FOLK_grul_goAlert, NULL);
566 this->AddScripting(psy, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
567 this->AddTalking(psy, NULL, NULL, NULL, NULL);
568 psy->AddGoal(NPC_GOAL_HURT, NULL);
569 psy->BrainEnd();
570 psy->SetSafety(NPC_GOAL_IDLE);
571}
572
573U32 zNPCVillager::AnimPick(S32 gid, en_NPC_GOAL_SPOT gspot, xGoal* goal)
574{

Callers

nothing calls this directly

Calls 11

AddTalkingMethod · 0.95
xBehaveMgr_GetSelfFunction · 0.85
BrainBeginMethod · 0.80
AddBaselineMethod · 0.80
AddScriptingMethod · 0.80
AddGoalMethod · 0.80
BrainEndMethod · 0.80
SetSafetyMethod · 0.80
BrainExtendMethod · 0.80
SelfSetupFunction · 0.50
SubscribeMethod · 0.45

Tested by

no test coverage detected