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

Method Damage

src/SB/Game/zNPCTypeTiki.cpp:492–502  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

490}
491
492void zNPCTiki::Damage(en_NPC_DAMAGE_TYPE damtype, xBase* who, const xVec3* vec_hit)
493{
494 if (((this->SelfType() != NPC_TYPE_TIKI_STONE) || (damtype == DMGTYP_CRUISEBUBBLE) ||
495 (damtype - DMGTYP_THUNDER_TIKI_EXPLOSION <= (U32)1) ||
496 (damtype - DMGTYP_INSTAKILL <= (U32)1)) &&
497 this->flg_vuln != 0)
498 {
499 this->psy_instinct->GoalSet(NPC_GOAL_TIKIDYING, 0);
500 this->flg_vuln = 0;
501 }
502}
503
504S32 zNPCTiki::SetCarryState(en_NPC_CARRY_STATE cs)
505{

Callers 9

SetCarryStateMethod · 0.95
ProcessMethod · 0.95
ChildCleanupMethod · 0.45
zNPCTiki_ExplodeFXFunction · 0.45
thunderIdleCBFunction · 0.45
zEntPlayerKillCarryFunction · 0.45
damage_entityFunction · 0.45
apply_damageMethod · 0.45

Calls 2

SelfTypeMethod · 0.80
GoalSetMethod · 0.80

Tested by

no test coverage detected