Skip to content

Commit

Permalink
ADD: Gohma (remove flicker lights from her body)
Browse files Browse the repository at this point in the history
  • Loading branch information
PurpleHato committed May 3, 2024
1 parent 5c5db79 commit 76fabd2
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions soh/src/overlays/actors/ovl_Boss_Goma/z_boss_goma.c
Original file line number Diff line number Diff line change
Expand Up @@ -1367,6 +1367,9 @@ void BossGoma_FloorDamaged(BossGoma* this, PlayState* play) {

this->eyeState = EYESTATE_IRIS_NO_FOLLOW_NO_IFRAMES;
Math_ApproachF(&this->eyeIrisScaleX, 0.4f, 0.5f, 0.2f);
if (CVarGetInteger("gPhotosensitiveMode", 0)) {
return;
}
this->visualState = VISUALSTATE_HIT;
}

Expand Down Expand Up @@ -1426,6 +1429,11 @@ void BossGoma_FloorStunned(BossGoma* this, PlayState* play) {
Math_ApproachS(&this->actor.shape.rot.x, 0, 2, 0xBB8);
this->eyeState = EYESTATE_IRIS_NO_FOLLOW_NO_IFRAMES;
Math_ApproachF(&this->eyeIrisScaleX, 0.4f, 0.5f, 0.2f);

if (CVarGetInteger("gPhotosensitiveMode", 0)) {
return;
}

this->visualState = VISUALSTATE_STUNNED;
}

Expand Down Expand Up @@ -1877,6 +1885,10 @@ void BossGoma_UpdateMainEnvColor(BossGoma* this) {
{ 0.0f, 255.0f, 170.0f }, { 0.0f, 0.0f, 255.0f }, { 255.0f, 17.0f, 0.0f },
};

if (CVarGetInteger("gPhotosensitiveMode", 0)) {
return;
}

if (this->visualState == VISUALSTATE_DEFAULT && this->frameCount & 0x10) {
Math_ApproachF(&this->mainEnvColor[0], 50.0f, 0.5f, 20.0f);
Math_ApproachF(&this->mainEnvColor[1], 50.0f, 0.5f, 20.0f);
Expand Down

0 comments on commit 76fabd2

Please sign in to comment.