mirror of
https://github.com/izzy2lost/2ship2harkinian-Android.git
synced 2026-06-19 01:20:08 -07:00
[Cheat] Longer Deku Flower Gliding (#548)
* Add Longer Flower Glide enhancement Co-authored-by: Patrick12115 <115201185+Patrick12115@users.noreply.github.com> * Tweak to just modify an array * Update mm/2s2h/Enhancements/Cheats/LongerFlowerGlide.cpp --------- Co-authored-by: Garrett Cox <garrettjcox@gmail.com>
This commit is contained in:
co-authored by
Garrett Cox
parent
d2a11f1476
commit
5e17828cc4
@@ -13,6 +13,7 @@
|
||||
#include "2s2h/Enhancements/Modes/TimeMovesWhenYouMove.h"
|
||||
#include "2s2h/DeveloperTools/DeveloperTools.h"
|
||||
#include "2s2h/DeveloperTools/WarpPoint.h"
|
||||
#include "2s2h/Enhancements/Cheats/Cheats.h"
|
||||
#include "HudEditor.h"
|
||||
|
||||
extern "C" {
|
||||
@@ -644,13 +645,18 @@ void DrawCheatsMenu() {
|
||||
UIWidgets::CVarCheckbox("Infinite Magic", "gCheats.InfiniteMagic");
|
||||
UIWidgets::CVarCheckbox("Infinite Rupees", "gCheats.InfiniteRupees");
|
||||
UIWidgets::CVarCheckbox("Infinite Consumables", "gCheats.InfiniteConsumables");
|
||||
if (UIWidgets::CVarCheckbox(
|
||||
"Longer Deku Flower Glide", "gCheats.LongerFlowerGlide",
|
||||
{ .tooltip = "Allows Deku Link to glide longer, no longer dropping after a certain distance" })) {
|
||||
RegisterLongerFlowerGlide();
|
||||
}
|
||||
UIWidgets::CVarCheckbox("No Clip", "gCheats.NoClip");
|
||||
UIWidgets::CVarCheckbox("Unbreakable Razor Sword", "gCheats.UnbreakableRazorSword");
|
||||
UIWidgets::CVarCheckbox("Unrestricted Items", "gCheats.UnrestrictedItems");
|
||||
if (UIWidgets::CVarCheckbox("Moon Jump on L", "gCheats.MoonJumpOnL",
|
||||
{ .tooltip = "Holding L makes you float into the air" })) {
|
||||
RegisterMoonJumpOnL();
|
||||
}
|
||||
UIWidgets::CVarCheckbox("No Clip", "gCheats.NoClip");
|
||||
|
||||
ImGui::EndMenu();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
#ifndef CHEATS_H
|
||||
#define CHEATS_H
|
||||
|
||||
void RegisterLongerFlowerGlide();
|
||||
|
||||
#endif // CHEATS_H
|
||||
@@ -0,0 +1,16 @@
|
||||
#include <libultraship/bridge.h>
|
||||
|
||||
extern "C" {
|
||||
#include "z64.h";
|
||||
extern f32 D_8085D958[2];
|
||||
}
|
||||
|
||||
void RegisterLongerFlowerGlide() {
|
||||
if (CVarGetInteger("gCheats.LongerFlowerGlide", 0)) {
|
||||
D_8085D958[0] = 99999.9f;
|
||||
D_8085D958[1] = 99999.9f;
|
||||
} else {
|
||||
D_8085D958[0] = 600.0f;
|
||||
D_8085D958[1] = 960.0f;
|
||||
}
|
||||
}
|
||||
@@ -8,6 +8,7 @@ void InitEnhancements() {
|
||||
|
||||
// Cheats
|
||||
RegisterInfiniteCheats();
|
||||
RegisterLongerFlowerGlide();
|
||||
RegisterMoonJumpOnL();
|
||||
RegisterUnbreakableRazorSword();
|
||||
RegisterUnrestrictedItems();
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
#include "Cheats/Infinite.h"
|
||||
#include "Dialogue/Dialogue.h"
|
||||
#include "Graphics/TextBasedClock.h"
|
||||
#include "Cheats/Cheats.h"
|
||||
#include "Cheats/UnbreakableRazorSword.h"
|
||||
#include "Cheats/UnrestrictedItems.h"
|
||||
#include "Cycle/EndOfCycle.h"
|
||||
|
||||
Reference in New Issue
Block a user