From e6c19445c22a194e466b7bd778a2050101479323 Mon Sep 17 00:00:00 2001 From: Andrei Abrudan Date: Wed, 29 Jun 2022 21:11:17 +0100 Subject: [PATCH 1/5] Fixed unable to sprint issue --- .../src/user/cheat/player/InfiniteStamina.cpp | 22 +++++++++++++------ 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/cheat-library/src/user/cheat/player/InfiniteStamina.cpp b/cheat-library/src/user/cheat/player/InfiniteStamina.cpp index 4aa9d25..2fd7436 100644 --- a/cheat-library/src/user/cheat/player/InfiniteStamina.cpp +++ b/cheat-library/src/user/cheat/player/InfiniteStamina.cpp @@ -27,8 +27,8 @@ namespace cheat::feature ConfigWidget("Enabled", f_Enabled, "Enables infinite stamina option."); ConfigWidget("Move Sync Packet Replacement", f_PacketReplacement, - "This mode prevents sending server packets with stamina cost actions,\n" \ - "e.g. swim, climb, sprint, etc.\n" \ + "This mode prevents sending server packets with stamina cost actions,\n" + "e.g. swim, climb, sprint, etc.\n" "NOTE: This is may be more safe than the standard method. More testing is needed."); } @@ -52,14 +52,22 @@ namespace cheat::feature // Note. Changes received from the server (not sure about this for current time), // that means that server know our stamina, and changes it in client can be detected. // Not working for water because server sending drown action when your stamina down to zero. (Also guess for now) - bool InfiniteStamina::OnPropertySet(app::PropType__Enum propType) + bool InfiniteStamina::OnPropertySet(app::PropType__Enum propType) { using PT = app::PropType__Enum; + static bool max_stamina = true; - return !f_Enabled || f_PacketReplacement || - (propType != PT::PROP_MAX_STAMINA && - propType != PT::PROP_CUR_PERSIST_STAMINA && - propType != PT::PROP_CUR_TEMPORARY_STAMINA); + const bool result = !f_Enabled || f_PacketReplacement || max_stamina || + (propType != PT::PROP_MAX_STAMINA && + propType != PT::PROP_CUR_PERSIST_STAMINA && + propType != PT::PROP_CUR_TEMPORARY_STAMINA); + + if (propType == PT::PROP_PLAYER_LEVEL) + max_stamina = true; + if (propType == PT::PROP_MAX_STAMINA) + max_stamina = false; + + return result; } // Infinite stamina packet mode. From 3c9c95017f9904327d3cc894907746a88ae0456b Mon Sep 17 00:00:00 2001 From: Andrei Abrudan Date: Thu, 30 Jun 2022 19:38:34 +0100 Subject: [PATCH 2/5] Changed propType that triggers the cheat --- cheat-library/src/user/cheat/player/InfiniteStamina.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cheat-library/src/user/cheat/player/InfiniteStamina.cpp b/cheat-library/src/user/cheat/player/InfiniteStamina.cpp index 2fd7436..57e57b9 100644 --- a/cheat-library/src/user/cheat/player/InfiniteStamina.cpp +++ b/cheat-library/src/user/cheat/player/InfiniteStamina.cpp @@ -62,7 +62,7 @@ namespace cheat::feature propType != PT::PROP_CUR_PERSIST_STAMINA && propType != PT::PROP_CUR_TEMPORARY_STAMINA); - if (propType == PT::PROP_PLAYER_LEVEL) + if (propType == PT::PROP_PLAYER_WORLD_LEVEL_LIMIT) max_stamina = true; if (propType == PT::PROP_MAX_STAMINA) max_stamina = false; From 835e177d8c24351595f11d957e7e39365d42dfb8 Mon Sep 17 00:00:00 2001 From: Andrei Abrudan Date: Thu, 30 Jun 2022 20:31:07 +0100 Subject: [PATCH 3/5] More modifications to make cheat independent of other propTypes --- .../src/user/cheat/player/InfiniteStamina.cpp | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/cheat-library/src/user/cheat/player/InfiniteStamina.cpp b/cheat-library/src/user/cheat/player/InfiniteStamina.cpp index 57e57b9..2278385 100644 --- a/cheat-library/src/user/cheat/player/InfiniteStamina.cpp +++ b/cheat-library/src/user/cheat/player/InfiniteStamina.cpp @@ -55,17 +55,18 @@ namespace cheat::feature bool InfiniteStamina::OnPropertySet(app::PropType__Enum propType) { using PT = app::PropType__Enum; - static bool max_stamina = true; + static bool override_cheat = true; - const bool result = !f_Enabled || f_PacketReplacement || max_stamina || - (propType != PT::PROP_MAX_STAMINA && - propType != PT::PROP_CUR_PERSIST_STAMINA && - propType != PT::PROP_CUR_TEMPORARY_STAMINA); + if (propType == PT::PROP_CUR_TEMPORARY_STAMINA) + override_cheat = true; + + const bool result = !f_Enabled || f_PacketReplacement || override_cheat || + (propType != PT::PROP_MAX_STAMINA && + propType != PT::PROP_CUR_PERSIST_STAMINA && + propType != PT::PROP_CUR_TEMPORARY_STAMINA); - if (propType == PT::PROP_PLAYER_WORLD_LEVEL_LIMIT) - max_stamina = true; if (propType == PT::PROP_MAX_STAMINA) - max_stamina = false; + override_cheat = false; return result; } From 488bd9a8bfb1d21df0e9fb473be4429e38e804f8 Mon Sep 17 00:00:00 2001 From: Andrei Abrudan Date: Thu, 30 Jun 2022 21:19:32 +0100 Subject: [PATCH 4/5] Prettify whitespace format --- cheat-library/src/user/cheat/player/InfiniteStamina.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cheat-library/src/user/cheat/player/InfiniteStamina.cpp b/cheat-library/src/user/cheat/player/InfiniteStamina.cpp index 2278385..dd256b2 100644 --- a/cheat-library/src/user/cheat/player/InfiniteStamina.cpp +++ b/cheat-library/src/user/cheat/player/InfiniteStamina.cpp @@ -61,9 +61,9 @@ namespace cheat::feature override_cheat = true; const bool result = !f_Enabled || f_PacketReplacement || override_cheat || - (propType != PT::PROP_MAX_STAMINA && - propType != PT::PROP_CUR_PERSIST_STAMINA && - propType != PT::PROP_CUR_TEMPORARY_STAMINA); + (propType != PT::PROP_MAX_STAMINA && + propType != PT::PROP_CUR_PERSIST_STAMINA && + propType != PT::PROP_CUR_TEMPORARY_STAMINA); if (propType == PT::PROP_MAX_STAMINA) override_cheat = false; From 477ae85ecfc6babdbe7a218df5064d89caf600ec Mon Sep 17 00:00:00 2001 From: biswop Date: Sun, 3 Jul 2022 00:33:19 +1000 Subject: [PATCH 5/5] added complete points button to interactive map --- cheat-library/src/user/cheat/imap/InteractiveMap.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cheat-library/src/user/cheat/imap/InteractiveMap.cpp b/cheat-library/src/user/cheat/imap/InteractiveMap.cpp index 7e60217..0f65dc9 100644 --- a/cheat-library/src/user/cheat/imap/InteractiveMap.cpp +++ b/cheat-library/src/user/cheat/imap/InteractiveMap.cpp @@ -411,6 +411,14 @@ namespace cheat::feature } ImGui::CloseCurrentPopup(); } + if (ImGui::Button("Complete progress")) + { + for (auto& [pointID, point] : label.points) + { + CompletePoint(&point); + } + ImGui::CloseCurrentPopup(); + } ImGui::EndPopup(); }