mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-11-25 10:52: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() {
|
||||
GameInteractor::Instance->RegisterGameHook<GameInteractor::OnGameFrameUpdate>([]() {
|
||||
if (!gPlayState) return;
|
||||
@ -1027,6 +1040,7 @@ void InitMods() {
|
||||
RegisterInfiniteNayrusLove();
|
||||
RegisterMoonJumpOnL();
|
||||
RegisterInfiniteISG();
|
||||
RegisterEzQPA();
|
||||
RegisterUnrestrictedItems();
|
||||
RegisterFreezeTime();
|
||||
RegisterSwitchAge();
|
||||
|
@ -246,6 +246,7 @@ const std::vector<const char*> cheatCvars = {
|
||||
"gMoonJumpOnL",
|
||||
"gSuperTunic",
|
||||
"gEzISG",
|
||||
"gEzQPA",
|
||||
"gTimelessEquipment",
|
||||
"gCheatEasyPauseBufferEnabled",
|
||||
"gCheatEasyInputBufferingEnabled",
|
||||
|
@ -1243,6 +1243,8 @@ void DrawCheatsMenu() {
|
||||
UIWidgets::Tooltip("Makes every tunic have the effects of every other tunic");
|
||||
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::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::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);
|
||||
|
Loading…
Reference in New Issue
Block a user