diff --git a/cheat-library/src/user/cheat/player/NoCD.cpp b/cheat-library/src/user/cheat/player/NoCD.cpp index ed1d9e4..926be06 100644 --- a/cheat-library/src/user/cheat/player/NoCD.cpp +++ b/cheat-library/src/user/cheat/player/NoCD.cpp @@ -44,9 +44,9 @@ namespace cheat::feature "(Energy bubble may appear incomplete but still usable.)"); 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"\ - "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."); @@ -128,12 +128,12 @@ namespace cheat::feature NoCD& noCD = NoCD::GetInstance(); 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); - skillInfo->fields.cdTimer = MyValueProtect; + 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; } } return CALL_ORIGIN(LCAvatarCombat_IsSkillInCD_1, __this, skillInfo, method); diff --git a/cheat-library/src/user/cheat/visuals/FPSUnlock.cpp b/cheat-library/src/user/cheat/visuals/FPSUnlock.cpp index 10fcf64..49cfc82 100644 --- a/cheat-library/src/user/cheat/visuals/FPSUnlock.cpp +++ b/cheat-library/src/user/cheat/visuals/FPSUnlock.cpp @@ -47,15 +47,15 @@ namespace cheat::feature static int _originFPS = 30; if (_lastEnabledStatus && !f_Enabled) { - app::Application_set_targetFrameRate(nullptr, _originFPS, nullptr); + app::Application_set_targetFrameRate(_originFPS, nullptr); } else if (!_lastEnabledStatus && f_Enabled) { - _originFPS = app::Application_get_targetFrameRate(nullptr, nullptr); + _originFPS = app::Application_get_targetFrameRate(nullptr); } _lastEnabledStatus = f_Enabled; if (f_Enabled) - app::Application_set_targetFrameRate(nullptr, f_Fps, nullptr); + app::Application_set_targetFrameRate(f_Fps, nullptr); } } \ No newline at end of file diff --git a/cheat-library/src/user/cheat/visuals/NoFog.cpp b/cheat-library/src/user/cheat/visuals/NoFog.cpp index 5f7bd4e..3add9f9 100644 --- a/cheat-library/src/user/cheat/visuals/NoFog.cpp +++ b/cheat-library/src/user/cheat/visuals/NoFog.cpp @@ -44,7 +44,7 @@ namespace cheat::feature { if (_prevEnabledState != f_Enabled) { - app::RenderSettings_set_fog(nullptr, !f_Enabled, nullptr); + app::RenderSettings_set_fog(!f_Enabled, nullptr); _prevEnabledState = f_Enabled; } }