GithubHelp home page GithubHelp logo

h33p / m0dular-csgo Goto Github PK

View Code? Open in Web Editor NEW
56.0 4.0 13.0 500 KB

A performance optimized CSGO HvH hack

License: GNU General Public License v2.0

C++ 14.49% C 79.48% Meson 3.64% Shell 0.94% Python 1.45%

m0dular-csgo's People

Contributors

h33p avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

m0dular-csgo's Issues

Nightmode

Implement night mode with custom lamp lighting. A good lead is CModelRender in l_studio as well as lightcache.

Instructions for Injection on Linux

Hi there, glad to see you updated this recently, I am struggling to inject on Linux.

I have tried LD_PRELOAD and a gdb injector script.

I am not sure what is meant by streaming to loader.

Thanks.

can't build

vega@pop-os:~/m0dular-csgo$ meson build --buildtype=<release|debug>
bash: syntax error near unexpected token `newline'

How do I fix this?

Animfix improvements

Currently player legs heavily desync when starting to accelerate. This has to be fixed. Also, check synchronization performance in aim_botz when predicting the ON_GROUND flag. Another issue is origin desync of 1 tick when playing at low framerate.

Antiaim Fake Pitch

Implement a user customizable antiaim system where real (up, down) could be completely independent from the fake angle.

Chams

We have to find a way to force all players on the render list, or at least clear them from it and render manually. One promising lead is ClientLeafSystem.

Afterwards we need to implement a chams system in DrawModelExecute that supports multiple material layering.

Build Issue on Ubunto

I already installed everything necessary but i still getting this error

`
ninja: Entering directory build'

[1/63] Precompiling header ../pch/cpp_pch.h.
FAILED: m0dular@sha/cpp_pch.h.gch
c++ -Im0dular@sha -I. -I.. -I../pch -I../gui/menu/imgui -I/usr/include/SDL2 -I/usr/include/libdrm -fdiagnostics-color=always -DNDEBUG -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -std=c++17 -O3 -DAIMBOT_THREADING -D_HAS_STATIC_RTTI=0 -DTESTING_FEATURES -DPT_VISUALS -fPIC -D_REENTRANT -pthread -include global_defines.h -fno-rtti -Wno-non-virtual-dtor -Wno-strict-aliasing -fvisibility=hidden -flto=thin -gsplit-dwarf -fno-stack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-math-errno -fno-ident -DM0DULAR_CHEAT -x c++-header -MD -MQ 'm0dular@sha/cpp_pch.h.gch' -MF 'm0dular@sha/cpp_pch.h.gch.d' -o 'm0dular@sha/cpp_pch.h.gch' -c ../pch/cpp_pch.h
cc1plus: error: unrecognized argument to ‘-flto=’ option: ‘thin’
cc1plus: note: ‘-gsplit-dwarf’ is not supported with LTO, disabling

[2/63] Precompiling header ../pch/cpp_pch.h.

FAILED: clm0dular@exe/cpp_pch.h.gch
c++ -Iclm0dular@exe -I. -I.. -I../pch -I../gui/menu/imgui -fdiagnostics-color=always -DNDEBUG -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -std=c++17 -O3 -DAIMBOT_THREADING -D_HAS_STATIC_RTTI=0 -DTESTING_FEATURES -DPT_VISUALS -pthread -include global_defines.h -fno-rtti -Wno-non-virtual-dtor -Wno-strict-aliasing -fvisibility=hidden -flto=thin -gsplit-dwarf -fno-stack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-math-errno -fno-ident -DM0DULAR_CLIENT -x c++-header -MD -MQ 'clm0dular@exe/cpp_pch.h.gch' -MF 'clm0dular@exe/cpp_pch.h.gch.d' -o 'clm0dular@exe/cpp_pch.h.gch' -c ../pch/cpp_pch.h
cc1plus: error: unrecognized argument to ‘-flto=’ option: ‘thin’
cc1plus: note: ‘-gsplit-dwarf’ is not supported with LTO, disabling

[3/63] Precompiling header ../pch/cpp_pch.h.

FAILED: mlm0dular@sha/cpp_pch.h.gch
c++ -Imlm0dular@sha -I. -I.. -I../pch -I../gui/menu/imgui -fdiagnostics-color=always -DNDEBUG -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -std=c++17 -O3 -DAIMBOT_THREADING -D_HAS_STATIC_RTTI=0 -DTESTING_FEATURES -DPT_VISUALS -fPIC -pthread -include global_defines.h -fno-rtti -Wno-non-virtual-dtor -Wno-strict-aliasing -fvisibility=hidden -flto=thin -gsplit-dwarf -fno-stack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-math-errno -fno-ident -DM0DULAR_CLIENT -x c++-header -MD -MQ 'mlm0dular@sha/cpp_pch.h.gch' -MF 'mlm0dular@sha/cpp_pch.h.gch.d' -o 'mlm0dular@sha/cpp_pch.h.gch' -c ../pch/cpp_pch.h
cc1plus: error: unrecognized argument to ‘-flto=’ option: ‘thin’
cc1plus: note: ‘-gsplit-dwarf’ is not supported with LTO, disabling

