Skip to content

Commit

Permalink
deleted FastStop
Browse files Browse the repository at this point in the history
  • Loading branch information
ByteCorum committed Jun 8, 2024
1 parent abcabab commit a76cdbd
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 24 deletions.
2 changes: 1 addition & 1 deletion DragonBurn/Cheats.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ void AIM(CEntity LocalEntity, std::vector<Vec3> AimPosList)
void MiscFuncs(CEntity LocalEntity)
{
Misc::HitManager(LocalEntity, PreviousTotalHits);
Misc::FastStop();
//Misc::FastStop();
}

void RadarSetting(Base_Radar& Radar)
Expand Down
2 changes: 1 addition & 1 deletion DragonBurn/Features/GUI.h
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,7 @@ namespace GUI
ImGui::SetCursorPos(ImVec2(15.f, 24.f));
ImGui::SeparatorText("Misc");
PutSwitch(Lang::MiscText.bmbTimer, 10.f, ImGui::GetFrameHeight() * 1.7, &MiscCFG::bmbTimer, true, "###bmbTimerCol", reinterpret_cast<float*>(&MiscCFG::BombTimerCol));
PutSwitch(Lang::MiscText.FastStop, 10.f, ImGui::GetFrameHeight() * 1.7, &MiscCFG::FastStop);
//PutSwitch(Lang::MiscText.FastStop, 10.f, ImGui::GetFrameHeight() * 1.7, &MiscCFG::FastStop);
PutSwitch(Lang::MiscText.HeadshotLine, 10.f, ImGui::GetFrameHeight() * 1.7, &MenuConfig::ShowHeadShootLine);
ImGui::SetCursorPosX(ImGui::GetCursorPosX() + 10.f);
ImGui::TextDisabled(Lang::MiscText.HitSound);
Expand Down
32 changes: 16 additions & 16 deletions DragonBurn/Features/Misc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,20 +103,20 @@ namespace Misc
PreviousTotalHits = totalHits;
}

void FastStop() noexcept// junk
{
if (!MiscCFG::FastStop)
return;
// Disable when bhopping
if (GetAsyncKeyState(VK_SPACE) & 0x8000)
return;
// Disable when slow walking
if (GetAsyncKeyState(VK_LSHIFT) & 0x8000)
return;

Misc::StopKeyEvent('A', &aKeyPressed, 'D', 50.f);
Misc::StopKeyEvent('D', &dKeyPressed, 'A', 50.f);
Misc::StopKeyEvent('W', &wKeyPressed, 'S', 50.f);
Misc::StopKeyEvent('S', &sKeyPressed, 'W', 50.f);
}
//void FastStop() noexcept// junk
//{
// if (!MiscCFG::FastStop)
// return;
// // Disable when bhopping
// if (GetAsyncKeyState(VK_SPACE) & 0x8000)
// return;
// // Disable when slow walking
// if (GetAsyncKeyState(VK_LSHIFT) & 0x8000)
// return;

// Misc::StopKeyEvent('A', &aKeyPressed, 'D', 50.f);
// Misc::StopKeyEvent('D', &dKeyPressed, 'A', 50.f);
// Misc::StopKeyEvent('W', &wKeyPressed, 'S', 50.f);
// Misc::StopKeyEvent('S', &sKeyPressed, 'W', 50.f);
//}
}
2 changes: 1 addition & 1 deletion DragonBurn/Features/Misc.h
Original file line number Diff line number Diff line change
Expand Up @@ -150,5 +150,5 @@ namespace Misc

void Watermark(const CEntity& aLocalPlayer) noexcept;
void HitManager(const CEntity& aLocalPlayer, int& PreviousTotalHits) noexcept;
void FastStop() noexcept;// junk
//void FastStop() noexcept;// junk
}
5 changes: 2 additions & 3 deletions DragonBurn/Resources/Language.h
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ namespace Lang
inline static const char* HeadshotLine;
inline static const char* SpecCheck;
inline static const char* NoFlash;
inline static const char* FastStop;
//inline static const char* FastStop;
inline static const char* HitSound;
inline static const char* HitMerker;
inline static const char* bmbTimer;
Expand Down Expand Up @@ -294,15 +294,14 @@ namespace Lang
MiscText.HeadshotLine = u8"Headshot Line";
MiscText.SpecCheck = u8"Cheat in Spec";
MiscText.NoFlash = u8"No Flash";
MiscText.FastStop = u8"Fast Stop";
//MiscText.FastStop = u8"Fast Stop";
MiscText.HitSound = u8"Hit Sound ";
MiscText.HitMerker = u8"Hit Markers";
MiscText.bmbTimer = u8"Bomb Timer";
//MiscText.SpecList = u8"Spec List";
MiscText.Watermark = u8"Watermark";
MiscText.TeamCheck = u8"Team Check";
MiscText.AntiRecord = u8"Anti Record";
MiscText.FastStop = u8"Fast Stop";
MiscText.VisCheckDisable = u8"Visible Check DISABLED";


Expand Down
4 changes: 2 additions & 2 deletions DragonBurn/Utils/ConfigSaver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ namespace MyConfigSaver {
emitter << YAML::Key << "b" << YAML::Value << MiscCFG::BombTimerCol.Value.z;
emitter << YAML::Key << "a" << YAML::Value << MiscCFG::BombTimerCol.Value.w;
emitter << YAML::EndMap;
emitter << YAML::Key << "FastStop" << YAML::Value << MiscCFG::FastStop;
//emitter << YAML::Key << "FastStop" << YAML::Value << MiscCFG::FastStop;
emitter << YAML::Key << "TeamCheck" << YAML::Value << MenuConfig::TeamCheck;
emitter << YAML::Key << "AntiRecord" << YAML::Value << MenuConfig::BypassOBS;
emitter << YAML::EndMap;
Expand Down Expand Up @@ -445,7 +445,7 @@ namespace MyConfigSaver {
MiscCFG::BombTimerCol.Value.y = ReadData(config["Misc"]["TimerColor"]["g"], 0.f);
MiscCFG::BombTimerCol.Value.z = ReadData(config["Misc"]["TimerColor"]["b"], 0.f);
MiscCFG::BombTimerCol.Value.w = ReadData(config["Misc"]["TimerColor"]["a"], 0.f);
MiscCFG::FastStop = ReadData(config["Misc"]["FastStop"], false);
//MiscCFG::FastStop = ReadData(config["Misc"]["FastStop"], false);
//MiscCFG::SpecList = ReadData(config["Misc"]["SpecList"], false);
MenuConfig::TeamCheck = ReadData(config["Misc"]["TeamCheck"], true);
MenuConfig::BypassOBS = ReadData(config["Misc"]["AntiRecord"], false);
Expand Down

0 comments on commit a76cdbd

Please sign in to comment.