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

Method SelfSetup

src/SB/Game/zNPCTypeRobot.cpp:629–648  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

627}
628
629void zNPCRobot::SelfSetup()
630{
631 xBehaveMgr* bmgr = xBehaveMgr_GetSelf();
632 psy_instinct = bmgr->Subscribe(this, 0);
633 xPsyche* psy = psy_instinct;
634 xGoal* goal = NULL;
635
636 psy->BrainBegin();
637 goal = psy->AddGoal('NGR4', NULL);
638 goal->SetCallbacks(DUMY_grul_returnToIdle, NULL, NULL, NULL);
639 AddBaseline(psy, NULL, NULL, NULL, NULL, NULL);
640 AddStunThrow(psy, NULL, NULL, NULL, NULL);
641 AddLassoing(psy, NULL, NULL, NULL, NULL, NULL);
642 AddDamage(psy, NULL, NULL, NULL, NULL, NULL);
643 AddSpawning(psy, NULL, NULL);
644 AddScripting(psy, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
645 AddMiscTypical(psy, NULL, NULL, NULL);
646 psy->BrainEnd();
647 psy->SetSafety('NGN0');
648}
649
650void zNPCRobot::DuploOwner(zNPCCommon* duper)
651{

Callers

nothing calls this directly

Calls 10

xBehaveMgr_GetSelfFunction · 0.85
AddBaselineFunction · 0.85
AddStunThrowFunction · 0.85
AddScriptingFunction · 0.85
BrainBeginMethod · 0.80
AddGoalMethod · 0.80
BrainEndMethod · 0.80
SetSafetyMethod · 0.80
SelfSetupFunction · 0.50
SubscribeMethod · 0.45

Tested by

no test coverage detected