Advertisement
MrCheeze

oot writes indexed by actor fields

Oct 8th, 2023 (edited)
1,122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 5.80 KB | None | 0 0
  1. Searching 457 files for "\[this.*[^=><!]=($|[^=])" (regex)
  2.  
  3. C:\Users\Matthew\Documents\git\oot\src\overlays\actors\ovl_Bg_Bowl_Wall\z_bg_bowl_wall.c:
  4.   172          this->dyna.actor.world.rot.x = this->dyna.actor.shape.rot.x = 0;
  5.   173          this->dyna.actor.world.pos.y = this->initPos.y - 450.0f;
  6.   174:         this->chuGirl->wallStatus[this->dyna.actor.params] = 2;
  7.   175          this->actionFunc = BgBowlWall_Reset;
  8.   176      }
  9.  
  10. C:\Users\Matthew\Documents\git\oot\src\overlays\actors\ovl_Bg_Dodoago\z_bg_dodoago.c:
  11.   261  
  12.   262  void BgDodoago_LightOneEye(BgDodoago* this, PlayState* play) {
  13.   263:     play->roomCtx.unk_74[this->state] += 5;
  14.   264  
  15.   265      if (play->roomCtx.unk_74[this->state] == 255) {
  16.  
  17. C:\Users\Matthew\Documents\git\oot\src\overlays\actors\ovl_Bg_Gnd_Iceblock\z_bg_gnd_iceblock.c:
  18.   101      };
  19.   102  
  20.   103:     sBlockPositions[thisx->params] = blockPosition;
  21.   104      this->targetPos.x = 2552.0f + (xPosIdx[blockPosition] * 120.0f);
  22.   105      this->targetPos.z = -540.0f - (zPosIdx[blockPosition] * 120.0f);
  23.  
  24. C:\Users\Matthew\Documents\git\oot\src\overlays\actors\ovl_Bg_Jya_Zurerukabe\z_bg_jya_zurerukabe.c:
  25.   137  
  26.   138      DynaPoly_DeleteBgActor(play, &play->colCtx.dyna, this->dyna.bgId);
  27.   139:     D_8089B9C0[this->unk_168] = 0.0f;
  28.   140  }
  29.   141  
  30.   ...
  31.   148          func_8089B80C(this);
  32.   149      }
  33.   150:     D_8089B9C0[this->unk_168] = 0.0f;
  34.   151  }
  35.   152  
  36.   ...
  37.   166      }
  38.   167  
  39.   168:     D_8089B9C0[this->unk_168] = D_8089BA08[this->unk_168] * this->unk_16E;
  40.   169      func_8002F974(&this->dyna.actor, NA_SE_EV_ELEVATOR_MOVE - SFX_FLAG);
  41.   170  }
  42.  
  43. C:\Users\Matthew\Documents\git\oot\src\overlays\actors\ovl_Boss_Fd\z_boss_fd.c:
  44.   806              this->fogMode = 3;
  45.   807              if (this->timers[0] < 18) {
  46.   808:                 this->bodyFallApart[this->timers[0]] = 1;
  47.   809              }
  48.   810              if (this->timers[0] == 0) {
  49.  
  50. C:\Users\Matthew\Documents\git\oot\src\overlays\actors\ovl_Boss_Ganon\z_boss_ganon.c:
  51.  4205      }
  52.  4206  
  53.  4207:     this->unk_2EC[this->unk_1A6] = this->actor.world.pos;
  54.  4208  
  55.  4209      if (this->unk_1C2 == 0) {
  56.  ....
  57.  4332      }
  58.  4333  
  59.  4334:     this->unk_2EC[this->unk_1A6] = this->actor.world.pos;
  60.  4335:     this->unk_3C4[this->unk_1A6].x = BINANG_TO_RAD_ALT(this->actor.world.rot.x);
  61.  4336:     this->unk_3C4[this->unk_1A6].y = BINANG_TO_RAD_ALT(this->actor.world.rot.y);
  62.  4337  
  63.  4338      switch (this->unk_1C2) {
  64.  
  65. C:\Users\Matthew\Documents\git\oot\src\overlays\actors\ovl_Boss_Tw\z_boss_tw.c:
  66.  2862      }
  67.  2863  
  68.  2864:     this->blastTailPos[this->work[TAIL_IDX]] = this->actor.world.pos;
  69.  2865  
  70.  2866      for (i = 0; i < 5; i++) {
  71.  ....
  72.  4403      }
  73.  4404  
  74.  4405:     this->blastTailPos[this->work[TAIL_IDX]] = this->actor.world.pos;
  75.  4406  
  76.  4407      this->actionFunc(this, play);
  77.  
  78. C:\Users\Matthew\Documents\git\oot\src\overlays\actors\ovl_En_G_Switch\z_en_g_switch.c:
  79.   282                      this->actor.gravity = 0.0f;
  80.   283                      if (gallery->actor.update != NULL) {
  81.   284:                         gallery->targetState[this->index] = ENSYATEKIHIT_MISS;
  82.   285                      }
  83.   286                      Actor_Kill(&this->actor);
  84.   ...
  85.   292                      gallery = ((EnSyatekiItm*)this->actor.parent);
  86.   293                      if (gallery->actor.update != NULL) {
  87.   294:                         gallery->targetState[this->index] = ENSYATEKIHIT_MISS;
  88.   295                      }
  89.   296                      Actor_Kill(&this->actor);
  90.   ...
  91.   302                      gallery = ((EnSyatekiItm*)this->actor.parent);
  92.   303                      if (gallery->actor.update != NULL) {
  93.   304:                         gallery->targetState[this->index] = ENSYATEKIHIT_MISS;
  94.   305                      }
  95.   306                      Actor_Kill(&this->actor);
  96.   ...
  97.   328                                  gallery = ((EnSyatekiItm*)this->actor.parent);
  98.   329                                  if (gallery->actor.update != NULL) {
  99.   330:                                     gallery->targetState[this->index] = ENSYATEKIHIT_MISS;
  100.   331                                  }
  101.   332                                  Actor_Kill(&this->actor);
  102.   ...
  103.   342              if (gallery->actor.update != NULL) {
  104.   343                  gallery->hitCount++;
  105.   344:                 gallery->targetState[this->index] = ENSYATEKIHIT_HIT;
  106.   345                  Sfx_PlaySfxCentered(NA_SE_EV_HIT_SOUND);
  107.   346                  Sfx_PlaySfxCentered(NA_SE_SY_GET_RUPY);
  108.  
  109. C:\Users\Matthew\Documents\git\oot\src\overlays\actors\ovl_En_Goma\z_en_goma.c:
  110.   417              BossGoma* parent = (BossGoma*)this->actor.parent;
  111.   418  
  112.   419:             parent->childrenGohmaState[this->actor.params] = -1;
  113.   420          }
  114.   421          Audio_PlaySfxGeneral(NA_SE_EN_EXTINCT, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale,
  115.   ...
  116.   661                      BossGoma* parent = (BossGoma*)this->actor.parent;
  117.   662  
  118.   663:                     parent->childrenGohmaState[this->actor.params] = -1;
  119.   664                  }
  120.   665  
  121.  
  122. C:\Users\Matthew\Documents\git\oot\src\overlays\actors\ovl_En_Wall_Tubo\z_en_wall_tubo.c:
  123.    88                  if (((fabsf(chuPosDiff.x) < 40.0f) || (BREG(2))) && ((fabsf(chuPosDiff.y) < 40.0f) || (BREG(2))) &&
  124.    89                      (fabsf(chuPosDiff.z) < 40.0f || (BREG(2)))) {
  125.    90:                     this->chuGirl->wallStatus[this->actor.params] = 1;
  126.    91                      chu->timer = 2;
  127.    92                      Sfx_PlaySfxCentered(NA_SE_SY_TRE_BOX_APPEAR);
  128.  
  129. C:\Users\Matthew\Documents\git\oot\src\overlays\actors\ovl_player_actor\z_player.c:
  130.  2034      }
  131.  2035  
  132.  2036:     this->unk_847[this->unk_846] = phi_v1;
  133.  2037:     this->unk_84B[this->unk_846] = phi_v0;
  134.  2038  }
  135.  2039  
  136.  
  137. 23 matches across 11 files
  138.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement