From 3d412a4b30a9f7c7f51ea6562e694315948bd3da Mon Sep 17 00:00:00 2001 From: boris Date: Wed, 28 Nov 2018 16:00:02 +1300 Subject: cleaned up in short, the cheat and loader are now separate solutions. unused stuff was moved into the legacy solution in case anyone wants to compile it or whatever. i can change this back if you want to. also, i configured the loader to compile in x64, and have separate build types for linux and win64 --- gmod/listener.hpp | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 gmod/listener.hpp (limited to 'gmod/listener.hpp') diff --git a/gmod/listener.hpp b/gmod/listener.hpp deleted file mode 100644 index 182a615..0000000 --- a/gmod/listener.hpp +++ /dev/null @@ -1,26 +0,0 @@ -#pragma once -#include "sdk.hpp" - -struct generic_listener_t : public IGameEventListener2 { - generic_listener_t( const char* event_name, - void( *function )( IGameEvent* ) ); - - generic_listener_t( ) = default; - - ~generic_listener_t( ); - - void init( ); - - void FireGameEvent( IGameEvent* event ) override { m_function( event ); } - int GetEventDebugID( ) override { return 0x2a; } -private: - void( *m_function )( IGameEvent* ); - const char* m_name{ }; - bool m_registered{ }; -}; - -namespace listeners { - extern void bullet_impact( IGameEvent* e ); - extern void player_hurt( IGameEvent* e ); - extern void round_start( IGameEvent* e ); -} \ No newline at end of file -- cgit v1.2.3