| 434 | void 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 | |
| 442 | void zNPCNeptune::Reset() |
| 443 | { |
| 444 | zNPCAmbient::Reset(); |
| 445 | flags |= 0x40; |
| 446 | } |
| 447 | |
| 448 | void zNPCMimeFish::Reset() |
| 449 | { |
| 450 | zNPCAmbient::Reset(); |
| 451 | flg_move = 1; |
| 452 | } |
| 453 | |
| 454 | void 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 | |
| 477 | S32 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 | { |
nothing calls this directly
no test coverage detected