Skip to content

Commit

Permalink
update cs2 game offsets
Browse files Browse the repository at this point in the history
  • Loading branch information
yinleiCoder committed May 8, 2024
1 parent e9471f7 commit 12b7147
Show file tree
Hide file tree
Showing 9 changed files with 62 additions and 57 deletions.
5 changes: 3 additions & 2 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
## Changes📣

最近更新于2024年05月03日 15:27
最近更新于2024年05月08日 21:05

- fixed 5月3日cs2官方游戏更新后的offsets同步问题
- fixed 5月8日cs2官方游戏更新后的offsets同步问题
- Todo: 开枪射击的后座力补偿算法

## Features

Expand Down
8 changes: 5 additions & 3 deletions CS2CheatCpp/CS2_Cheat_Log.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
[Tip]: After running this program, please make sure to read the software usage instructions. If it doesn't work, please copy this log file record to the GitHub repository and submit an issue, or directly contact the author via WeChat at yl1099129793. The author has limited capacity and cannot synchronously update CS2 game patch. If urgently needed, you can fork this repository and modify offsets to build with the latest value.
After running this software, please make sure to read the software usage instructions!
If you are stuck in the use of the software, please update the latest offsets value which located sdk folder or submit an issue on Github!
Support me? You can scan the WeiChat pay QR code or concat me yl1099129793. Thank you for your support!

[2024/05/05 15:32:03] cs2.exe's process id located at14268
[2024/05/05 15:32:03] client.dll -> 0x7ffbc4000000
[2024/05/08 21:20:56] cs2.exe's process id located at 7552
[2024/05/08 21:20:56] client.dll -> 0x7ffe8b5d0000
34 changes: 17 additions & 17 deletions CS2CheatCpp/SDK/buttons.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Generated using https://github.com/a2x/cs2-dumper
// 2024-05-03 00:11:19.220511700 UTC
// 2024-05-08 03:42:33.508076800 UTC

#pragma once

Expand All @@ -8,21 +8,21 @@
namespace cs2_dumper {
// Module: client.dll
namespace buttons {
constexpr std::ptrdiff_t attack = 0x1736410;
constexpr std::ptrdiff_t attack2 = 0x17364A0;
constexpr std::ptrdiff_t back = 0x17366E0;
constexpr std::ptrdiff_t duck = 0x17369B0;
constexpr std::ptrdiff_t forward = 0x1736650;
constexpr std::ptrdiff_t jump = 0x1736920;
constexpr std::ptrdiff_t left = 0x1736770;
constexpr std::ptrdiff_t lookatweapon = 0x1932A30;
constexpr std::ptrdiff_t reload = 0x1736380;
constexpr std::ptrdiff_t right = 0x1736800;
constexpr std::ptrdiff_t showscores = 0x1932910;
constexpr std::ptrdiff_t sprint = 0x17362F0;
constexpr std::ptrdiff_t turnleft = 0x1736530;
constexpr std::ptrdiff_t turnright = 0x17365C0;
constexpr std::ptrdiff_t use = 0x1736890;
constexpr std::ptrdiff_t zoom = 0x19329A0;
constexpr std::ptrdiff_t attack = 0x17343D0;
constexpr std::ptrdiff_t attack2 = 0x1734460;
constexpr std::ptrdiff_t back = 0x17346A0;
constexpr std::ptrdiff_t duck = 0x1734970;
constexpr std::ptrdiff_t forward = 0x1734610;
constexpr std::ptrdiff_t jump = 0x17348E0;
constexpr std::ptrdiff_t left = 0x1734730;
constexpr std::ptrdiff_t lookatweapon = 0x1930B50;
constexpr std::ptrdiff_t reload = 0x1734340;
constexpr std::ptrdiff_t right = 0x17347C0;
constexpr std::ptrdiff_t showscores = 0x1930A30;
constexpr std::ptrdiff_t sprint = 0x17342B0;
constexpr std::ptrdiff_t turnleft = 0x17344F0;
constexpr std::ptrdiff_t turnright = 0x1734580;
constexpr std::ptrdiff_t use = 0x1734850;
constexpr std::ptrdiff_t zoom = 0x1930AC0;
}
}
2 changes: 1 addition & 1 deletion CS2CheatCpp/SDK/client.dll.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Generated using https://github.com/a2x/cs2-dumper
// 2024-05-03 00:11:19.220511700 UTC
// 2024-05-08 03:42:33.508076800 UTC

