Advertisement
fggkyle

Untitled

Aug 29th, 2020
1,555
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.45 KB | None | 0 0
  1. void EnMm2_Init(Actor* thisx, GlobalContext* globalCtx) {
  2.     EnMm2* this = THIS;
  3.     s32 pad;
  4.  
  5.     Actor_ProcessInitChain(&this->actor, D_80AAFB5C);
  6.     ActorShape_Init(&this->actor.shape, 0.0f, ActorShadow_DrawFunc_Circle, 21.0f);
  7.     SkelAnime_InitSV(globalCtx, &this->skelAnime, &D_06005E18, NULL, this->limbDrawTable, this->transitionDrawTable,
  8.                      16);
  9.     SkelAnime_ChangeAnim(&this->skelAnime, D_80AAFAEC[2].animation, 1.0f, 0.0f,
  10.                          SkelAnime_GetFrameCount(&D_80AAFAEC[2].animation->genericHeader), D_80AAFAEC[2].unk_08,
  11.                          D_80AAFAEC[2].transitionRate);
  12.     this->unk_1F8 = 2;
  13.     Collider_InitCylinder(globalCtx, &this->collider);
  14.     Collider_SetCylinder(globalCtx, &this->collider, &this->actor, &D_80AAFAC0);
  15.     this->actor.colChkInfo.mass = 0xFF;
  16.     this->unk_1E0 = 0;
  17.     this->actor.unk_1F = 6;
  18.     this->unk_1F4 |= 1;
  19.     this->actor.gravity = -1.0f;
  20.     if (this->actor.params == 1) {
  21.         this->actionFunc = func_80AAF668;
  22.     } else {
  23.         func_80AAEF70(this, globalCtx);
  24.         this->actionFunc = func_80AAF57C;
  25.     }
  26.     if (LINK_IS_CHILD) {
  27.         Actor_Kill(&this->actor);
  28.     }
  29.     if (this->actor.params == 1) {
  30.         if (!(gSaveContext.infTable[23] & 0x8000) || !(gSaveContext.eventInf[1] & 1)) {
  31.             osSyncPrintf(VT_FGCOL(CYAN) " マラソン 開始されていない \n" VT_RST "\n");
  32.             Actor_Kill(&this->actor);
  33.         }
  34.     }
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement