Skip to content

Commit 0c1789d

Browse files
committed
支持团队模式和个人模式
1 parent e92c150 commit 0c1789d

20 files changed

+6957
-210
lines changed

CS2CheatCpp/CS2CheatCpp.vcxproj

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?xml version="1.0" encoding="utf-8"?>
1+
<?xml version="1.0" encoding="utf-8"?>
22
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33
<ItemGroup Label="ProjectConfigurations">
44
<ProjectConfiguration Include="Debug|Win32">
@@ -168,6 +168,9 @@
168168
<ClInclude Include="dependencies\ImGui\imstb_textedit.h" />
169169
<ClInclude Include="dependencies\ImGui\imstb_truetype.h" />
170170
<ClInclude Include="resource1.h" />
171+
<ClInclude Include="SDK\buttons.hpp" />
172+
<ClInclude Include="SDK\client.dll.hpp" />
173+
<ClInclude Include="SDK\offsets.hpp" />
171174
<ClInclude Include="src\bone.hpp" />
172175
<ClInclude Include="src\entity.h" />
173176
<ClInclude Include="src\gui.h" />

CS2CheatCpp/CS2_Cheat_Log.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
[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.
2+

CS2CheatCpp/RCa00308

2.72 KB
Binary file not shown.

CS2CheatCpp/RCb00308

2.72 KB
Binary file not shown.

CS2CheatCpp/SDK/buttons.hpp

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
// Generated using https://github.com/a2x/cs2-dumper
2+
// 2024-04-17 08:47:21.349682 UTC
3+
4+
#pragma once
5+
6+
#include <cstddef>
7+
8+
namespace cs2_dumper {
9+
// Module: client.dll
10+
namespace buttons {
11+
constexpr std::ptrdiff_t attack = 0x172F060;
12+
constexpr std::ptrdiff_t attack2 = 0x172F0F0;
13+
constexpr std::ptrdiff_t back = 0x172F330;
14+
constexpr std::ptrdiff_t duck = 0x172F600;
15+
constexpr std::ptrdiff_t forward = 0x172F2A0;
16+
constexpr std::ptrdiff_t jump = 0x172F570;
17+
constexpr std::ptrdiff_t left = 0x172F3C0;
18+
constexpr std::ptrdiff_t lookatweapon = 0x192A500;
19+
constexpr std::ptrdiff_t reload = 0x172EFD0;
20+
constexpr std::ptrdiff_t right = 0x172F450;
21+
constexpr std::ptrdiff_t showscores = 0x192A3E0;
22+
constexpr std::ptrdiff_t sprint = 0x172EF40;
23+
constexpr std::ptrdiff_t turnleft = 0x172F180;
24+
constexpr std::ptrdiff_t turnright = 0x172F210;
25+
constexpr std::ptrdiff_t use = 0x172F4E0;
26+
constexpr std::ptrdiff_t zoom = 0x192A470;
27+
}
28+
}

CS2CheatCpp/SDK/client.dll.hpp

Lines changed: 6675 additions & 0 deletions
Large diffs are not rendered by default.

CS2CheatCpp/SDK/offsets.hpp

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
// Generated using https://github.com/a2x/cs2-dumper
2+
// 2024-04-17 08:47:21.349682 UTC
3+
4+
#pragma once
5+
6+
#include <cstddef>
7+
8+
namespace cs2_dumper {
9+
namespace offsets {
10+
// Module: client.dll
11+
namespace client_dll {
12+
constexpr std::ptrdiff_t dwCSGOInput = 0x192A5E0;
13+
constexpr std::ptrdiff_t dwEntityList = 0x18C1DE8;
14+
constexpr std::ptrdiff_t dwGameEntitySystem = 0x19DF790;
15+
constexpr std::ptrdiff_t dwGameEntitySystem_getHighestEntityIndex = 0x1510;
16+
constexpr std::ptrdiff_t dwGameRules = 0x191ECA0;
17+
constexpr std::ptrdiff_t dwGlobalVars = 0x1729BA0;
18+
constexpr std::ptrdiff_t dwGlowManager = 0x191F0C0;
19+
constexpr std::ptrdiff_t dwLocalPlayerController = 0x19115A8;
20+
constexpr std::ptrdiff_t dwLocalPlayerPawn = 0x17361E8;
21+
constexpr std::ptrdiff_t dwPlantedC4 = 0x1927A98;
22+
constexpr std::ptrdiff_t dwPrediction = 0x17360B0;
23+
constexpr std::ptrdiff_t dwSensitivity = 0x191F9E8;
24+
constexpr std::ptrdiff_t dwSensitivity_sensitivity = 0x40;
25+
constexpr std::ptrdiff_t dwViewAngles = 0x192F970;
26+
constexpr std::ptrdiff_t dwViewMatrix = 0x19231E0;
27+
constexpr std::ptrdiff_t dwViewRender = 0x19239E0;
28+
constexpr std::ptrdiff_t dwWeaponC4 = 0x18C5240;
29+
}
30+
// Module: engine2.dll
31+
namespace engine2_dll {
32+
constexpr std::ptrdiff_t dwBuildNumber = 0x515564;
33+
constexpr std::ptrdiff_t dwNetworkGameClient = 0x514AC8;
34+
constexpr std::ptrdiff_t dwNetworkGameClient_deltaTick = 0x258;
35+
constexpr std::ptrdiff_t dwNetworkGameClient_getLocalPlayer = 0xF0;
36+
constexpr std::ptrdiff_t dwNetworkGameClient_getMaxClients = 0x250;
37+
constexpr std::ptrdiff_t dwNetworkGameClient_signOnState = 0x240;
38+
constexpr std::ptrdiff_t dwWindowHeight = 0x5CDD14;
39+
constexpr std::ptrdiff_t dwWindowWidth = 0x5CDD10;
40+
}
41+
// Module: inputsystem.dll
42+
namespace inputsystem_dll {
43+
constexpr std::ptrdiff_t dwInputSystem = 0x367A0;
44+
}
45+
// Module: matchmaking.dll
46+
namespace matchmaking_dll {
47+
constexpr std::ptrdiff_t dwGameTypes = 0x1D21E0;
48+
constexpr std::ptrdiff_t dwGameTypes_mapName = 0x1D2300;
49+
}
50+
}
51+
}

CS2CheatCpp/src/gui.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,8 +273,8 @@ void gui::Render() noexcept
273273
{
274274
ImGui::SeparatorText("Usage Instructions");
275275
ImGui::TextWrapped("To show or hide this menu, press the key on the keyboard");
276-
ImGui::TextColored(ImVec4(1.0f, 0.f, 0.0f, 1.0f), " INSERT key");
277-
ImGui::TextWrapped("Download the zip file and extract it to your computer.Enter the extracted folder, open the CS2 game, join a matchmaking session, and then double - click CS2Cheat.exe to run the program.");
276+
ImGui::TextColored(ImVec4(1.0f, 0.f, 0.0f, 1.0f), " INSERT key.");
277+
ImGui::TextWrapped("Open the CS2 game, join a matchmaking session, and then double - click CS2Cheat.exe to run the program.");
278278

279279
ImGui::SeparatorText("Github Homepage");
280280
ImGui::TextWrapped("https://github.com/yinleiCoder/cs2-cheat-cpp");
@@ -306,6 +306,7 @@ void gui::Render() noexcept
306306

307307
ImGui::Text("Current movement speed: %d", speed);
308308
ImGui::Text("Maximum movement speed: %d", maxSpeed);
309+
ImGui::Checkbox("Team mode", &enableTeamMode);
309310
ImGui::Checkbox("Box perspective", &enableBoxEsp);
310311
ImGui::Checkbox("Bone perspective", &enableBoneEsp);
311312
ImGui::Checkbox("Body glow", &enableBodyGlow);

CS2CheatCpp/src/gui.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,14 @@ namespace gui
1313
inline bool enableBoneEsp = true;// 骨骼透视
1414
inline bool enableBodyGlow = false;// 玩家身体发光
1515
inline bool enableHealth = true;// 玩家血量
16-
inline bool enableAimbot = false;// 自瞄锁头
17-
inline bool enableAutoAttack = false;// 自瞄锁头并开枪
18-
inline bool enableRcs = false; // 后座力补偿
16+
inline bool enableAimbot = true;// 自瞄锁头
17+
inline bool enableAutoAttack = true;// 自瞄锁头并开枪
18+
inline bool enableRcs = true; // 后座力补偿
1919
inline bool enableRadar = false;// 雷达
2020
inline bool enableFlash = true; // 防闪光
2121
inline bool enableBhop = false;// 连跳
2222
inline bool enableWeapon = true; // 显示玩家当前的武器
23+
inline bool enableTeamMode = true; // 团队模式
2324
inline int fov = 0;// 视野角度
2425
inline int speed = 0;// 当前速度
2526
inline int maxSpeed = 0;// 最大速度

0 commit comments

Comments
 (0)