Added title feature status display, few config tweaks, changed default value of offsets to 0 to verify if they have been correctly parsed, added title update on feature changes & Updated gitignore
This commit is contained in:
+1
-1
@@ -5,6 +5,7 @@
|
|||||||
|
|
||||||
# Ignore all the offsets.json files but the one in the folder offsets for the auto updater
|
# Ignore all the offsets.json files but the one in the folder offsets for the auto updater
|
||||||
offsets.json
|
offsets.json
|
||||||
|
config.json
|
||||||
!offsets/offsets.json
|
!offsets/offsets.json
|
||||||
|
|
||||||
# User-specific files
|
# User-specific files
|
||||||
@@ -400,4 +401,3 @@ FodyWeavers.xsd
|
|||||||
|
|
||||||
# JetBrains Rider
|
# JetBrains Rider
|
||||||
*.sln.iml
|
*.sln.iml
|
||||||
/memory-external/config.json
|
|
||||||
|
|||||||
@@ -30,32 +30,32 @@ namespace updater {
|
|||||||
const inline std::string github_repo_api = "https://api.github.com/repos/IMXNOOBX/cs2-external-esp/commits";
|
const inline std::string github_repo_api = "https://api.github.com/repos/IMXNOOBX/cs2-external-esp/commits";
|
||||||
const inline std::string raw_updated_offets = "https://github.com/IMXNOOBX/cs2-external-esp/raw/main/offsets/offsets.json";
|
const inline std::string raw_updated_offets = "https://github.com/IMXNOOBX/cs2-external-esp/raw/main/offsets/offsets.json";
|
||||||
|
|
||||||
inline int build_number = 13964;
|
inline int build_number = 0;
|
||||||
|
|
||||||
namespace offsets {
|
namespace offsets {
|
||||||
inline std::ptrdiff_t dwLocalPlayerController = 0x17E7158;
|
inline std::ptrdiff_t dwLocalPlayerController = 0x0;
|
||||||
inline std::ptrdiff_t dwEntityList = 0x1798738;
|
inline std::ptrdiff_t dwEntityList = 0x0;
|
||||||
inline std::ptrdiff_t dwViewMatrix = 0x1886710;
|
inline std::ptrdiff_t dwViewMatrix = 0x0;
|
||||||
inline std::ptrdiff_t dwBuildNumber = 0x487514;
|
inline std::ptrdiff_t dwBuildNumber = 0x0;
|
||||||
inline std::ptrdiff_t dwPlantedC4 = 0x188CAD0;
|
inline std::ptrdiff_t dwPlantedC4 = 0x0;
|
||||||
|
|
||||||
inline std::ptrdiff_t m_flC4Blow = 0xEB0;
|
inline std::ptrdiff_t m_flC4Blow = 0x0;
|
||||||
inline std::ptrdiff_t m_flNextBeep = 0xEAC;
|
inline std::ptrdiff_t m_flNextBeep = 0x0;
|
||||||
inline std::ptrdiff_t m_flTimerLength = 0xEB8;
|
inline std::ptrdiff_t m_flTimerLength = 0x0;
|
||||||
|
|
||||||
inline std::ptrdiff_t m_pInGameMoneyServices = 0x6D0;
|
inline std::ptrdiff_t m_pInGameMoneyServices = 0x0;
|
||||||
inline std::ptrdiff_t m_iAccount = 0x40;
|
inline std::ptrdiff_t m_iAccount = 0x0;
|
||||||
inline std::ptrdiff_t m_vecAbsOrigin = 0xC8;
|
inline std::ptrdiff_t m_vecAbsOrigin = 0x0;
|
||||||
inline std::ptrdiff_t m_vOldOrigin = 0x1224;
|
inline std::ptrdiff_t m_vOldOrigin = 0x0;
|
||||||
inline std::ptrdiff_t m_pGameSceneNode = 0x310;
|
inline std::ptrdiff_t m_pGameSceneNode = 0x0;
|
||||||
inline std::ptrdiff_t m_flFlashOverlayAlpha = 0x1444;
|
inline std::ptrdiff_t m_flFlashOverlayAlpha = 0x0;
|
||||||
inline std::ptrdiff_t m_bIsDefusing = 0x1390;
|
inline std::ptrdiff_t m_bIsDefusing = 0x0;
|
||||||
inline std::ptrdiff_t m_szName = 0xC18;
|
inline std::ptrdiff_t m_szName = 0x0;
|
||||||
inline std::ptrdiff_t m_pClippingWeapon = 0x1290;
|
inline std::ptrdiff_t m_pClippingWeapon = 0x0;
|
||||||
inline std::ptrdiff_t m_ArmorValue = 0x14F0;
|
inline std::ptrdiff_t m_ArmorValue = 0x0;
|
||||||
inline std::ptrdiff_t m_iHealth = 0x32C;
|
inline std::ptrdiff_t m_iHealth = 0x0;
|
||||||
inline std::ptrdiff_t m_hPlayerPawn = 0x7BC;
|
inline std::ptrdiff_t m_hPlayerPawn = 0x0;
|
||||||
inline std::ptrdiff_t m_sSanitizedPlayerName = 0x720;
|
inline std::ptrdiff_t m_sSanitizedPlayerName = 0x0;
|
||||||
inline std::ptrdiff_t m_iTeamNum = 0x3BF;
|
inline std::ptrdiff_t m_iTeamNum = 0x0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -118,5 +118,7 @@ namespace config {
|
|||||||
std::ofstream output(file_path);
|
std::ofstream output(file_path);
|
||||||
output << std::setw(4) << data << std::endl;
|
output << std::setw(4) << data << std::endl;
|
||||||
output.close();
|
output.close();
|
||||||
|
|
||||||
|
utils.update_console_title();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
|
#include "utils.h"
|
||||||
#include "json.hpp"
|
#include "json.hpp"
|
||||||
#include "auto_updater.hpp"
|
#include "auto_updater.hpp"
|
||||||
|
|
||||||
@@ -16,7 +17,6 @@ struct RGB {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
namespace config {
|
namespace config {
|
||||||
const std::string file_path = "config.json";
|
const std::string file_path = "config.json";
|
||||||
|
|
||||||
@@ -33,9 +33,9 @@ namespace config {
|
|||||||
inline bool show_extra_flags = false;
|
inline bool show_extra_flags = false;
|
||||||
|
|
||||||
inline RGB esp_box_color_team = { 75, 175, 75 };
|
inline RGB esp_box_color_team = { 75, 175, 75 };
|
||||||
inline RGB esp_box_color_enemy = { 175, 75, 75 };
|
inline RGB esp_box_color_enemy = { 225, 75, 75 };
|
||||||
inline RGB esp_skeleton_color_team = { 75, 175, 75 };
|
inline RGB esp_skeleton_color_team = { 75, 175, 75 };
|
||||||
inline RGB esp_skeleton_color_enemy = { 175, 75, 75 };
|
inline RGB esp_skeleton_color_enemy = { 225, 75, 75 };
|
||||||
inline RGB esp_name_color = { 75, 75, 175 };
|
inline RGB esp_name_color = { 75, 75, 175 };
|
||||||
inline RGB esp_distance_color = { 75, 75, 175 };
|
inline RGB esp_distance_color = { 75, 75, 175 };
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,14 @@
|
|||||||
|
#include "utils.h"
|
||||||
|
|
||||||
|
void Utils::update_console_title() {
|
||||||
|
std::string title = "cs2-external-esp";
|
||||||
|
|
||||||
|
config::show_box_esp ? title += " | Box: [O]" : title += " | Box: [X]";
|
||||||
|
config::show_skeleton_esp ? title += " | Skeleton: [O]" : title += " | Skeleton: [X]";
|
||||||
|
config::show_head_tracker ? title += " | Head Tracker: [O]" : title += " | Head Tracker: [X]";
|
||||||
|
config::team_esp ? title += " | Team: [O]" : title += " | Team: [X]";
|
||||||
|
config::automatic_update ? title += " | Auto Update: [O]" : title += " | Auto Update: [X]";
|
||||||
|
config::show_extra_flags ? title += " | Flags: [O]" : title += " | Flags: [X]";
|
||||||
|
|
||||||
|
SetConsoleTitle(title.c_str());
|
||||||
|
}
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
#pragma once
|
||||||
|
#include <windows.h>
|
||||||
|
#include <string>
|
||||||
|
|
||||||
|
#include "config.hpp"
|
||||||
|
|
||||||
|
class Utils {
|
||||||
|
private:
|
||||||
|
public:
|
||||||
|
void update_console_title();
|
||||||
|
};
|
||||||
|
|
||||||
|
inline Utils utils;
|
||||||
@@ -71,6 +71,9 @@ void CGame::loop() {
|
|||||||
|
|
||||||
std::lock_guard<std::mutex> lock(dataMutex);
|
std::lock_guard<std::mutex> lock(dataMutex);
|
||||||
|
|
||||||
|
if (updater::offsets::dwLocalPlayerController == 0x0)
|
||||||
|
throw std::runtime_error("Offsets have not been corretly set, cannot proceed.");
|
||||||
|
|
||||||
inGame = false;
|
inGame = false;
|
||||||
isC4Planted = false;
|
isC4Planted = false;
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <thread>
|
#include <thread>
|
||||||
#include <chrono>
|
#include <chrono>
|
||||||
#include <Windows.h>
|
#include <windows.h>
|
||||||
|
|
||||||
|
#include "classes/utils.h"
|
||||||
#include "memory/memory.hpp"
|
#include "memory/memory.hpp"
|
||||||
#include "classes/vector.hpp"
|
#include "classes/vector.hpp"
|
||||||
#include "hacks/reader.hpp"
|
#include "hacks/reader.hpp"
|
||||||
@@ -73,7 +74,8 @@ void read_thread() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
SetConsoleTitle("cs2-external-esp");
|
utils.update_console_title();
|
||||||
|
|
||||||
std::cout << "[info] Github Repository: https://github.com/IMXNOOBX/cs2-external-esp" << std::endl;
|
std::cout << "[info] Github Repository: https://github.com/IMXNOOBX/cs2-external-esp" << std::endl;
|
||||||
std::cout << "[info] Unknowncheats thread: https://www.unknowncheats.me/forum/counter-strike-2-releases/600259-cs2-external-esp.html\n" << std::endl;
|
std::cout << "[info] Unknowncheats thread: https://www.unknowncheats.me/forum/counter-strike-2-releases/600259-cs2-external-esp.html\n" << std::endl;
|
||||||
|
|
||||||
|
|||||||
@@ -214,6 +214,7 @@
|
|||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ClCompile Include="classes\auto_updater.cpp" />
|
<ClCompile Include="classes\auto_updater.cpp" />
|
||||||
<ClCompile Include="classes\config.cpp" />
|
<ClCompile Include="classes\config.cpp" />
|
||||||
|
<ClCompile Include="classes\utils.cpp" />
|
||||||
<ClCompile Include="main.cpp" />
|
<ClCompile Include="main.cpp" />
|
||||||
<ClCompile Include="memory\memory.cpp" />
|
<ClCompile Include="memory\memory.cpp" />
|
||||||
<ClCompile Include="hacks\reader.cpp" />
|
<ClCompile Include="hacks\reader.cpp" />
|
||||||
@@ -224,6 +225,7 @@
|
|||||||
<ClInclude Include="classes\globals.hpp" />
|
<ClInclude Include="classes\globals.hpp" />
|
||||||
<ClInclude Include="classes\json.hpp" />
|
<ClInclude Include="classes\json.hpp" />
|
||||||
<ClInclude Include="classes\render.hpp" />
|
<ClInclude Include="classes\render.hpp" />
|
||||||
|
<ClInclude Include="classes\utils.h" />
|
||||||
<ClInclude Include="classes\vector.hpp" />
|
<ClInclude Include="classes\vector.hpp" />
|
||||||
<ClInclude Include="hacks\hack.hpp" />
|
<ClInclude Include="hacks\hack.hpp" />
|
||||||
<ClInclude Include="memory\handle_hijack.hpp" />
|
<ClInclude Include="memory\handle_hijack.hpp" />
|
||||||
|
|||||||
@@ -30,6 +30,9 @@
|
|||||||
<ClCompile Include="hacks\reader.cpp">
|
<ClCompile Include="hacks\reader.cpp">
|
||||||
<Filter>Source Files</Filter>
|
<Filter>Source Files</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
<ClCompile Include="classes\utils.cpp">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ClInclude Include="memory\memory.hpp">
|
<ClInclude Include="memory\memory.hpp">
|
||||||
@@ -62,5 +65,8 @@
|
|||||||
<ClInclude Include="hacks\reader.hpp">
|
<ClInclude Include="hacks\reader.hpp">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
|
<ClInclude Include="classes\utils.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
||||||
Reference in New Issue
Block a user