diff --git a/cs2-external-esp.sln b/cs2-external-esp.sln
index e3e80eb..2ce363f 100644
--- a/cs2-external-esp.sln
+++ b/cs2-external-esp.sln
@@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.5.33627.172
MinimumVisualStudioVersion = 10.0.40219.1
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "memory-external", "memory-external\memory-external.vcxproj", "{B87AB66D-73CC-48A1-9D3A-76B2ECBD3A64}"
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "cs2-external-esp", "memory-external\memory-external.vcxproj", "{B87AB66D-73CC-48A1-9D3A-76B2ECBD3A64}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -11,6 +11,8 @@ Global
Debug|x86 = Debug|x86
Release|x64 = Release|x64
Release|x86 = Release|x86
+ Unknowncheats|x64 = Unknowncheats|x64
+ Unknowncheats|x86 = Unknowncheats|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{B87AB66D-73CC-48A1-9D3A-76B2ECBD3A64}.Debug|x64.ActiveCfg = Debug|x64
@@ -21,6 +23,10 @@ Global
{B87AB66D-73CC-48A1-9D3A-76B2ECBD3A64}.Release|x64.Build.0 = Release|x64
{B87AB66D-73CC-48A1-9D3A-76B2ECBD3A64}.Release|x86.ActiveCfg = Release|Win32
{B87AB66D-73CC-48A1-9D3A-76B2ECBD3A64}.Release|x86.Build.0 = Release|Win32
+ {B87AB66D-73CC-48A1-9D3A-76B2ECBD3A64}.Unknowncheats|x64.ActiveCfg = Unknowncheats|x64
+ {B87AB66D-73CC-48A1-9D3A-76B2ECBD3A64}.Unknowncheats|x64.Build.0 = Unknowncheats|x64
+ {B87AB66D-73CC-48A1-9D3A-76B2ECBD3A64}.Unknowncheats|x86.ActiveCfg = Unknowncheats|Win32
+ {B87AB66D-73CC-48A1-9D3A-76B2ECBD3A64}.Unknowncheats|x86.Build.0 = Unknowncheats|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
diff --git a/memory-external/classes/auto_updater.cpp b/memory-external/classes/auto_updater.cpp
index 5bc5402..44a7a75 100644
--- a/memory-external/classes/auto_updater.cpp
+++ b/memory-external/classes/auto_updater.cpp
@@ -2,6 +2,7 @@
namespace updater {
+#ifndef _UC
bool check_and_update(bool automatic_update) {
json commit;
if (!get_last_commit_date(commit)) {
@@ -75,11 +76,6 @@ namespace updater {
return false;
}
- bool file_good(const std::string& name) {
- std::ifstream f(name.c_str());
- return f.good();
- }
-
bool get_last_commit_date(json& commit) {
HINTERNET hInternet, hConnect;
@@ -164,6 +160,12 @@ namespace updater {
return true;
}
+#endif
+
+ bool file_good(const std::string& name) {
+ std::ifstream f(name.c_str());
+ return f.good();
+ }
bool read() {
if (!updater::file_good(file_path)) {
diff --git a/memory-external/classes/auto_updater.hpp b/memory-external/classes/auto_updater.hpp
index 303c85b..87c2538 100644
--- a/memory-external/classes/auto_updater.hpp
+++ b/memory-external/classes/auto_updater.hpp
@@ -17,9 +17,11 @@ namespace fs = std::filesystem;
namespace updater {
const std::string file_path = "offsets.json";
+#ifndef _UC
bool check_and_update(bool prompt_update);
bool get_last_commit_date(json& commit);
bool download_file(const char* url, const char* localPath);
+#endif
bool file_good(const std::string& name);
extern bool read();
@@ -29,14 +31,14 @@ namespace updater {
inline std::string raw_updated_offets = "https://github.com/IMXNOOBX/cs2-external-esp/raw/main/offsets/offsets.json";
namespace offsets {
- inline std::ptrdiff_t dwLocalPlayer = 0x187AC28;
- inline std::ptrdiff_t dwEntityList = 0x178D8C8;
- inline std::ptrdiff_t dwViewMatrix = 0x187B710;
+ inline std::ptrdiff_t dwLocalPlayer = 0x187AC48;
+ inline std::ptrdiff_t dwEntityList = 0x178D8E8;
+ inline std::ptrdiff_t dwViewMatrix = 0x187B730;
inline std::ptrdiff_t dwPawnHealth = 0x808;
inline std::ptrdiff_t dwPlayerPawn = 0x7FC;
inline std::ptrdiff_t dwSanitizedName = 0x720;
- inline std::ptrdiff_t m_iTeamNum = 0x3bf;
- inline std::ptrdiff_t m_vecOrigin = 0x1204;
+ inline std::ptrdiff_t m_iTeamNum = 0x3BF;
+ inline std::ptrdiff_t m_vecOrigin = 0x1214;
}
}
\ No newline at end of file
diff --git a/memory-external/main.cpp b/memory-external/main.cpp
index 82969fa..41fde6f 100644
--- a/memory-external/main.cpp
+++ b/memory-external/main.cpp
@@ -75,7 +75,9 @@ int main() {
else
std::cout << "[updater] Error reading config file, reseting to the default state\n" << std::endl;
+#ifndef _UC
updater::check_and_update(config::automatic_update);
+#endif
std::cout << "[cs2] Waiting for cs2.exe..." << std::endl;
@@ -134,7 +136,11 @@ int main() {
ShowWindow(hWnd, TRUE);
//SetActiveWindow(hack::process->hwnd_);
+#ifndef _UC
std::cout << "\n[settings] In Game keybinds:\n\t[F5] enable/disable Team ESP\n\t[F6] enable/disable automatic updates\n\t[fin] Unload esp.\n" << std::endl;
+#else
+ std::cout << "\n[settings] In Game keybinds:\n\t[F5] enable/disable Team ESP\n\t[fin] Unload esp\n" << std::endl;
+#endif
// Message loop
MSG msg;
@@ -143,7 +149,9 @@ int main() {
if (GetAsyncKeyState(VK_END) & 0x8000) break;
if (GetAsyncKeyState(VK_F5) & 0x8000) { config::team_esp = !config::team_esp; config::save(); Beep(700, 100); };
+#ifndef _UC
if (GetAsyncKeyState(VK_F6) & 0x8000) { config::automatic_update = !config::automatic_update; config::save(); Beep(700, 100); }
+#endif
TranslateMessage(&msg);
DispatchMessage(&msg);
diff --git a/memory-external/memory-external.vcxproj b/memory-external/memory-external.vcxproj
index 43f56aa..9f314e2 100644
--- a/memory-external/memory-external.vcxproj
+++ b/memory-external/memory-external.vcxproj
@@ -17,6 +17,14 @@
Release
x64
+
+ Unknowncheats
+ Win32
+
+
+ Unknowncheats
+ x64
+
16.0
@@ -40,6 +48,13 @@
true
MultiByte
+
+ Application
+ false
+ v143
+ true
+ MultiByte
+
Application
true
@@ -53,6 +68,13 @@
true
MultiByte
+
+ Application
+ false
+ v143
+ true
+ MultiByte
+
@@ -64,16 +86,25 @@
+
+
+
+
+
+
$(ProjectName)-gdi
+
+ $(ProjectName)
+
Level3
@@ -105,6 +136,24 @@
gdiplus.lib;%(AdditionalDependencies)
+
+
+ Level3
+ true
+ true
+ true
+ WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)
+ true
+ stdcpp20
+
+
+ Windows
+ true
+ true
+ true
+ gdiplus.lib;%(AdditionalDependencies)
+
+
Level3
@@ -137,6 +186,24 @@
gdiplus.lib;wininet.lib;%(AdditionalDependencies)
+
+
+ Level3
+ true
+ true
+ true
+ NDEBUG;_UC;_CONSOLE;%(PreprocessorDefinitions)
+ true
+ stdcpp20
+
+
+ Console
+ true
+ true
+ true
+ gdiplus.lib;wininet.lib;%(AdditionalDependencies)
+
+