#pragma once

Expand Down
44 changes: 22 additions & 22 deletions CS2CheatCpp/SDK/offsets.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Generated using https://github.com/a2x/cs2-dumper
// 2024-05-03 14:01:03.443608 UTC
// 2024-05-08 03:42:33.508076800 UTC

#pragma once

Expand All @@ -9,36 +9,36 @@ namespace cs2_dumper {
namespace offsets {
// Module: client.dll
namespace client_dll {
constexpr std::ptrdiff_t dwCSGOInput = 0x1932B10;
constexpr std::ptrdiff_t dwEntityList = 0x18C9E78;
constexpr std::ptrdiff_t dwGameEntitySystem = 0x19E75C0;
constexpr std::ptrdiff_t dwCSGOInput = 0x1930C30;
constexpr std::ptrdiff_t dwEntityList = 0x18C7F88;
constexpr std::ptrdiff_t dwGameEntitySystem = 0x19E56E0;
constexpr std::ptrdiff_t dwGameEntitySystem_getHighestEntityIndex = 0x1510;
constexpr std::ptrdiff_t dwGameRules = 0x1926DD0;
constexpr std::ptrdiff_t dwGlobalVars = 0x1730F20;
constexpr std::ptrdiff_t dwGlowManager = 0x19271F0;
constexpr std::ptrdiff_t dwLocalPlayerController = 0x1919588;
constexpr std::ptrdiff_t dwLocalPlayerPawn = 0x173D5A8;
constexpr std::ptrdiff_t dwPlantedC4 = 0x192FFB8;
constexpr std::ptrdiff_t dwPrediction = 0x173D470;
constexpr std::ptrdiff_t dwSensitivity = 0x1927B18;
constexpr std::ptrdiff_t dwGameRules = 0x1924EE0;
constexpr std::ptrdiff_t dwGlobalVars = 0x172EEE0;
constexpr std::ptrdiff_t dwGlowManager = 0x1925300;
constexpr std::ptrdiff_t dwLocalPlayerController = 0x1917698;
constexpr std::ptrdiff_t dwLocalPlayerPawn = 0x173B568;
constexpr std::ptrdiff_t dwPlantedC4 = 0x192E0D8;
constexpr std::ptrdiff_t dwPrediction = 0x173B430;
constexpr std::ptrdiff_t dwSensitivity = 0x1925C28;
constexpr std::ptrdiff_t dwSensitivity_sensitivity = 0x40;
constexpr std::ptrdiff_t dwViewAngles = 0x1937EA0;
constexpr std::ptrdiff_t dwViewMatrix = 0x192B310;
constexpr std::ptrdiff_t dwViewRender = 0x192BB10;
constexpr std::ptrdiff_t dwWeaponC4 = 0x18CD2D0;
constexpr std::ptrdiff_t dwViewAngles = 0x1935FC0;
constexpr std::ptrdiff_t dwViewMatrix = 0x1929420;
constexpr std::ptrdiff_t dwViewRender = 0x1929C20;
constexpr std::ptrdiff_t dwWeaponC4 = 0x18CB3E0;
}
// Module: engine2.dll
namespace engine2_dll {
constexpr std::ptrdiff_t dwBuildNumber = 0x518764;
constexpr std::ptrdiff_t dwEngineViewData = 0x5CD76C;
constexpr std::ptrdiff_t dwNetworkGameClient = 0x517B08;
constexpr std::ptrdiff_t dwBuildNumber = 0x516734;
constexpr std::ptrdiff_t dwEngineViewData = 0x5CB8CC;
constexpr std::ptrdiff_t dwNetworkGameClient = 0x515AD8;
constexpr std::ptrdiff_t dwNetworkGameClient_deltaTick = 0x258;
constexpr std::ptrdiff_t dwNetworkGameClient_getLocalPlayer = 0xF0;
constexpr std::ptrdiff_t dwNetworkGameClient_getMaxClients = 0x250;
constexpr std::ptrdiff_t dwNetworkGameClient_signOnState = 0x240;
constexpr std::ptrdiff_t dwSoundService = 0x5CD6D0;
constexpr std::ptrdiff_t dwWindowHeight = 0x5D109C;
constexpr std::ptrdiff_t dwWindowWidth = 0x5D1098;
constexpr std::ptrdiff_t dwSoundService = 0x5CB830;
constexpr std::ptrdiff_t dwWindowHeight = 0x5CF1FC;
constexpr std::ptrdiff_t dwWindowWidth = 0x5CF1F8;
}
// Module: inputsystem.dll
namespace inputsystem_dll {
Expand Down
2 changes: 1 addition & 1 deletion CS2CheatCpp/imgui.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Pos=60,60
Size=296,50

[Window][CS2 ESP Cheat]
Pos=547,160
Pos=280,284
Size=712,545

[Window][CS2]
Expand Down
1 change: 1 addition & 0 deletions CS2CheatCpp/src/gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ void gui::Render() noexcept
ImGui::Begin("watermark", 0, ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoTitleBar);
ImGui::Text("yinlei | %s", std::ctime(&end_time));
ImGui::End();

if (menuToggle) {
// 更新当前玩家最大速度
if (speed > maxSpeed) {
Expand Down
15 changes: 5 additions & 10 deletions CS2CheatCpp/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,14 @@

using namespace cs2_dumper;

struct C_UTL_VECTOR
{
DWORD_PTR count = 0;
DWORD_PTR data = 0;
};


INT APIENTRY WinMain(HINSTANCE instance, HINSTANCE, PSTR, INT cmd_show)
{
std::string logFileName = "CS2_Cheat_Log.txt";
std::string logFileName = "cs2_cheat_log.txt";
std::ofstream fout(logFileName);
fout.seekp(std::ios::beg);
fout << "[Tip]: After running this program, please make sure to read the software usage instructions. If it doesn't work, please copy this log file record to the GitHub repository and submit an issue, or directly contact the author via WeChat at yl1099129793. The author has limited capacity and cannot synchronously update CS2 game patch. If urgently needed, you can fork this repository and modify offsets to build with the latest value." << std::endl;
fout << "After running this software, please make sure to read the software usage instructions!" << std::endl;
fout << "If you are stuck in the use of the software, please update the latest offsets value which located sdk folder or submit an issue on Github!" << std::endl;
fout << "Support me? You can scan the WeiChat pay QR code or concat me yl1099129793. Thank you for your support!" << std::endl;
fout << std::endl;

auto mem = Memory("cs2.exe");
Expand All @@ -50,7 +45,7 @@ INT APIENTRY WinMain(HINSTANCE instance, HINSTANCE, PSTR, INT cmd_show)
}
else
{
fout << "[" << ss.str() << "] " << "cs2.exe's process id located at" << mem.GetProcessId() << std::endl;
fout << "[" << ss.str() << "] " << "cs2.exe's process id located at " << mem.GetProcessId() << std::endl;
}

const auto client = mem.GetModuleAddress("client.dll");
Expand Down
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

This is a `CS2 ESP cheat` software written in C++.

> Latest Update:2024.05.03 15:27
> Latest Update:2024.05.08 21:05
![esp](./external.png)

Expand All @@ -22,6 +22,12 @@ This is a `CS2 ESP cheat` software written in C++.

## Download

```
必看:如果您下载了软件运行后却没有效果,请务必安装Microsoft DirectX 11,且大多数原因是因为Offsets过时了。作者目前没有时间和精力同步更新cs2游戏的offsets,您可以选择自行构建,或者等待作者空余时间编写自动化脚本及时同步构建。
若自行本地构建,请修改sdk文件夹下的offsets.hpp、client.dll.hpp、buttons.hpp。这3个文件的链接我已经贴到了下面的Build章节,请自行动手,
目前作者随缘不及时更新维护,但一定会在每次游戏更新后不久内更新。重点将放在Internal、Knernal Driver以及和平精英手游的作弊软件开发,敬请期待,感谢您的支持!
```

See [Releases page](https://github.com/yinleiCoder/cs2-cheat-cpp/releases) for decorated Changelogs. Reading the changelogs is a good way to keep up to date with the things `CS2CheatCPP` has to offer, and maybe will give you ideas of some features that you've been ignoring until now!

## Usage
Expand Down

0 comments on commit 12b7147

Please sign in to comment.