Merge branch 'master' of https://github.com/Akebi-Group/Akebi-GC
This commit is contained in:
commit
30f64b7fa8
@ -411,6 +411,14 @@ namespace cheat::feature
|
|||||||
}
|
}
|
||||||
ImGui::CloseCurrentPopup();
|
ImGui::CloseCurrentPopup();
|
||||||
}
|
}
|
||||||
|
if (ImGui::Button("Complete progress"))
|
||||||
|
{
|
||||||
|
for (auto& [pointID, point] : label.points)
|
||||||
|
{
|
||||||
|
CompletePoint(&point);
|
||||||
|
}
|
||||||
|
ImGui::CloseCurrentPopup();
|
||||||
|
}
|
||||||
|
|
||||||
ImGui::EndPopup();
|
ImGui::EndPopup();
|
||||||
}
|
}
|
||||||
|
@ -27,8 +27,8 @@ namespace cheat::feature
|
|||||||
ConfigWidget("Enabled", f_Enabled, "Enables infinite stamina option.");
|
ConfigWidget("Enabled", f_Enabled, "Enables infinite stamina option.");
|
||||||
|
|
||||||
ConfigWidget("Move Sync Packet Replacement", f_PacketReplacement,
|
ConfigWidget("Move Sync Packet Replacement", f_PacketReplacement,
|
||||||
"This mode prevents sending server packets with stamina cost actions,\n" \
|
"This mode prevents sending server packets with stamina cost actions,\n"
|
||||||
"e.g. swim, climb, sprint, etc.\n" \
|
"e.g. swim, climb, sprint, etc.\n"
|
||||||
"NOTE: This is may be more safe than the standard method. More testing is needed.");
|
"NOTE: This is may be more safe than the standard method. More testing is needed.");
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -55,11 +55,20 @@ namespace cheat::feature
|
|||||||
bool InfiniteStamina::OnPropertySet(app::PropType__Enum propType)
|
bool InfiniteStamina::OnPropertySet(app::PropType__Enum propType)
|
||||||
{
|
{
|
||||||
using PT = app::PropType__Enum;
|
using PT = app::PropType__Enum;
|
||||||
|
static bool override_cheat = true;
|
||||||
|
|
||||||
return !f_Enabled || f_PacketReplacement ||
|
if (propType == PT::PROP_CUR_TEMPORARY_STAMINA)
|
||||||
(propType != PT::PROP_MAX_STAMINA &&
|
override_cheat = true;
|
||||||
propType != PT::PROP_CUR_PERSIST_STAMINA &&
|
|
||||||
propType != PT::PROP_CUR_TEMPORARY_STAMINA);
|
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_MAX_STAMINA)
|
||||||
|
override_cheat = false;
|
||||||
|
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Infinite stamina packet mode.
|
// Infinite stamina packet mode.
|
||||||
|
Loading…
Reference in New Issue
Block a user