diff options
| author | navewindre <boneyaard@gmail.com> | 2018-09-01 14:23:02 +0200 |
|---|---|---|
| committer | navewindre <boneyaard@gmail.com> | 2018-09-01 14:23:02 +0200 |
| commit | beb5515757c0e653adc33f181184fe3791ca0a6b (patch) | |
| tree | 68f123f602795a31a8811bd56e3b3271c102a3fa /internal_rewrite/play_sound.cpp | |
| parent | 0767d6d4acaf5f86a67a375dffa54da9323646e3 (diff) | |
dasdadasf
Diffstat (limited to 'internal_rewrite/play_sound.cpp')
| -rw-r--r-- | internal_rewrite/play_sound.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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; |
