Skip to content
This repository has been archived by the owner on Sep 13, 2022. It is now read-only.

Commit

Permalink
add option to disable demo puppet stuff when teleporting
Browse files Browse the repository at this point in the history
  • Loading branch information
fruityloops1 committed Apr 13, 2022
1 parent bb23c22 commit e42d9c9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions include/fl/ui/ui.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ namespace ui {
bool alwaysWarp = false;
bool disableAutoSave = false;
bool skipBowser = false;
bool disablePuppet = false;

bool isModeDiverOrJungleGymRom = false;
bool isModeDiverRom = false;
Expand Down
1 change: 1 addition & 0 deletions source/fl/ui/p_options.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ void fl::ui::options::update(PracticeUI& ui)
ui.toggle("Always Enable Warps", ui.alwaysWarp);
ui.toggle("Disable Autosaving", ui.disableAutoSave);
ui.toggle("Cloud Kingdom Bowser Skip", ui.skipBowser);
ui.toggle("Disable teleport puppet", ui.disablePuppet);
}
8 changes: 6 additions & 2 deletions source/fl/ui/ui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ void fl::ui::PracticeUI::loadPosition(PlayerActorHakoniwa& player)
if (hack)
move = hack;

if (!hack)
if (disablePuppet && !hack)
al::offCollide(&player);
else if (!hack)
player.startDemoPuppetable();
else
al::offCollide(hack);
Expand All @@ -34,7 +36,9 @@ void fl::ui::PracticeUI::loadPosition(PlayerActorHakoniwa& player)
al::updatePoseQuat(move, savedQuat);
al::setVelocityZero(move);

if (!hack)
if (disablePuppet && !hack)
al::onCollide(&player);
else if (!hack)
player.endDemoPuppetable();
else
al::onCollide(hack);
Expand Down

0 comments on commit e42d9c9

Please sign in to comment.