summaryrefslogtreecommitdiff
path: root/internal_rewrite/fire_event_clientside.cpp
blob: 02faace365472f8f68835675a8f75be3c51318b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include "hooks.hpp"
#include "base_cheat.hpp"
#include "context.hpp"

bool __fastcall hooks::fire_event_clientside( void* ecx_, void* edx, IGameEvent* event_ ) {
	static auto original_fn = g_csgo.m_event_mgr->get_old_function< decltype( &fire_event_clientside ) >( 9 );

	if( g_ctx.m_local && g_ctx.m_local->is_valid( ) && strstr( event_->GetName( ), xors( "player_death" ) ) )
		g_cheat.m_skins.replace_deaths( event_ );

	g_cheat.m_extra.money_talk( event_ );

	return original_fn( ecx_, edx, event_ );
}