commit
8a35f2bd34
@ -239,9 +239,9 @@ DO_APP_FUNC(0x00A8D650, float, MoleMole_InLevelMainPageContext_get_miniMapScale,
|
|||||||
|
|
||||||
|
|
||||||
// UnityEngine
|
// UnityEngine
|
||||||
DO_APP_FUNC(0x065ECB70, void, RenderSettings_set_fog, (void* __this, bool value, MethodInfo* method));
|
DO_APP_FUNC(0x065ECB70, void, RenderSettings_set_fog, (bool value, MethodInfo* method));
|
||||||
DO_APP_FUNC(0x06621FF0, void, Application_set_targetFrameRate, (void* __this, int32_t value, MethodInfo* method));
|
DO_APP_FUNC(0x06621FF0, void, Application_set_targetFrameRate, (int32_t value, MethodInfo* method));
|
||||||
DO_APP_FUNC(0x06621D80, int32_t, Application_get_targetFrameRate, (void* __this, MethodInfo* method));
|
DO_APP_FUNC(0x06621D80, int32_t, Application_get_targetFrameRate, (MethodInfo* method));
|
||||||
|
|
||||||
DO_APP_FUNC(0x06678780, bool, RectTransformUtility_ScreenPointToLocalPointInRectangle, (void* rect, Vector2 screenPoint, void* cam, Vector2* localPoint, MethodInfo* method));
|
DO_APP_FUNC(0x06678780, bool, RectTransformUtility_ScreenPointToLocalPointInRectangle, (void* rect, Vector2 screenPoint, void* cam, Vector2* localPoint, MethodInfo* method));
|
||||||
|
|
||||||
|
@ -44,9 +44,9 @@ namespace cheat::feature
|
|||||||
"(Energy bubble may appear incomplete but still usable.)");
|
"(Energy bubble may appear incomplete but still usable.)");
|
||||||
|
|
||||||
ConfigWidget("## AbilityReduce", f_AbilityReduce); ImGui::SameLine();
|
ConfigWidget("## AbilityReduce", f_AbilityReduce); ImGui::SameLine();
|
||||||
ConfigWidget("Reduce Skill/Burst Cooldown", f_TimerReduce, 0.05f, 0.0f, 1.0f,
|
ConfigWidget("Reduce Skill/Burst Cooldown", f_TimerReduce, 1.f, 1.f, 6.0f,
|
||||||
"Reduce cooldowns of elemental skills and bursts.\n"\
|
"Reduce cooldowns of elemental skills and bursts.\n"\
|
||||||
"0.0 - no CD, 1.0 - default CD.");
|
"1.0 - no CD, 2.0 and higher - increases the timer value.");
|
||||||
|
|
||||||
ConfigWidget(f_Sprint, "Removes delay in-between sprints.");
|
ConfigWidget(f_Sprint, "Removes delay in-between sprints.");
|
||||||
|
|
||||||
@ -128,12 +128,12 @@ namespace cheat::feature
|
|||||||
NoCD& noCD = NoCD::GetInstance();
|
NoCD& noCD = NoCD::GetInstance();
|
||||||
if (noCD.f_AbilityReduce)
|
if (noCD.f_AbilityReduce)
|
||||||
{
|
{
|
||||||
auto cdTimer = app::MoleMole_SafeFloat_get_Value(skillInfo->fields.cdTimer, nullptr);
|
auto cdTimer = app::MoleMole_SafeFloat_get_Value(skillInfo->fields.cdTimer, nullptr); // Timer start value in the game
|
||||||
|
|
||||||
if (cdTimer > noCD.f_TimerReduce * 5.0f)
|
if (cdTimer > noCD.f_TimerReduce)
|
||||||
{
|
{
|
||||||
struct app::SafeFloat MyValueProtect = app::MoleMole_SafeFloat_set_Value(noCD.f_TimerReduce * 5.0f, nullptr);
|
struct app::SafeFloat MyValueProtect = app::MoleMole_SafeFloat_set_Value(noCD.f_TimerReduce - 1.0f, nullptr); // Subtract -1 from the current timer value
|
||||||
skillInfo->fields.cdTimer = MyValueProtect;
|
skillInfo->fields.cdTimer = MyValueProtect;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return CALL_ORIGIN(LCAvatarCombat_IsSkillInCD_1, __this, skillInfo, method);
|
return CALL_ORIGIN(LCAvatarCombat_IsSkillInCD_1, __this, skillInfo, method);
|
||||||
|
@ -47,15 +47,15 @@ namespace cheat::feature
|
|||||||
static int _originFPS = 30;
|
static int _originFPS = 30;
|
||||||
if (_lastEnabledStatus && !f_Enabled)
|
if (_lastEnabledStatus && !f_Enabled)
|
||||||
{
|
{
|
||||||
app::Application_set_targetFrameRate(nullptr, _originFPS, nullptr);
|
app::Application_set_targetFrameRate(_originFPS, nullptr);
|
||||||
}
|
}
|
||||||
else if (!_lastEnabledStatus && f_Enabled)
|
else if (!_lastEnabledStatus && f_Enabled)
|
||||||
{
|
{
|
||||||
_originFPS = app::Application_get_targetFrameRate(nullptr, nullptr);
|
_originFPS = app::Application_get_targetFrameRate(nullptr);
|
||||||
}
|
}
|
||||||
_lastEnabledStatus = f_Enabled;
|
_lastEnabledStatus = f_Enabled;
|
||||||
|
|
||||||
if (f_Enabled)
|
if (f_Enabled)
|
||||||
app::Application_set_targetFrameRate(nullptr, f_Fps, nullptr);
|
app::Application_set_targetFrameRate(f_Fps, nullptr);
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -44,7 +44,7 @@ namespace cheat::feature
|
|||||||
{
|
{
|
||||||
if (_prevEnabledState != f_Enabled)
|
if (_prevEnabledState != f_Enabled)
|
||||||
{
|
{
|
||||||
app::RenderSettings_set_fog(nullptr, !f_Enabled, nullptr);
|
app::RenderSettings_set_fog(!f_Enabled, nullptr);
|
||||||
_prevEnabledState = f_Enabled;
|
_prevEnabledState = f_Enabled;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user