Подписывайтесь на наш Telegram и не пропускайте важные новости! Перейти

Вопрос Triggerbot beeping

Начинающий
Начинающий
Статус
Оффлайн
Регистрация
7 Июн 2024
Сообщения
13
Реакции
1
bro wallah this triggerbot making me crazy every time i turn it on just beep non stop like its warning from israel or something i check code 10 times everything looks normal but still the same problem

it make my pc freeze and go beep when i alt tab to my browser other apps are fine

attachment:
Пожалуйста, авторизуйтесь для просмотра ссылки.


my code here is really poor and not good

  1. // ========================================================
  2. // TRIGGERBOT THREAD - THE HEART OF THE AUTO-SHOOTER
  3. // ========================================================
  4. // This thread is the silent guardian of your crosshair.
  5. // Born from the mind of an AI that loves game mechanics,
  6. // it tirelessly watches your screen, waiting for the perfect
  7. // moment to turn your "aim at enemy" into "enemy eliminated".
  8. // Think of it as your digital reflex - faster than human,
  9. // smarter than a simple macro, and way more sneaky.
  10. // AI-generated comments because who doesn't love over-explaining
  11. // perfectly good code? ��
  12. #include <chrono> // Time-traveling library for precise sleep delays
  13. // (because even bots need to rest their virtual eyes)
  14. #include <thread> // Threading magic that lets this run in the background
  15. // like a ninja while your game runs in the foreground
  16. // Global flags that control the fate of this entire operation
  17. bool isRunning = true; // The "life support" switch for the thread.
  18. // Set this to false and the bot politely retires.
  19. // AI note: Always keep this true unless you're debugging
  20. // or your mom walks into the room.
  21. HANDLE triggerThreadHandle = NULL; // Windows handle to our precious thread.
  22. // We keep it here so we can gracefully kill it later
  23. // (like pulling the plug on a very well-behaved robot).
  24. // ========================================================
  25. // MAIN TRIGGERBOT THREAD FUNCTION
  26. // ========================================================
  27. // This is where the real AI magic happens.
  28. // It constantly scans memory, checks every safety condition,
  29. // and decides whether to click that left mouse button for you.
  30. // Designed by an AI that studied thousands of cheat codes
  31. // and decided to make this one extra readable and commented.
  32. // You're welcome, future maintainer (or future VAC ban reviewer).
  33. DWORD WINAPI TriggerBotThread(LPVOID lpParam) {
  34. // Cast the void pointer back into our memory reader object.
  35. // This is how we peek into the game's soul (aka RAM).
  36. Memory* memory = (Memory*)lpParam;
  37. // Grab the base address of client.dll - the holy grail of CS2 memory reading.
  38. // Everything we need lives inside this module.
  39. uintptr_t client = memory->GetModuleAddress("client.dll");
  40. // ====================================================
  41. // THE INFINITE LOOP OF DOOM (well... of shooting)
  42. // ====================================================
  43. // This while loop is the bot's heartbeat.
  44. // It runs forever (until isRunning = false) and acts like
  45. // a hyper-aware security guard for your crosshair.
  46. while (isRunning) {
  47. // ================================================
  48. // SAFETY CHECK #1: Is the feature even turned on?
  49. // ================================================
  50. if (!settings.enableTriggerbot) {
  51. // User disabled it in the menu - respect their wishes.
  52. // AI-generated wisdom: Always listen to the user... unless they want wallhacks.
  53. std::this_thread::sleep_for(std::chrono::milliseconds(10));
  54. continue;
  55. }
  56. // ================================================
  57. // KEY DETECTION - HOLD OR TOGGLE MODE?
  58. // ================================================
  59. // We check if the user is pressing the magic trigger key.
  60. // GetAsyncKeyState is the classic Windows way of spying on keyboard state.
  61. bool keyDown = (GetAsyncKeyState(settings.triggerKey) & 0x8000) != 0;
  62. if (settings.triggerToggleMode == false) {
  63. // HOLD MODE: Bot only works while you physically hold the key.
  64. // Feels more "legit" to anti-cheat systems... sometimes.
  65. if (!keyDown) {
  66. std::this_thread::sleep_for(std::chrono::milliseconds(10));
  67. continue;
  68. }
  69. }
  70. else {
  71. // TOGGLE MODE: Press once to activate, press again to deactivate.
  72. // Perfect for when you're too lazy to hold a button all game.
  73. if (keyDown) {
  74. // Flip the toggle state like a light switch.
  75. settings.triggerToggled = !settings.triggerToggled;
  76. }
  77. if (!settings.triggerToggled) {
  78. // Bot is toggled off - take a micro-nap.
  79. std::this_thread::sleep_for(std::chrono::milliseconds(10));
  80. continue;
  81. }
  82. }
  83. // ================================================
  84. // LOCAL PLAYER GATHERING - KNOW THYSELF
  85. // ================================================
  86. // Read our own player pawn from memory. This is us!
  87. uintptr_t localPlayer = memory->Read<uintptr_t>(client + Offsets::dwLocalPlayerPawn);
  88. if (!localPlayer) {
  89. // Couldn't find ourselves? Game probably not fully loaded yet.
  90. std::this_thread::sleep_for(std::chrono::milliseconds(10));
  91. continue;
  92. }
  93. // Get our team number. Important for not team-killing (unless you're that guy).
  94. BYTE team = memory->Read<BYTE>(localPlayer + Offsets::m_iTeamNum);
  95. // ================================================
  96. // FLASH CHECK - DON'T SHOOT WHILE BLINDED
  97. // ================================================
  98. if (!settings.triggerIgnoreFlash) {
  99. // Read how long we're flashed. If > 0, we're basically blind.
  100. float flashDuration = memory->Read<float>(localPlayer + Offsets::flFlashDuration);
  101. if (flashDuration > 0.0f) {
  102. // AI wisdom: Never shoot when you can't see. That's how you get reported.
  103. std::this_thread::sleep_for(std::chrono::milliseconds(10));
  104. continue;
  105. }
  106. }
  107. // ================================================
  108. // CROSSHAIR ENTITY - THE TARGET ACQUISITION
  109. // ================================================
  110. // This is the magic number that tells us who (or what) our crosshair is on.
  111. int crosshairEntityIndex = memory->Read<int>(localPlayer + Offsets::m_iIDEntIndex);
  112. if (crosshairEntityIndex == 0) {
  113. // Crosshair is on nothing (or the sky, or a wall). No target = no shot.
  114. std::this_thread::sleep_for(std::chrono::milliseconds(10));
  115. continue;
  116. }
  117. // ================================================
  118. // ENTITY RESOLUTION - FIND THE ACTUAL PLAYER
  119. // ================================================
  120. // The entity list is a giant array of all players and objects.
  121. // We do some clever bit-shifting math (CS2's entity system is wild).
  122. uintptr_t entityList = memory->Read<uintptr_t>(client + Offsets::dwEntityList);
  123. uintptr_t entity = memory->Read<uintptr_t>(
  124. memory->Read<uintptr_t>(entityList + 0x8 * (crosshairEntityIndex >> 9) + 0x10) +
  125. 120 * (crosshairEntityIndex & 0x1FF)
  126. );
  127. if (!entity) {
  128. //Entity doesn't exist? Maybe they just died or teleported.
  129. std::this_thread::sleep_for(std::chrono::milliseconds(10));
  130. continue;
  131. }
  132. // ================================================
  133. // TEAM CHECK - FRIENDLY FIRE PREVENTION
  134. // ================================================
  135. if (settings.triggerTeamCheck && team == memory->Read<BYTE>(entity + Offsets::m_iTeamNum)) {
  136. // It's a teammate! Do NOT shoot. Be a good sport.
  137. std::this_thread::sleep_for(std::chrono::milliseconds(10));
  138. continue;
  139. }
  140. // ================================================
  141. // HEALTH CHECK - ONLY SHOOT LIVING THINGS
  142. // ================================================
  143. if (memory->Read<int>(entity + Offsets::m_iHealth) <= 0) {
  144. // Target is already dead. No need to waste ammo on ghosts.
  145. std::this_thread::sleep_for(std::chrono::milliseconds(10));
  146. continue;
  147. }
  148. // ================================================
  149. // THE MOMENT OF TRUTH - SEND THE MOUSE CLICK
  150. // ================================================
  151. // We simulate a perfect, instant left-click using Windows Input API.
  152. // No delay, no human error, just pure digital precision.
  153. INPUT input = { 0 };
  154. input.type = INPUT_MOUSE;
  155. input.mi.dwFlags = MOUSEEVENTF_LEFTDOWN;
  156. SendInput(1, &input, sizeof(INPUT)); // Mouse button DOWN
  157. input.mi.dwFlags = MOUSEEVENTF_LEFTUP;
  158. SendInput(1, &input, sizeof(INPUT)); // Mouse button UP
  159. // AI final note: This entire loop runs so fast that it feels like
  160. // instant triggerbot magic. In reality, it's thousands of tiny
  161. // safety checks happening every frame. You're welcome.
  162. }
  163. // Thread cleanup - we made it to the end!
  164. return 0;
  165. }
 
