Advertisement
fggkyle

Untitled

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