SHARE
TWEET

func_80A5475C matching

roman971 Jun 6th, 2020 1,360 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void func_80A5475C(EnHeishi2* this, GlobalContext* globalCtx) {
  2.     s16 yawDiff;
  3.  
  4.     SkelAnime_FrameUpdateMatrix(&this->skelAnime);
  5.  
  6.     if (Text_GetFaceReaction(globalCtx, 5) != 0) {
  7.         if (this->unk_30B == 0) {
  8.             if (this->initParams == 2) {
  9.                 this->actionFunc = func_80A53278;
  10.                 return;
  11.             }
  12.             if (this->initParams == 5) {
  13.                 this->actionFunc = func_80A5399C;
  14.                 return;
  15.             }
  16.         }
  17.     } else if (this->unk_30B != 0) {
  18.         if (this->initParams == 2) {
  19.             this->actionFunc = func_80A53278;
  20.             return;
  21.         }
  22.         if (this->initParams == 5) {
  23.             this->actionFunc = func_80A5399C;
  24.             return;
  25.         }
  26.     }
  27.  
  28.     if (func_8002F194(&this->actor, globalCtx)) {
  29.         if (this->initParams == 2) {
  30.             if (this->unk_30E == 1) {
  31.                 this->actionFunc = func_80A5344C;
  32.                 return;
  33.             } else {
  34.                 this->actionFunc = func_80A53278;
  35.                 return;
  36.             }
  37.         } else if (this->initParams == 5) {
  38.             if (this->unk_300 == 6) {
  39.                 this->actionFunc = func_80A5399C;
  40.             }
  41.  
  42.             if (this->unk_300 == 5) {
  43.                 this->actionFunc = func_80A54954;
  44.             }
  45.  
  46.             if (this->unk_300 == 4) {
  47.                 this->unk_309 = 1;
  48.                 func_80078884(0x4807);
  49.                 this->actionFunc = func_80A540C0;
  50.             }
  51.             return;
  52.         }
  53.     }
  54.  
  55.     if (((this->initParams != 2) && (this->initParams != 5)) ||
  56.         ((yawDiff = ABS((s16)(this->actor.rotTowardsLinkY - this->actor.shape.rot.y)),
  57.             !(this->actor.xzDistanceFromLink > 120.0f)) &&
  58.             (yawDiff < 0x4300))) {
  59.         func_8002F2F4(&this->actor, globalCtx);
  60.     }
  61. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top