[4/63] Precompiling header ../pch/cpp_pch.h.

FAILED: keybind_test@exe/cpp_pch.h.gch
c++ -Ikeybind_test@exe -I. -I.. -I../pch -I../gui/menu/imgui -fdiagnostics-color=always -DNDEBUG -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -std=c++17 -O3 -DAIMBOT_THREADING -D_HAS_STATIC_RTTI=0 -DTESTING_FEATURES -DPT_VISUALS -pthread -include global_defines.h -fno-rtti -Wno-non-virtual-dtor -Wno-strict-aliasing -fvisibility=hidden -flto=thin -gsplit-dwarf -fno-stack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-math-errno -fno-ident -x c++-header -MD -MQ 'keybind_test@exe/cpp_pch.h.gch' -MF 'keybind_test@exe/cpp_pch.h.gch.d' -o 'keybind_test@exe/cpp_pch.h.gch' -c ../pch/cpp_pch.h
cc1plus: error: unrecognized argument to ‘-flto=’ option: ‘thin’
cc1plus: note: ‘-gsplit-dwarf’ is not supported with LTO, disabling

[5/63] Compiling C object 'keycode_clib@sta/modules_keycode_keyid.c.o'.

FAILED: keycode_clib@sta/modules_keycode_keyid.c.o
cc -Ikeycode_clib@sta -I. -I.. -fdiagnostics-color=always -DNDEBUG -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -O3 -DAIMBOT_THREADING -D_HAS_STATIC_RTTI=0 -DTESTING_FEATURES -DPT_VISUALS -fPIC -include global_defines.h -fno-rtti -Wno-non-virtual-dtor -Wno-strict-aliasing -fvisibility=hidden -flto=thin -gsplit-dwarf -fno-stack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-math-errno -fno-ident -MD -MQ 'keycode_clib@sta/modules_keycode_keyid.c.o' -MF 'keycode_clib@sta/modules_keycode_keyid.c.o.d' -o 'keycode_clib@sta/modules_keycode_keyid.c.o' -c ../modules/keycode/keyid.c
cc1: warning: command line option ‘-Wno-non-virtual-dtor’ is valid for C++/ObjC++ but not for C
cc1: warning: command line option ‘-fno-rtti’ is valid for C++/D/ObjC++ but not for C
cc1: error: unrecognized argument to ‘-flto=’ option: ‘thin’
cc1: note: ‘-gsplit-dwarf’ is not supported with LTO, disabling

[6/63] Compiling C++ object 'module_id@sta/bits_identify.cpp.o'.

