NoFog - fix
SetFPS - fix
NoCD - fix
This commit is contained in:
RyujinZX 2022-05-31 18:27:06 +03:00
parent 8675aaa648
commit b7164cbcbb
3 changed files with 10 additions and 10 deletions

View File

@ -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);

View File

@ -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);
}
}

View File

@ -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;
}
}