From c0d3ed571d236d14033c9b23ad3c92cd412c7001 Mon Sep 17 00:00:00 2001 From: Nikita Date: Tue, 4 Apr 2017 14:28:01 +0300 Subject: [PATCH 1/3] Add files via upload --- src/ATGUI/Tabs/triggerbottab.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ATGUI/Tabs/triggerbottab.cpp b/src/ATGUI/Tabs/triggerbottab.cpp index 4da4a0b7a..97c14ec07 100644 --- a/src/ATGUI/Tabs/triggerbottab.cpp +++ b/src/ATGUI/Tabs/triggerbottab.cpp @@ -12,8 +12,8 @@ void Triggerbot::RenderTab() ImGui::Separator(); ImGui::Columns(2, NULL, true); { - ImGui::ItemSize(ImVec2(0.0f, 0.0f), 0.0f); - ImGui::Text("Trigger Key"); + ImGui::Checkbox("Enabled", &Settings::Triggerbot::keyEnabled); + SetTooltip("Enabling this means it you need to press a specific key to trigger"); } ImGui::NextColumn(); { @@ -76,4 +76,4 @@ void Triggerbot::RenderTab() ImGui::EndChild(); } } -} \ No newline at end of file +} From 9d05be3ff9c63faf331c1e46413afe403226146a Mon Sep 17 00:00:00 2001 From: Nikita Date: Tue, 4 Apr 2017 14:28:29 +0300 Subject: [PATCH 2/3] Add files via upload --- src/Hacks/triggerbot.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Hacks/triggerbot.cpp b/src/Hacks/triggerbot.cpp index 062e79a59..cd8ae4abe 100644 --- a/src/Hacks/triggerbot.cpp +++ b/src/Hacks/triggerbot.cpp @@ -15,13 +15,14 @@ bool Settings::Triggerbot::Filters::legs = true; bool Settings::Triggerbot::Delay::enabled = false; int Settings::Triggerbot::Delay::value = 250; ButtonCode_t Settings::Triggerbot::key = ButtonCode_t::KEY_LALT; +bool Settings::Triggerbot::keyEnabled = false; void Triggerbot::CreateMove(CUserCmd *cmd) { if (!Settings::Triggerbot::enabled) return; - if (!inputSystem->IsButtonDown(Settings::Triggerbot::key)) + if (Settings::Triggerbot::keyEnabled && !inputSystem->IsButtonDown(Settings::Triggerbot::key)) return; C_BasePlayer* localplayer = (C_BasePlayer*) entityList->GetClientEntity(engine->GetLocalPlayer()); From b8867653ace83f0b9ac81c29ce66d3953a0d9a5c Mon Sep 17 00:00:00 2001 From: Nikita Date: Tue, 4 Apr 2017 14:28:54 +0300 Subject: [PATCH 3/3] Add files via upload --- src/settings.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/settings.h b/src/settings.h index fbc06d98f..fe4943ffc 100644 --- a/src/settings.h +++ b/src/settings.h @@ -423,6 +423,7 @@ namespace Settings { extern bool enabled; extern ButtonCode_t key; + extern bool keyEnabled; namespace Filters {