FAILED: module_id@sta/bits_identify.cpp.o
c++ -Imodule_id@sta -I. -I.. -fdiagnostics-color=always -DNDEBUG -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -std=c++17 -O3 -DAIMBOT_THREADING -D_HAS_STATIC_RTTI=0 -DTESTING_FEATURES -DPT_VISUALS -fPIC -include global_defines.h -fno-rtti -Wno-non-virtual-dtor -Wno-strict-aliasing -fvisibility=hidden -flto=thin -gsplit-dwarf -fno-stack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-math-errno -fno-ident '-DMODULE_IDENTIFICATION="x52"' -MD -MQ 'module_id@sta/bits_identify.cpp.o' -MF 'module_id@sta/bits_identify.cpp.o.d' -o 'module_id@sta/bits_identify.cpp.o' -c ../bits/identify.cpp
cc1plus: error: unrecognized argument to ‘-flto=’ option: ‘thin’
cc1plus: note: ‘-gsplit-dwarf’ is not supported with LTO, disabling
ninja: build stopped: subcommand failed.
`

Build issue on linux

After following instructions from readme (cloning with --recursive) but when i tried meson build --buildtype=release it gave me error Run-time dependency python3 found: NO (tried pkgconfig) (i have python3 installed). I ignored it i thought it was okay because of fact that i have it installed and after running ninja -C build i got mass of errors. I don't really know what to do with it.

kuba@summit:~/csgoshit/m0dular-csgo$ ninja -C build
ninja: Entering directory `build'
[1/63] Precompiling header ../pch/cpp_pch.h.
FAILED: mlm0dular@sha/cpp_pch.h.gch 
c++ -Imlm0dular@sha -I. -I.. -I../pch -I../gui/menu/imgui -fdiagnostics-color=always -DNDEBUG -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -std=c++17 -O3 -DAIMBOT_THREADING -D_HAS_STATIC_RTTI=0 -DTESTING_FEATURES -DPT_VISUALS -fPIC -pthread -include global_defines.h -fno-rtti -Wno-non-virtual-dtor -Wno-strict-aliasing -fvisibility=hidden -flto=thin -gsplit-dwarf -fno-stack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-math-errno -fno-ident -DM0DULAR_CLIENT -x c++-header -MD -MQ 'mlm0dular@sha/cpp_pch.h.gch' -MF 'mlm0dular@sha/cpp_pch.h.gch.d' -o 'mlm0dular@sha/cpp_pch.h.gch' -c ../pch/cpp_pch.h
cc1plus: error: unrecognized argument to ‘-flto=’ option: ‘thin’
cc1plus: note: ‘-gsplit-dwarf’ is not supported with LTO, disabling
[2/63] Precompiling header ../pch/cpp_pch.h.
FAILED: m0dular@sha/cpp_pch.h.gch 
c++ -Im0dular@sha -I. -I.. -I../pch -I../gui/menu/imgui -I/usr/include/SDL2 -I/usr/include/libdrm -fdiagnostics-color=always -DNDEBUG -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -std=c++17 -O3 -DAIMBOT_THREADING -D_HAS_STATIC_RTTI=0 -DTESTING_FEATURES -DPT_VISUALS -fPIC -D_REENTRANT -pthread -include global_defines.h -fno-rtti -Wno-non-virtual-dtor -Wno-strict-aliasing -fvisibility=hidden -flto=thin -gsplit-dwarf -fno-stack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-math-errno -fno-ident -DM0DULAR_CHEAT -x c++-header -MD -MQ 'm0dular@sha/cpp_pch.h.gch' -MF 'm0dular@sha/cpp_pch.h.gch.d' -o 'm0dular@sha/cpp_pch.h.gch' -c ../pch/cpp_pch.h
cc1plus: error: unrecognized argument to ‘-flto=’ option: ‘thin’
cc1plus: note: ‘-gsplit-dwarf’ is not supported with LTO, disabling
[3/63] Precompiling header ../pch/cpp_pch.h.
FAILED: clm0dular@exe/cpp_pch.h.gch 
c++ -Iclm0dular@exe -I. -I.. -I../pch -I../gui/menu/imgui -fdiagnostics-color=always -DNDEBUG -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -std=c++17 -O3 -DAIMBOT_THREADING -D_HAS_STATIC_RTTI=0 -DTESTING_FEATURES -DPT_VISUALS -pthread -include global_defines.h -fno-rtti -Wno-non-virtual-dtor -Wno-strict-aliasing -fvisibility=hidden -flto=thin -gsplit-dwarf -fno-stack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-math-errno -fno-ident -DM0DULAR_CLIENT -x c++-header -MD -MQ 'clm0dular@exe/cpp_pch.h.gch' -MF 'clm0dular@exe/cpp_pch.h.gch.d' -o 'clm0dular@exe/cpp_pch.h.gch' -c ../pch/cpp_pch.h
cc1plus: error: unrecognized argument to ‘-flto=’ option: ‘thin’
cc1plus: note: ‘-gsplit-dwarf’ is not supported with LTO, disabling
[4/63] Compiling C++ object 'module_id@sta/bits_identify.cpp.o'.
FAILED: module_id@sta/bits_identify.cpp.o 
c++ -Imodule_id@sta -I. -I.. -fdiagnostics-color=always -DNDEBUG -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -std=c++17 -O3 -DAIMBOT_THREADING -D_HAS_STATIC_RTTI=0 -DTESTING_FEATURES -DPT_VISUALS -fPIC -include global_defines.h -fno-rtti -Wno-non-virtual-dtor -Wno-strict-aliasing -fvisibility=hidden -flto=thin -gsplit-dwarf -fno-stack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-math-errno -fno-ident '-DMODULE_IDENTIFICATION="x52"' -MD -MQ 'module_id@sta/bits_identify.cpp.o' -MF 'module_id@sta/bits_identify.cpp.o.d' -o 'module_id@sta/bits_identify.cpp.o' -c ../bits/identify.cpp
cc1plus: error: unrecognized argument to ‘-flto=’ option: ‘thin’
cc1plus: note: ‘-gsplit-dwarf’ is not supported with LTO, disabling
[5/63] Compiling C object 'keycode_clib@sta/modules_keycode_keyid.c.o'.
FAILED: keycode_clib@sta/modules_keycode_keyid.c.o 
cc -Ikeycode_clib@sta -I. -I.. -fdiagnostics-color=always -DNDEBUG -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -O3 -DAIMBOT_THREADING -D_HAS_STATIC_RTTI=0 -DTESTING_FEATURES -DPT_VISUALS -fPIC -include global_defines.h -fno-rtti -Wno-non-virtual-dtor -Wno-strict-aliasing -fvisibility=hidden -flto=thin -gsplit-dwarf -fno-stack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-math-errno -fno-ident -MD -MQ 'keycode_clib@sta/modules_keycode_keyid.c.o' -MF 'keycode_clib@sta/modules_keycode_keyid.c.o.d' -o 'keycode_clib@sta/modules_keycode_keyid.c.o' -c ../modules/keycode/keyid.c
cc1: warning: command line option ‘-Wno-non-virtual-dtor’ is valid for C++/ObjC++ but not for C
cc1: warning: command line option ‘-fno-rtti’ is valid for C++/D/ObjC++ but not for C
cc1: error: unrecognized argument to ‘-flto=’ option: ‘thin’
cc1: note: ‘-gsplit-dwarf’ is not supported with LTO, disabling
[6/63] Precompiling header ../pch/cpp_pch.h.
FAILED: keybind_test@exe/cpp_pch.h.gch 
c++ -Ikeybind_test@exe -I. -I.. -I../pch -I../gui/menu/imgui -fdiagnostics-color=always -DNDEBUG -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -std=c++17 -O3 -DAIMBOT_THREADING -D_HAS_STATIC_RTTI=0 -DTESTING_FEATURES -DPT_VISUALS -pthread -include global_defines.h -fno-rtti -Wno-non-virtual-dtor -Wno-strict-aliasing -fvisibility=hidden -flto=thin -gsplit-dwarf -fno-stack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-math-errno -fno-ident -x c++-header -MD -MQ 'keybind_test@exe/cpp_pch.h.gch' -MF 'keybind_test@exe/cpp_pch.h.gch.d' -o 'keybind_test@exe/cpp_pch.h.gch' -c ../pch/cpp_pch.h
cc1plus: error: unrecognized argument to ‘-flto=’ option: ‘thin’
cc1plus: note: ‘-gsplit-dwarf’ is not supported with LTO, disabling
ninja: build stopped: subcommand failed.

