SHARE
TWEET

thing

fig02 Jun 25th, 2020 (edited) 918 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void EnHeishi1_Init(Actor* thisx, GlobalContext* globalCtx) {
  2.     s32 pad;
  3.     EnHeishi1* this = THIS;
  4.     Vec3f rupeePos;
  5.     s32 i;
  6.     u16 time;
  7.  
  8.     Actor_SetScale(&this->actor, 0.01f);
  9.     SkelAnime_Init(globalCtx, &this->skelAnime, &D_0600BAC8, &D_06005C30, &this->limbDrawTable,
  10.                    &this->transitionDrawTable, 17);
  11.  
  12.     this->type = (this->actor.params >> 8) & 0xFF;
  13.     this->path = this->actor.params & 0xFF;
  14.  
  15.     for (i = 0; i < ARRAY_COUNT(D_80A527C4[0]); i++) {
  16.         this->animParams[i] = D_80A527C4[this->type][i];
  17.     }
  18.  
  19.     // "type"
  20.     osSyncPrintf(VT_FGCOL(GREEN) "種類☆☆☆☆☆☆☆☆☆☆☆☆☆ %d\n" VT_RST, this->type);
  21.  
  22.     // "path data"
  23.     osSyncPrintf(VT_FGCOL(YELLOW) "れえるでぇたぁ☆☆☆☆☆☆☆☆ %d\n" VT_RST, this->path);
  24.  
  25.     osSyncPrintf(VT_FGCOL(PURPLE) "anime_frame_speed ☆☆☆☆☆☆ %f\n" VT_RST, this->animSpeed);
  26.  
  27.     // "interpolation frames"
  28.     osSyncPrintf(VT_FGCOL(PURPLE) "補間フレーム☆☆☆☆☆☆☆☆☆ %f\n" VT_RST, this->interpolation);
  29.  
  30.     // "targeted movement speed value between points"
  31.     osSyncPrintf(VT_FGCOL(PURPLE) "point間の移動スピード目標値 ☆ %f\n" VT_RST, this->moveSpeedTarget);
  32.  
  33.     // "maximum movement speed value between points"
  34.     osSyncPrintf(VT_FGCOL(PURPLE) "point間の移動スピード最大 ☆☆ %f\n" VT_RST, this->moveSpeedMax);
  35.  
  36.     // "(body) targeted turning angle speed value"
  37.     osSyncPrintf(VT_FGCOL(PURPLE) "(体)反転アングルスピード目標値 %f\n" VT_RST, this->bodyTurnSpeedTarget);
  38.  
  39.     // "(body) maximum turning angle speed"
  40.     osSyncPrintf(VT_FGCOL(PURPLE) "(体)反転アングルスピード最大☆ %f\n" VT_RST, this->bodyTurnSpeedMax);
  41.  
  42.     // "(head) targeted turning angle speed value"
  43.     osSyncPrintf(VT_FGCOL(PURPLE) "(頭)反転アングルスピード加算値 %f\n" VT_RST, this->headTurnSpeedTarget);
  44.  
  45.     // "(head) maximum turning angle speed"
  46.     osSyncPrintf(VT_FGCOL(PURPLE) "(頭)反転アングルスピード最大☆ %f\n" VT_RST, this->headTurnSpeedMax);
  47.  
  48.     // "current time"
  49.     time = gSaveContext.dayTime; osSyncPrintf(VT_FGCOL(GREEN) "今時間 %d\n" VT_RST, time);
  50.  
  51.     // "check time"
  52.     osSyncPrintf(VT_FGCOL(YELLOW) "チェック時間 %d\n" VT_RST, 0xBAAA);
  53.  
  54.     osSyncPrintf("\n\n");
  55.  
  56.     if (this->path == 3) {
  57.         for (i = 0; i < ARRAY_COUNT(D_80A52850); i++) {
  58.             rupeePos = D_80A52850[i];
  59.             Actor_SpawnAttached(&globalCtx->actorCtx, &this->actor, globalCtx, ACTOR_EN_EX_RUPPY, rupeePos.x,
  60.                                 rupeePos.y, rupeePos.z, 0, 0, 0, 3);
  61.         }
  62.     }
  63.  
  64.     if (this->type != 5) {
  65.         if (((gSaveContext.dayTime < 0xB888) || (gSaveContext.nightFlag == 0)) && !(gSaveContext.eventChkInf[8] & 1)) {
  66.             this->actionFunc = func_80A5162C;
  67.         } else {
  68.             Actor_Kill(&this->actor);
  69.         }
  70.     } else {
  71.         if ((gSaveContext.dayTime >= 0xB889) || (gSaveContext.nightFlag != 0) || (gSaveContext.eventChkInf[8] & 1)) {
  72.             this->actionFunc = func_80A521FC;
  73.         } else {
  74.             Actor_Kill(&this->actor);
  75.         }
  76.     }
  77. }
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