Skip to content

Commit

Permalink
I may have been dumb this entire time
Browse files Browse the repository at this point in the history
  • Loading branch information
JordanSantiagoYT committed Jan 25, 2025
1 parent 5348fbf commit ff916f7
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions source/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -4282,7 +4282,7 @@ class PlayState extends MusicBeatState

camBopIntensity = _intensity;
camBopInterval = _interval;
if (_intensity != 4) usingBopIntervalEvent = true;
if (_interval != 4) usingBopIntervalEvent = true;
else usingBopIntervalEvent = false;

case 'Camera Twist':
Expand Down Expand Up @@ -6197,7 +6197,7 @@ class PlayState extends MusicBeatState
var randomShit = FlxMath.roundDecimal(FlxG.random.float(minSpeed, maxSpeed), 2);
lerpSongSpeed(randomShit, 1);
}
if (camZooming && !endingSong && !startingSong && FlxG.camera.zoom < 1.35 && ClientPrefs.camZooms && (curBeat % camBopInterval == 0))
if (camZooming && !endingSong && !startingSong && FlxG.camera.zoom < 1.35 && usingBopIntervalEvent && ClientPrefs.camZooms && (curBeat % camBopInterval == 0))
{
FlxG.camera.zoom += 0.015 * camBopIntensity;
camHUD.zoom += 0.03 * camBopIntensity;
Expand Down Expand Up @@ -6274,7 +6274,11 @@ class PlayState extends MusicBeatState
setOnLuas('mustHitSection', SONG.notes[curSection].mustHitSection);
setOnLuas('altAnim', SONG.notes[curSection].altAnim);
setOnLuas('gfSection', SONG.notes[curSection].gfSection);
if (!usingBopIntervalEvent) camBopInterval = getBeatsOnSection();
if (camZooming && !endingSong && !startingSong && FlxG.camera.zoom < 1.35 && !usingBopIntervalEvent && ClientPrefs.camZooms)
{
FlxG.camera.zoom += 0.015 * camBopIntensity;
camHUD.zoom += 0.03 * camBopIntensity;
}
}

setOnLuas('curSection', curSection);
Expand Down

3 comments on commit ff916f7

@SyncGit12
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Image

@StinkTheStinker
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is this meant to be

@JordanSantiagoYT
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

basically i wanted to change it so that if you set the camera bop interval to 4, then the camera would bop on every section hit

the issue is i made it so it only does that if you set the INTENSITY to 4, not the interval

Please sign in to comment.