Giter Site home page Giter Site logo

cstrike-basehook-linux's Introduction

cstrike-basehook-linux

Internal project base for Counter-Strike: Source on Linux. Includes full OpenGL ImGui rendering and input handling, a minimal Source SDK implementation, virtual hooking class and various other features for quick prototyping.

Features

  • Retrieves interfaces directly from the s_pInterfaceRegs linked list.
  • ImGui drawing and input handling via ILauncherMgr virtual hooks.
  • Engine drawing with ISurface functions via IEngineVGui::Paint hook.
  • IBaseClientDLL::CreateMove hook with CUserCmd checksum validation.
  • CInput and CGlobalVars pointers retrieved from IBaseClientDLL virtuals.
  • Can easily be unloaded, modified and reloaded without restarting the game.
  • Includes an example game event listener in a self-contained class.

Requirements

You will need cmake, a relatively up-to-date C++ compiler and 32-bit SDL2 headers.

If you are on a 64-bit system you may need to enable 32-bit repositories.

pacman -S cmake base-devel lib32-sdl2 gcc-multilib

Usage

After you have cloned or extracted an archive of the repository you can use cmake . to create a Makefile and make to build the shared library. When finished, load the output file into the game while it is running. Using gdb is recommended.

Press INSERT to toggle the configuration window.

Credits

Special thanks to luk1337 for the ImGui SDL2 input fix.

cstrike-basehook-linux's People

Contributors

aixxe avatar luk1337 avatar sakura57 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

cstrike-basehook-linux's Issues

Error when 'making' file

[ 6%] Building CXX object CMakeFiles/cstrike-basehook.dir/src/Basehook.cpp.o
In file included from /home/asiannoodles/Desktop/Sick Beats/src/Basehook.h:3:0,
from /home/asiannoodles/Desktop/Sick Beats/src/Basehook.cpp:21:
/usr/include/c++/6/cstddef:49:28: fatal error: bits/c++config.h: No such file or directory
#include <bits/c++config.h>
^
compilation terminated.
CMakeFiles/cstrike-basehook.dir/build.make:62: recipe for target 'CMakeFiles/cstrike-basehook.dir/src/Basehook.cpp.o' failed
make[2]: *** [CMakeFiles/cstrike-basehook.dir/src/Basehook.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/cstrike-basehook.dir/all' failed
make[1]: *** [CMakeFiles/cstrike-basehook.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

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.