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 --- tf2/listener.cpp | 42 ------------------------------------------ 1 file changed, 42 deletions(-) delete mode 100644 tf2/listener.cpp (limited to 'tf2/listener.cpp') diff --git a/tf2/listener.cpp b/tf2/listener.cpp deleted file mode 100644 index c48b900..0000000 --- a/tf2/listener.cpp +++ /dev/null @@ -1,42 +0,0 @@ -#include "listener.hpp" -#include "interfaces.h" -#include "base_cheat.h" -#include "ctx.hpp" -#include "settings.h" -#undef PlaySound - -//how can you listen if youre deaf - -generic_listener_t::generic_listener_t( const char* name, void( *function )( IGameEvent* ) ) : - m_function( function ), m_name( name ) { } - -generic_listener_t::~generic_listener_t( ) { - if( m_registered ) - cl.m_event_mgr( )->RemoveListener( this ); - -} - -void generic_listener_t::init( ) { - cl.m_event_mgr( )->AddListener( this, m_name, false ); - m_registered = true; -} - -namespace listeners -{ - - void player_hurt( IGameEvent* e ) { - if( !cl.m_panic && e ) { - int user_id = e->GetInt( xors( "userid" ) ); - int attacker = e->GetInt( xors( "attacker" ) ); - int attacker_id = cl.m_engine( )->GetPlayerForUserID( attacker ); - int player_id = cl.m_engine( )->GetPlayerForUserID( user_id ); - - - //if( attacker_id == cl.m_engine( )->GetLocalPlayer( ) && user_id != attacker_id ) { - g_cheat.visuals.store_hit( ); - - //} - } - } - -} \ No newline at end of file -- cgit v1.2.3