Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void EnMm2_Init(Actor* thisx, GlobalContext* globalCtx) {
- EnMm2* this = THIS;
- s32 pad;
- Actor_ProcessInitChain(&this->actor, D_80AAFB5C);
- ActorShape_Init(&this->actor.shape, 0.0f, ActorShadow_DrawFunc_Circle, 21.0f);
- SkelAnime_InitSV(globalCtx, &this->skelAnime, &D_06005E18, NULL, this->limbDrawTable, this->transitionDrawTable,
- 16);
- SkelAnime_ChangeAnim(&this->skelAnime, D_80AAFAEC[2].animation, 1.0f, 0.0f,
- SkelAnime_GetFrameCount(&D_80AAFAEC[2].animation->genericHeader), D_80AAFAEC[2].unk_08,
- D_80AAFAEC[2].transitionRate);
- this->unk_1F8 = 2;
- Collider_InitCylinder(globalCtx, &this->collider);
- Collider_SetCylinder(globalCtx, &this->collider, &this->actor, &D_80AAFAC0);
- this->actor.colChkInfo.mass = 0xFF;
- this->unk_1E0 = 0;
- this->actor.unk_1F = 6;
- this->unk_1F4 |= 1;
- this->actor.gravity = -1.0f;
- if (this->actor.params == 1) {
- this->actionFunc = func_80AAF668;
- } else {
- func_80AAEF70(this, globalCtx);
- this->actionFunc = func_80AAF57C;
- }
- if (LINK_IS_CHILD) {
- Actor_Kill(&this->actor);
- }
- if (this->actor.params == 1) {
- if (!(gSaveContext.infTable[23] & 0x8000) || !(gSaveContext.eventInf[1] & 1)) {
- osSyncPrintf(VT_FGCOL(CYAN) " マラソン 開始されていない \n" VT_RST "\n");
- Actor_Kill(&this->actor);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement