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

Method Reset

src/SB/Game/zNPCTypeVillager.cpp:399–421  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

397}
398
399void zNPCVillager::Reset()
400{
401 NPCConfig* cfg;
402
403 zNPCCommon::Reset();
404
405 if (this->psy_instinct != NULL)
406 {
407 this->psy_instinct->GoalSet(NPC_GOAL_IDLE, 1);
408 }
409
410 cfg = this->cfg_npc;
411 if (cfg->dst_castShadow < 0.0f)
412 {
413 cfg->dst_castShadow = 0.25f;
414 }
415
416 cfg = this->cfg_npc;
417 if (cfg != NULL && cfg->rad_shadowCache < 0.0f)
418 {
419 cfg->rad_shadowCache = this->GenShadCacheRad();
420 }
421}
422
423void zNPCVillager::ParseINI()
424{

Callers

nothing calls this directly

Calls 12

GenShadCacheRadMethod · 0.95
xurandFunction · 0.85
zSceneFindObjectFunction · 0.85
NPCC_FindRWRasterFunction · 0.85
GoalSetMethod · 0.80
TargetClearMethod · 0.80
SelfTypeMethod · 0.80
ModelAtomicShowMethod · 0.80
ModelAtomicHideMethod · 0.80
StatusGetMethod · 0.80
xDebugAddTweakFunction · 0.70
ResetFunction · 0.50

Tested by

no test coverage detected