Introduction
Triggerbot for Counter-Strike Global Offensive. Here I am going to show you the basics of making a mini-cheat for csgo. Just a simple triggerbot. Install Visual Studio or some other good editor.
WARNING!
Do not use it to cheat in csgo! It will get you instantly banned! This tutorial is for educational purposes*
1. Setup
To make a triggerbot first you have to install and use ProcMem.
First, create your main.cpp
file and add ProcMem.cpp
, ProcMem.h
from the downloaded .rar file. You do this in Visual Studio by right clicking source files -> Add -> Existing item and choosing ProcMem.cpp
. Then you do exactly the same but in Header Files with ProcMem.h
.
Next we need to initialize ProcMem in our main file (main.cpp
) so we can use functions in it. Easy, huh?
That’s how it looks like in code:
#include "ProcMem.h" // Reads memory ProcMem Mem; // That's the shortcut
But to actually read our proccess’s memory (csgo
) we have to choose a process
Mem.Process("csgo.exe"); // Chooses our process
After we did it we can read memory from it but reading more advanced things like PlayerBase
we need to get the client.dll
DWORD ClientDLL = Mem.Module("client.dll"); // Creates a module we are reading memory from
Now the most boring part, which is offsets of our crosshair and other things like health blah blah…
Has to be updated when csgo updates. I was making this triggerbot with the CS Warzone version, so change the offsets. Just google it
// HAS to be updated when counter strike is updated. const DWORD playerBase = 0xA68A14; const DWORD entityBase = 0x4A0B0C4; const DWORD crosshairOffset = 0x23F8; // Doesn't require updating const DWORD teamOffset = 0xF0; const DWORD healthOffset = 0xFC; const DWORD EntLoopDist = 0x10;
2. Making a Triggerbot
So now we to have get information about yourself. You are the LocalPlayer. To get information about LocalPlayer we have to read client.dll
. client.dll
has most information about us and our enemies/teammates.
// As i said, LocalPlayer (You) DWORD LocalPlayer = Mem.Read<DWORD>(ClientDLL + PlayerBase); // That is our teammates int LocalTeam = Mem.Read<int>(LocalPlayer + teamOffset); // That's our crosshair ID, we will use it for reading what's "in our crosshair" int CrossHairID = Mem.Read<int>(LocalPlayer + CrosshairOffset);
After that we have to create a Triggerbot function. I will make it shorter and just name it Bot. We have to read memory which is required to make the triggerbot work
void Bot() { DWORD EnemyInCH = Mem.Read<DWORD>(ClientDLL + EntityBase + ((CrossHairID - 1) * EntLoopDist)); // CH is just crosshair btw int EnemyHealth = Mem.Read<int>(EnemyInCH + healthOffset); // Enemy in our crosshair int EnemyTeam = Mem.Read<int>(EnemyInCH + teamOffset); // Enemy in crosshair's team, we need it to distinguish are we aiming at the enemy or the teammate does. Logic. }
Now for the if
s. To don’t make it shoot at our «friends» here is the first one
if (LocalTeam != EnemyTeam) { // left click or just shoot lol }
But notice that our triggerbot is gonna shoot death bodies/enemies with 0 health. Here is how we can do it. We are just gonna check is EnemyHealth higher than 0 if is then shoot. We will get to the shooting later.
if (EnemyHealth > 0) { // left click or just shoot lol }
For the gods of c++ we will make the code «prettier»
if (LocalTeam != EnemyTeam && EnemyHealth > 0) { // shoot }
That’s almost everything. BUT WAIT! It does not shoot! Because it’s only memory reading triggerbot. Now we are gonna make it click/shoot instead of forcing it through writing memory. We will be using mouse_event
. Check mouse_event on MSDN and just try to get it. I get it after watching a tutorial. But anyways, there is the full code. NOTE If you do not understand something go back and try again.
void Bot() { DWORD EnemyInCH = Mem.Read<DWORD>(ClientDLL + EntityBase + ((CrossHairID - 1) * EntLoopDist)); int EnemyHealth = Mem.Read<int>(EnemyInCH + healthOffset); int EnemyTeam = Mem.Read<int>(EnemyInCH + teamOffset); if (LocalTeam != EnemyTeam && EnemyHealth > 0) { // Add a little delay yourself by Sleep() mouse_event(MOUSEEVENTF_LEFTDOWN, NULL, NULL, NULL, NULL); // You can use Sleep() here too, that line is made for autos like ak47. Not useful with pistol mouse_event(MOUSEEVENTF_LEFTUP, NULL, NULL, NULL, NULL); // Now you can make a cooldown beetween shots using Sleep() again. }
Now our final part, just add the triggerbot to your main in a loop
int main() { while(true) { Bot(); // Add a Sleep() here if you want some optimization } }
#1
ShockByte
-
- Пользователи
-
- 4 сообщений
- 4 тем
Новобранец
Отправлено 06 октября 2016 — 20:10
Добрейший вечерочек!)
Решил вам рассказать как сделать простейший Trigger Bot для CS GO.
Для тех кто не в курсах данный чит будет за вас стрелять, как только вы наведетесь на противника. Писать чит мы будем на C#.
Вот видео, тут все подробнейшим образом объяснено!
И вот тут вам псевдокод:
Ну и для тех, кому лень что либо писать, то вот вам супер сорс:
p.s
Если чит не работает, то обновите смещения (ссылка на дампер в описании к видео)
Понравился чит? Ставь
Пожалуйста Войдите или Зарегистрируйтесь чтобы увидеть скрытый текст
)
СКАЧАТЬ
Сообщение отредактировал Рerfect: 06 октября 2016 — 21:59
Красный текст запрещён!
-
3
Жизнь слишком коротка, что бы её тратить на честную игру
- Наверх
#2
Рerfect
Отправлено 06 октября 2016 — 21:45
Не писать больше красным текстом!
-
2
- Наверх
-
sens:=2
-
delz:=0
-
holdtiem:=600
-
crossset:=2
-
;color split
-
SplitRGBColor(RGBColor, ByRef Red, ByRef Green, ByRef Blue)
-
{
-
Red := RGBColor >> 16 & 0xFF
-
Green := RGBColor >> 8 & 0xFF
-
Blue := RGBColor & 0xFF
-
}
-
SplitBGRColor(BGRColor, ByRef Red, ByRef Green, ByRef Blue)
-
{
-
Red := BGRColor & 0xFF
-
Green := BGRColor >> 8 & 0xFF
-
Blue := BGRColor >> 16 & 0xFF
-
}
-
;Menu loop
-
loop
-
{
-
GetKeyState, state, F10
-
if state = D
-
{
-
SoundPlay, %A_ScriptDir%8.mp3
-
sleep 2000
-
ExitApp
-
}
-
GetKeyState, state, F11
-
if state = D
-
{
-
trigger:=false
-
}
-
GetKeyState, state, Insert
-
if state = D
-
{
-
trigger:=true
-
}
-
;Beta trigger
-
if !GetKeyState(«LShift») && trigger==true
-
{
-
sleep 50
-
MouseGetPos, oneX, oneY
-
PixelGetColor, colorone, oneX+crossset, oneY+crossset
-
SplitRGBColor(colorone, oneRed, oneGreen, oneBlue)
-
}
-
if GetKeyState(«LShift») && trigger==true
-
{
-
sleep 1
-
MouseGetPos, twoX, twoY
-
PixelGetColor, colortwo, twoX+crossset, twoY+crossset
-
SplitRGBColor(colortwo, twoRed, twoGreen, twoBlue)
-
if (((oneRed-sens)<=twoRed) && ((oneRed+sens)<=twoRed)) or (((oneRed-sens)>=twoRed) && ((oneRed+sens)>=twoRed)) or (((oneGreen-sens)<=twoGreen) && ((oneGreen+sens)<=twoGreen)) or (((oneGreen-sens)>=twoGreen) && ((oneGreen+sens)>=twoGreen)) or (((oneBlue-sens)<=twoBlue) && ((oneBlue+sens)<=twoBlue)) or (((oneBlue-sens)>=twoBlue) && ((oneBlue+sens)>=twoBlue))
-
{
-
sleep delz
-
DllCall(«mouse_event», uint, 2, int, 0, int, 0, uint, 0, int, 0)
-
sleep holdtiem
-
DllCall(«mouse_event», uint, 4, int, 0, int, 0, uint, 0, int, 0)
-
}
-
}
-
}
|
Authenticator Code |
Thread Tools |
C++ Simple arduino triggerbot [source included] |
|
#1 |
|||||||||||
nbq Lazy bastard Join Date: Jul 2016 Location: Croatia
Reputation: 9450 Recognitions (1) Points: 15,022, Level: 16 Level up: 2%, 1,378 Points needed Activity: 5.0% Last Achievements |
C++ Simple arduino triggerbot [source included] Using arduino mouse input instead of writing memory or mouse_event(). Source: |
|||||||||||
nbq is offline |
|
#2 |
|||||||||||
RustIs h4x0!2 Join Date: Aug 2014
Reputation: 443 Points: 7,975, Level: 10 Level up: 35%, 725 Points needed Activity: 2.0% Last Achievements |
Pretty cool |
|||||||||||
RustIs is offline |
|
|
#3 |
|||||||||||
NotATrap Master Contributor Join Date: May 2019 Location: Right there, see it?
Reputation: 12970 Points: 19,698, Level: 19 Level up: 27%, 1,102 Points needed Activity: 2.2% Last Achievements |
cool idea but seems a bit stupid if you’re using this to be «undetected» ig: ReadProcessMemory, WriteProcessMemory, __________________
|
|||||||||||
NotATrap is offline |
|
#4 |
|||||||||||
nbq Lazy bastard
Join Date: Jul 2016 Location: Croatia
Reputation: 9450 Recognitions (1) Points: 15,022, Level: 16 Level up: 2%, 1,378 Points needed Activity: 5.0% Last Achievements |
Quote:
Originally Posted by NotATrap cool idea but seems a bit stupid if you’re using this to be «undetected» ig: ReadProcessMemory, WriteProcessMemory, i dont recall saying its undetected haha |
|||||||||||
nbq is offline |
|
#5 |
|||||||||||
LPmajner 1337 H4x0!2 Join Date: May 2014 Location: Czech Republic
Reputation: 947 Recognitions (1) Points: 7,003, Level: 9 Level up: 46%, 597 Points needed Activity: 15.6% Last Achievements |
dope //2short |
|||||||||||
LPmajner is offline |
|
#6 |
|||||||||||
NotATrap Master Contributor Join Date: May 2019 Location: Right there, see it?
Reputation: 12970 Points: 19,698, Level: 19 Level up: 27%, 1,102 Points needed Activity: 2.2% Last Achievements |
Quote:
Originally Posted by nbq i dont recall saying its undetected haha if () __________________
|
|||||||||||
NotATrap is offline |
|
#7 |
|||||||||||
themrpejs [x d] Join Date: Aug 2012 Location: Poland
Reputation: 1956 Points: 12,492, Level: 14 Level up: 15%, 1,108 Points needed Activity: 2.0% Last Achievements |
Well Code: my_cross > 0 && my_cross < 64 Shouldn’t be Code: my_cross >= 1 && my_cross <= 64 ? __________________ No no no |
|||||||||||
themrpejs is offline |
|
#8 |
|||||||||||
nbq Lazy bastard
Join Date: Jul 2016 Location: Croatia
Reputation: 9450 Recognitions (1) Points: 15,022, Level: 16 Level up: 2%, 1,378 Points needed Activity: 5.0% Last Achievements |
Quote:
Originally Posted by themrpejs Well Code: my_cross > 0 && my_cross < 64 Shouldn’t be Code: my_cross >= 1 && my_cross <= 64 ? oversight on my part.. this was done in a rush |
|||||||||||
nbq is offline |
|
#9 |
|||||||||||
obscxrxd overclocked PCI-E frequency to improve DMA performance Join Date: Jan 2019 Location: fucking college
Reputation: 8601 Points: 14,981, Level: 15 Level up: 99%, 19 Points needed Activity: 5.6% Last Achievements |
Educational for beginners, good job |
|||||||||||
obscxrxd is offline |
|
#10 |
|||||||||||
epicempty UC Supporter Join Date: Nov 2019 Location: Germany
Reputation: 9103 Points: 12,939, Level: 14 Level up: 50%, 661 Points needed Activity: 2.4% Last Achievements |
Quote:
Originally Posted by obscxrxd Educational for beginners, good job Quote: A tutorial, in education, is a method of transferring knowledge and may be used as a part of a learning process. More interactive and specific than a book or a lecture, a tutorial seeks to teach by example and supply the information to complete a certain task. Source: https://en.wikipedia.org/wiki/Tutorial i dont know what you are talking about but this is not educational, especially for beginners. this is just like any other «tutorial» that just says: do this and that without further explaining why, with that being said this doesn’t help anyone at all. if you don’t believe me imagine yourself being a guy who recently got into coding and watches this to try and gather information on what he needs to do, you watch the video and you see this madlad speedrunning some random code you will end up pasting without understanding what it does. edit: i dont want to make it sound like i dont appreciate the op’s efforts, good job and nice try on trying to teach others even if it was not that great. if you want to make more tutorials you should take my critisicm and explain things further on what you need to do and why you need to do it, because tutorials exist to make others understand about the subject you are focusing on. __________________ Everyone reading this, have a great day
|
|||||||||||
epicempty is offline |
|
#11 |
|||||||||||
nbq Lazy bastard
Join Date: Jul 2016 Location: Croatia
Reputation: 9450 Recognitions (1) Points: 15,022, Level: 16 Level up: 2%, 1,378 Points needed Activity: 5.0% Last Achievements |
Quote:
Originally Posted by epicempty Source: https://en.wikipedia.org/wiki/Tutorial i dont know what you are talking about but this is not educational, especially for beginners. this is just like any other «tutorial» that just says: do this and that without further explaining why, with that being said this doesn’t help anyone at all. if you don’t believe me imagine yourself being a guy who recently got into coding and watches this to try and gather information on what he needs to do, you watch the video and you see this madlad speedrunning some random code you will end up pasting without understanding what it does. edit: i dont want to make it sound like i dont appreciate the op’s efforts, good job and nice try on trying to teach others even if it was not that great. if you want to make more tutorials you should take my critisicm and explain things further on what you need to do and why you need to do it, because tutorials exist to make others understand about the subject you are focusing on. Appreciate your input. I understand it might be confusing for beginners, but this wasnt really meant for beginners now, was it? __________________ rule 7. | discord @ nbq#7049 |
|||||||||||
nbq is offline |
|
#12 |
|||||||||||
epicempty UC Supporter Join Date: Nov 2019 Location: Germany
Reputation: 9103 Points: 12,939, Level: 14 Level up: 50%, 661 Points needed Activity: 2.4% Last Achievements |
Quote:
Originally Posted by nbq Appreciate your input. I understand it might be confusing for beginners, but this wasnt really meant for beginners now, was it? I’m sorry, i was influenced by the guy i quoted nonetheless i think my statements were pretty valid since its not like advanced people would need this unless they have just gotten to game hacking. also, helping beginners even if its an advanced tutorial isnt so bad, is it? i personally (own opinion) dont get people that do advanced or beginner tutorials, just do 1 tutorial where it starts from beginner level to medium, to advanced. easier, better, more understandable. __________________ Everyone reading this, have a great day |
|||||||||||
epicempty is offline |
|
#13 |
|||||||||||
nbq Lazy bastard
Join Date: Jul 2016 Location: Croatia
Reputation: 9450 Recognitions (1) Points: 15,022, Level: 16 Level up: 2%, 1,378 Points needed Activity: 5.0% Last Achievements |
Quote:
Originally Posted by epicempty I’m sorry, i was influenced by the guy i quoted nonetheless i think my statements were pretty valid since its not like advanced people would need this unless they have just gotten to game hacking. also, helping beginners even if its an advanced tutorial isnt so bad, is it? i personally (own opinion) dont get people that do advanced or beginner tutorials, just do 1 tutorial where it starts from beginner level to medium, to advanced. easier, better, more understandable. point taken man __________________ rule 7. | discord @ nbq#7049 |
|||||||||||
nbq is offline |
|
#14 |
|||||||||||
felixskrt n00bie Join Date: Aug 2020
Reputation: 111 Points: 609, Level: 1 Level up: 42%, 291 Points needed Activity: 1.7% |
nice release! |
|||||||||||
felixskrt is offline |
Similar Threads |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Release] Basic C++ Teensy 3.6/Arduino Triggerbot | bzm | CS:GO Releases | 9 | 17th October 2018 03:24 PM |
[Source] [Arduino / CSharp] Simple Serial communication protocol | Zat | C and C++ | 4 | 25th August 2016 06:16 AM |
[Release] BF 1942 Hax Project (Full Source Included) | Lox0n | Battlefield 1942 | 5 | 19th November 2012 03:47 PM |
Injected Script Executer + Bypass (Source included) | Gin123 | ARMA 2 | 205 | 11th August 2012 04:58 AM |
[Help] Crossfire DIP ( Full Source Included ) | apin | Direct3D | 5 | 20th May 2012 07:52 AM |
Tags |
arduino, [tutorial], source, c++, memory, writing, input, mouse, included], [source |
«
Previous Thread
|
Next Thread
»
Forum Jump |
All times are GMT. The time now is 07:53 AM.
Contact Us —
Toggle Dark Theme
Terms of Use Information Privacy Policy Information
Copyright ©2000-2023, Unknowncheats� UKCS #312436
no new posts
БЕСПЛАТНЫЙ ЧИТ ДЛЯ КСГО! / СКАЧАТЬ БЕСПЛАТНО ТРИГГЕР НА CS:GO / TRIGGERBOT / 2021Подробнее
🔥ТРИГГЕР БОТ СКРИПТ для КСГО | CSGO AUTO HOTKEY | TRIGGERBOT🔥Подробнее
CS GO ПРИВАТ ЧИТ БЕСПЛАТНО АИМ ВХ TRIGGER BOT ЧИТ НА КС ГО БЕЗ VAC БАНА ОБНОВА НПодробнее
САМЫЙ НОВЫЙ БЕСПЛАТНЫЙ ЧИТ ДЛЯ CS GO🔥EXTREMALHACK¦ КОНКУРЕНТ EXTRIMHACK ¦ Triggerbot ⁄bunnyhop ⁄WHПодробнее
ЧИТ ДЛЯ CS:GO БЕСПЛАТНО | ExtrimHack | AIM ESP TRIGGER-BOT| БЕЗ БАНАПодробнее
ЧИТ ДЛЯ КС ГО! ESP/WH/TRIGGER-BOT (БЕЗ БАНА) 2017Подробнее
ЧИТ ДЛЯ CS:GO! ESP/WH/TRIGGER-BOT [100% НЕ БАНИТСЯ!]Подробнее
Чит для CS GO Triggerbot, Aim Private updated 20 07 2016Подробнее
Чит для CS GO Hack CS GO Aimbot, glowESP, TriggerBot, NoRecoil 1Подробнее
CS GO Чит Aim ESP TriggerBot После ОбновыПодробнее