mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-11-25 19:02:19 -05:00
Adds the easy Quick Put Away (QPA) cheat (#3268)
* Adds an easy qpa cheat that gives the glitched damage value of the quick put away glitch * Adds RegisterEzQPA(); under InitMods()
This commit is contained in:
parent
c031edae98
commit
743be7b684
@ -147,6 +147,19 @@ void RegisterInfiniteISG() {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//Permanent quick put away (QPA) glitched damage value
|
||||||
|
void RegisterEzQPA() {
|
||||||
|
GameInteractor::Instance->RegisterGameHook<GameInteractor::OnGameFrameUpdate>([]() {
|
||||||
|
if (!gPlayState) return;
|
||||||
|
|
||||||
|
if (CVarGetInteger("gEzQPA", 0) != 0) {
|
||||||
|
Player* player = GET_PLAYER(gPlayState);
|
||||||
|
player->meleeWeaponQuads[0].info.toucher.dmgFlags = 0x16171617;
|
||||||
|
player->meleeWeaponQuads[1].info.toucher.dmgFlags = 0x16171617;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
void RegisterUnrestrictedItems() {
|
void RegisterUnrestrictedItems() {
|
||||||
GameInteractor::Instance->RegisterGameHook<GameInteractor::OnGameFrameUpdate>([]() {
|
GameInteractor::Instance->RegisterGameHook<GameInteractor::OnGameFrameUpdate>([]() {
|
||||||
if (!gPlayState) return;
|
if (!gPlayState) return;
|
||||||
@ -1027,6 +1040,7 @@ void InitMods() {
|
|||||||
RegisterInfiniteNayrusLove();
|
RegisterInfiniteNayrusLove();
|
||||||
RegisterMoonJumpOnL();
|
RegisterMoonJumpOnL();
|
||||||
RegisterInfiniteISG();
|
RegisterInfiniteISG();
|
||||||
|
RegisterEzQPA();
|
||||||
RegisterUnrestrictedItems();
|
RegisterUnrestrictedItems();
|
||||||
RegisterFreezeTime();
|
RegisterFreezeTime();
|
||||||
RegisterSwitchAge();
|
RegisterSwitchAge();
|
||||||
|
@ -246,6 +246,7 @@ const std::vector<const char*> cheatCvars = {
|
|||||||
"gMoonJumpOnL",
|
"gMoonJumpOnL",
|
||||||
"gSuperTunic",
|
"gSuperTunic",
|
||||||
"gEzISG",
|
"gEzISG",
|
||||||
|
"gEzQPA",
|
||||||
"gTimelessEquipment",
|
"gTimelessEquipment",
|
||||||
"gCheatEasyPauseBufferEnabled",
|
"gCheatEasyPauseBufferEnabled",
|
||||||
"gCheatEasyInputBufferingEnabled",
|
"gCheatEasyInputBufferingEnabled",
|
||||||
|
@ -1243,6 +1243,8 @@ void DrawCheatsMenu() {
|
|||||||
UIWidgets::Tooltip("Makes every tunic have the effects of every other tunic");
|
UIWidgets::Tooltip("Makes every tunic have the effects of every other tunic");
|
||||||
UIWidgets::PaddedEnhancementCheckbox("Easy ISG", "gEzISG", true, false);
|
UIWidgets::PaddedEnhancementCheckbox("Easy ISG", "gEzISG", true, false);
|
||||||
UIWidgets::Tooltip("Passive Infinite Sword Glitch\nIt makes your sword's swing effect and hitbox stay active indefinitely");
|
UIWidgets::Tooltip("Passive Infinite Sword Glitch\nIt makes your sword's swing effect and hitbox stay active indefinitely");
|
||||||
|
UIWidgets::PaddedEnhancementCheckbox("Easy QPA", "gEzQPA", true, false);
|
||||||
|
UIWidgets::Tooltip("Gives you the glitched damage value of the quick put away glitch.");
|
||||||
UIWidgets::PaddedEnhancementCheckbox("Timeless Equipment", "gTimelessEquipment", true, false);
|
UIWidgets::PaddedEnhancementCheckbox("Timeless Equipment", "gTimelessEquipment", true, false);
|
||||||
UIWidgets::Tooltip("Allows any item to be equipped, regardless of age\nAlso allows Child to use Adult strength upgrades");
|
UIWidgets::Tooltip("Allows any item to be equipped, regardless of age\nAlso allows Child to use Adult strength upgrades");
|
||||||
UIWidgets::PaddedEnhancementCheckbox("Easy Frame Advancing", "gCheatEasyPauseBufferEnabled", true, false);
|
UIWidgets::PaddedEnhancementCheckbox("Easy Frame Advancing", "gCheatEasyPauseBufferEnabled", true, false);
|
||||||
|
Loading…
Reference in New Issue
Block a user