From 96de4961c447d7009ba52b6bf04d4b7bfe487ab1 Mon Sep 17 00:00:00 2001 From: boris Date: Wed, 28 Nov 2018 22:02:33 +1300 Subject: fixed emitsound hook --- cheat/internal_rewrite/hooks.hpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'cheat/internal_rewrite/hooks.hpp') diff --git a/cheat/internal_rewrite/hooks.hpp b/cheat/internal_rewrite/hooks.hpp index ab28545..dc23672 100644 --- a/cheat/internal_rewrite/hooks.hpp +++ b/cheat/internal_rewrite/hooks.hpp @@ -59,9 +59,11 @@ namespace hooks void __fastcall override_view( void* ecx_, void* edx_, CViewSetup* setup ); extern decltype( &override_view ) override_view_o; - //void __fastcall emit_sound( void* ecx_, void* edx_, void* filter, int ent, int channel, const char* sound, uint32_t hash, - // const char* sample, float volume, float attenuation, int seed, int flags, int pitch, const vec3_t* origin, - // const vec3_t* direction, vec3_t* origins, bool update_pos, float sound_time, int speaker_entry ); + void __fastcall emit_sound( void* ecx_, void* edx_, void* filter, int ent, int channel, const char* sound, uint32_t hash, + const char* sample, float volume, float attenuation, int seed, int flags, int pitch, const vec3_t* origin, + const vec3_t* direction, vec3_t* origins, bool update_pos, float sound_time, int speaker_entry, void *unk01 ); + extern decltype(&emit_sound) emit_sound_o; + void __fastcall shut_down( void* ecx_, void* edx_ ); extern decltype( &shut_down ) shut_down_o; -- cgit v1.2.3