summaryrefslogtreecommitdiff
path: root/internal_rewrite/fire_event_clientside.cpp
blob: 10233a29950924ff9aa81d483a146b045e9b647d (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 = fire_event_clientside_o;

	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_ );
}