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

Method AmbiHandleMail

src/SB/Game/zNPCTypeAmbient.cpp:436–482  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

434void zNPCNeptune::ParseINI()
435{
436 zNPCAmbient::ParseINI();
437 cfg_npc->snd_traxShare = NULL;
438 cfg_npc->snd_trax = g_sndTrax_Neptune;
439 NPCS_SndTablePrepare(g_sndTrax_Neptune);
440}
441
442void zNPCNeptune::Reset()
443{
444 zNPCAmbient::Reset();
445 flags |= 0x40;
446}
447
448void zNPCMimeFish::Reset()
449{
450 zNPCAmbient::Reset();
451 flg_move = 1;
452}
453
454void zNPCJelly::Process(xScene* xscn, F32 dt)
455{
456 this->zNPCAmbient::Process(xscn, dt);
457
458 if (this->IsAlive())
459 {
460 this->PlayWithAlpha(dt);
461 this->PlayWithAnimSpd();
462
463 xPsyche* psy = this->psy_instinct;
464
465 S32 flg_wonder = this->SomethingWonderful();
466
467 if (xEntIsVisible(this))
468 {
469 if (xUtil_yesno(0.05f) && psy->GIDOfActive() != NPC_GOAL_DEAD)
470 {
471 this->PlayWithLightnin();
472 }
473 }
474 }
475}
476
477S32 zNPCJelly::AmbiHandleMail(NPCMsg* msg)
478{
479 S32 handled = 1;
480 xPsyche* psy = this->psy_instinct;
481
482 switch (msg->msgid)
483 {
484 case NPC_MID_DAMAGE:
485 {

Callers

nothing calls this directly

Calls 4

GIDInStackMethod · 0.80
GoalSwapMethod · 0.80
GoalSetMethod · 0.80
GoalPushMethod · 0.80

Tested by

no test coverage detected