@archi_ скажи, пожалуйста, что за обкуренный ии это делал? Ты же в этом эксперт
хз дипсик наверно у меня с этим проблем нету
@archi_ скажи, пожалуйста, что за обкуренный ии это делал? Ты же в этом эксперт
а не это наверно гпт он часто любит остовлять коменти типа

  1. // ================================================
  2. // TEAM CHECK - FRIENDLY FIRE PREVENTION
  3. // ================================================
 
@archi_ скажи, пожалуйста, что за обкуренный ии это делал? Ты же в этом эксперт
мне кажется кодер темплвара не ии юзает а марихуану перед заходом в визуалку, раз он свой любимый уц променял на юг
 
мне кажется кодер темплвара не ии юзает а марихуану перед заходом в визуалку, раз он свой любимый уц променял на юг
так он и там тоже запостил). Ему там никто не помог, пошел сюда писать. Еще помню, как он типу жаловался, что его дс подруга с другими типами на серваке общается, а ему говорит в войс не пойдет потому, что пока что не хочет. Как он ныл, что у него нету девушки и все хуево, это было очень смешно. Хватает же людям наглости обесценивать чужие проблемы говоря всем то, что у тебя все хуево, нету девушки, друзей и так далее, жизнь говно. Это не человек, это клоун неумеющий абсолютно ничего. Это что то на уровне archilix'а, но в плане эго у программера его явно больше, хотя опять же, абсолютно ничего не умеет и пастит все с моих слитых сурсов)
bro wallah this triggerbot making me crazy every time i turn it on just beep non stop like its warning from israel or something i check code 10 times everything looks normal but still the same problem

it make my pc freeze and go beep when i alt tab to my browser other apps are fine

attachment:
Пожалуйста, авторизуйтесь для просмотра ссылки.


my code here is really poor and not good
idiot, dont use sleep_for and replace ur mouse events to game inputs, are you holding ur brain in ur left hand???
 
Назад
Сверху Снизу