fix 2.7
NoFog - fix SetFPS - fix NoCD - fix
This commit is contained in:
parent
8675aaa648
commit
b7164cbcbb
@ -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