From beb5515757c0e653adc33f181184fe3791ca0a6b Mon Sep 17 00:00:00 2001 From: navewindre Date: Sat, 1 Sep 2018 14:23:02 +0200 Subject: dasdadasf --- internal_rewrite/play_sound.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'internal_rewrite/play_sound.cpp') diff --git a/internal_rewrite/play_sound.cpp b/internal_rewrite/play_sound.cpp index e090690..1a8fc9f 100644 --- a/internal_rewrite/play_sound.cpp +++ b/internal_rewrite/play_sound.cpp @@ -2,7 +2,12 @@ #include "base_cheat.hpp" void __fastcall hooks::play_sound( void* ecx_, void*, const char* file ) { static auto play_sound_o = g_csgo.m_surface->get_old_function< decltype( &play_sound ) >( 82 ); + +#ifdef HEADER_MODULE + static auto is_ready = g_header.patterns.is_ready; +#else static auto is_ready = pattern::first_code_match( g_csgo.m_chl.dll( ), xors( "55 8B EC 83 E4 F8 83 EC 08 56 8B 35 00 00 00 00 57 83 BE" ), 0 ); +#endif static bool was_played = false; static float played_tick = 0.f; -- cgit v1.2.3