Also full mason log:

kuba@summit:~/csgoshit/m0dular-csgo$ meson build --buildtype=release 
The Meson build system
Version: 0.51.2
Source dir: /home/kuba/csgoshit/m0dular-csgo
Build dir: /home/kuba/csgoshit/m0dular-csgo/build
Build type: native build
Project name: m0dular-csgo
Project version: undefined
C compiler for the host machine: cc (gcc 9.2.1 "cc (Ubuntu 9.2.1-9ubuntu2) 9.2.1 20191008")
C++ compiler for the host machine: c++ (gcc 9.2.1 "c++ (Ubuntu 9.2.1-9ubuntu2) 9.2.1 20191008")
Build machine cpu family: x86_64
Build machine cpu: x86_64
Program python3 found: YES (/usr/bin/python3)
Found pkg-config: /usr/bin/pkg-config (0.29.1)
Run-time dependency sdl2 found: YES 2.0.10
Run-time dependency gl found: YES 19.2.1
Run-time dependency threads found: YES 
Run-time dependency python3 found: NO (tried pkgconfig)
Build targets in project: 6
Found ninja-1.9.0 at /usr/bin/ninja

System: Kubuntu 19.10

GUI

Implement in-game GUI for settings control.

Preferably, use a common interface in-game, in-browser, in-client.

VIsuals

Add a DX/GL renderer. It should be able to also draw in 3D using the game's view matrix. Shader support would also be an upside.

Remove boost dependency

Removing dependency on boost headers would help with compile times and portability. Currently we are using boost::unordered_map and boost::interprocess:vector. The unordered map is used in shmfs, settings and could be replaced by a map-like structure, such as 1D-KDTree. There is no direct replacement for vector, a custom implementation has to be added to m0dular as stl vectors are not interprocess friendly.

Antiaims

Research and develop various anti-aims that rely on animation desync.

Advanced Lag Compensation

Predict movement of the enemy players. Has to provide this functionality:

  • Predict the next fakelag amount of the player based on history
    • Check if the player is using adaptive fakelag to break lag compensation
    • Check the possibility for the player to stop fakelagging on ground based on history
  • Predict the movement trajectory of the player based on both short term and long term memory
    • Detect common paths inside the map and use those for influencing the predicted trajectory
    • Use short term player movement memory to predict the curvature of the players's movement
  • Extrapolate the player data into the future
    • Run the rebuilt game movement for the player
    • Update the animations of the player to have the most correct data

Test Suite

Add tests for various parts of the code, the key parts being:

  • Reading player data (different player counts and other randomness)
  • Running features using the data

Many tests can be done without having the game open (emulating player lists), while other tests may require injection (interacting with complex game logic).

A special map may be created in order to accelerate the tests.

Restore MacOS compatibility

MacOS compatibility has not been tested in a while and the cheat will definitely not work on the platform.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.