Updated esp notice
This commit is contained in:
@@ -6,9 +6,9 @@ namespace config {
|
||||
extern bool read();
|
||||
extern void save();
|
||||
|
||||
inline std::ptrdiff_t dwLocalPlayer = 0x1715418;
|
||||
inline std::ptrdiff_t dwEntityList = 0x1624C78;
|
||||
inline std::ptrdiff_t dwViewMatrix = 0x01715dc0;
|
||||
inline std::ptrdiff_t dwLocalPlayer = 0x1714358;
|
||||
inline std::ptrdiff_t dwEntityList = 0x1623bb8;
|
||||
inline std::ptrdiff_t dwViewMatrix = 0x1714d00;
|
||||
|
||||
inline std::ptrdiff_t dwPawnHealth = 0x808;
|
||||
inline std::ptrdiff_t dwPlayerPawn = 0x5dc;
|
||||
|
||||
@@ -5,7 +5,5 @@ namespace g {
|
||||
inline HDC hdcBuffer = NULL;
|
||||
inline HBITMAP hbmBuffer = NULL;
|
||||
|
||||
bool outdated_offsets = false;
|
||||
|
||||
RECT gameBounds;
|
||||
}
|
||||
|
||||
@@ -73,13 +73,15 @@ int main() {
|
||||
|
||||
std::cout << "[cs2] Attached to cs2.exe" << std::endl;
|
||||
|
||||
std::cout << "[warn] If the esp doesnt work, consider updating offsets manually in the file offsets.json" << std::endl;
|
||||
std::cout << "[warn] You can find the latest offsets by the comunity in: https://www.unknowncheats.me/forum/counter-strike-2-a/576077-counter-strike-2-reversal-structs-offsets.html" << std::endl;
|
||||
|
||||
std::cout << "[config] Reading offsets from configuration." << std::endl;
|
||||
if (config::read())
|
||||
std::cout << "[config] Sucessfully read offsets file" << std::endl;
|
||||
else
|
||||
std::cout << "[config] Error reading offsets file, reseting to the default state" << std::endl;
|
||||
|
||||
|
||||
do {
|
||||
hack::base_module = hack::process->GetModule("client.dll");
|
||||
if (hack::base_module.base == 0) {
|
||||
@@ -125,17 +127,10 @@ int main() {
|
||||
MSG msg;
|
||||
while (GetMessage(&msg, NULL, 0, 0))
|
||||
{
|
||||
TranslateMessage(&msg);
|
||||
DispatchMessage(&msg);
|
||||
|
||||
if (GetAsyncKeyState(VK_END) & 0x8000) break;
|
||||
|
||||
if (g::outdated_offsets) {
|
||||
std::cout << "[cs2] EntityList was null. this might be because cs2 has been updated" << std::endl;
|
||||
std::cout << "[cs2] Consider updating offsets manually in the file offsets.json" << std::endl;
|
||||
std::cout << "[cs2] You can find the latest offsets by the comunity in: https://www.unknowncheats.me/forum/counter-strike-2-a/576077-counter-strike-2-reversal-structs-offsets.html" << std::endl;
|
||||
break;
|
||||
}
|
||||
TranslateMessage(&msg);
|
||||
DispatchMessage(&msg);
|
||||
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(1));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user