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

Method SelfSetup

src/SB/Game/zNPCTypePrawn.cpp:784–801  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

782}
783
784void zNPCPrawn::SelfSetup()
785{
786 xBehaveMgr* bmgr;
787 xPsyche* psy;
788
789 bmgr = xBehaveMgr_GetSelf();
790 psy_instinct = bmgr->Subscribe(this, 0);
791 psy = psy_instinct;
792 psy->BrainBegin();
793 psy->AddGoal(NPC_GOAL_PRAWNIDLE, NULL);
794 psy->AddGoal(NPC_GOAL_PRAWNBEAM, NULL);
795 psy->AddGoal(NPC_GOAL_PRAWNBOWL, NULL);
796 psy->AddGoal(NPC_GOAL_PRAWNDAMAGE, NULL);
797 psy->AddGoal(NPC_GOAL_PRAWNDEATH, NULL);
798 psy->AddGoal(NPC_GOAL_LIMBO, NULL);
799 psy->BrainEnd();
800 psy->SetSafety(NPC_GOAL_PRAWNIDLE);
801}
802
803void zNPCPrawn::Render()
804{

Callers

nothing calls this directly

Calls 6

xBehaveMgr_GetSelfFunction · 0.85
BrainBeginMethod · 0.80
AddGoalMethod · 0.80
BrainEndMethod · 0.80
SetSafetyMethod · 0.80
SubscribeMethod · 0.45

Tested by

no test coverage detected