From 215818ddedc02be3a1a5c2be3912abdbcd29dd72 Mon Sep 17 00:00:00 2001 From: navewindre Date: Sun, 9 Sep 2018 18:28:04 +0200 Subject: detours etc --- internal_rewrite/hooks.hpp | 63 +++++++++++++++++++++++++++++++++++++++------- 1 file changed, 54 insertions(+), 9 deletions(-) (limited to 'internal_rewrite/hooks.hpp') diff --git a/internal_rewrite/hooks.hpp b/internal_rewrite/hooks.hpp index 41e36ad..3815c15 100644 --- a/internal_rewrite/hooks.hpp +++ b/internal_rewrite/hooks.hpp @@ -14,50 +14,92 @@ namespace hooks extern decltype( &window_procedure ) window_procedure_o; void __fastcall paint_traverse( void*, void*, unsigned int, bool, bool ); + extern decltype( &paint_traverse ) paint_traverse_o; + bool __fastcall create_move( void*, void*, float, user_cmd_t* ); + extern decltype( &create_move ) create_move_o; + //void __fastcall hl_create_move( void*, void*, int, float, bool ); void __fastcall frame_stage_notify( void*, void*, ClientFrameStage_t ); + extern decltype( &frame_stage_notify ) fsn_o; + void __fastcall suppress_lists( void*, void*, int, bool ); + extern decltype( &suppress_lists ) suppress_lists_o; + void __fastcall draw_small_entities( void*, void*, bool ); + extern decltype( &draw_small_entities ) draw_small_entities_o; + void __fastcall begin_lock( void*, void* ); + extern decltype( &begin_lock ) begin_lock_o; + void __fastcall end_lock( void*, void* ); + extern decltype( &end_lock ) end_lock_o; + void __fastcall simulate( void*, void* ); + extern decltype( &simulate ) simulate_o; + void __fastcall run_command( void*, void*, IClientEntity*, user_cmd_t*, IMoveHelper* ); + extern decltype( &run_command ) run_command_o; + void __fastcall override_mouse_input( void*, void*, float*, float* ); + extern decltype( &override_mouse_input ) override_mouse_input_o; + void __fastcall draw_model_execute( IVModelRender*, void*, void*, const DrawModelState_t&, const ModelRenderInfo_t&, matrix3x4* ); + extern decltype( &draw_model_execute ) draw_model_execute_o; + void __fastcall scene_end( void*, void* ); - bool __fastcall is_hltv_proxy( void*, void* ); - bool __fastcall is_hltv( void* thisptr, uintptr_t pvs_entity ); + extern decltype( &scene_end ) scene_end_o; + float __fastcall get_viewmodel_fov( void*, void* ); + extern decltype( &get_viewmodel_fov ) get_viewmodel_fov_o; + void __fastcall get_screen_size( void*, void*, int&, int& ); + extern decltype( &get_screen_size ) get_screen_size_o; + void __fastcall override_view( void* ecx_, void* edx_, CViewSetup* setup ); - 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 ); + 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 shut_down( void* ecx_, void* edx_ ); + extern decltype( &shut_down ) shut_down_o; + void __fastcall lock_cursor( void* ecx_, void* edx_ ); + extern decltype( &lock_cursor ) lock_cursor_o; bool __fastcall is_connected( void* ecx_, void* edx_ ); + extern decltype( &is_connected ) is_connected_o; bool __fastcall in_prediction( void* ecx_, void* edx_ ); + extern decltype( &in_prediction ) in_prediction_o; + void __fastcall update_clientside_animation( void* ecx_, void* edx_ ); + extern decltype( &update_clientside_animation ) update_clientside_animation_o; bool __fastcall material_system( void* ecx_, void* edx_, IMaterialSystem_Config_t* config, bool forceupdate ); + extern decltype( &material_system ) material_system_o; + bool __fastcall fire_event_clientside( void* ecx_, void* edx, IGameEvent* event ); + extern decltype( &fire_event_clientside ) fire_event_clientside_o; + void __cdecl lby_proxy_fn( const CRecvProxyData* proxy_data_const, void* entity, void* output ); void __cdecl last_shot_proxy_fn( const CRecvProxyData* proxy_data_const, void* entity, void* output ); void __cdecl simtime_proxy_fn( const CRecvProxyData* proxy_data_const, void* ent, void* output ); int __fastcall send_datagram( INetChannel* channel, void* edx, void* datagram ); - bool __fastcall is_paused( void* ecx_, void* edx_ ); + extern decltype( &send_datagram ) send_datagram_o; + bool __fastcall do_post_screen_space_effects( void* ecx_, void* edx_, CViewSetup* setup ); + extern decltype( &do_post_screen_space_effects ) do_post_screen_space_effects_o; + void __fastcall on_screen_size_changed( void* ecx_, void* edx_, int old_h, int old_w ); + extern decltype( &on_screen_size_changed ) on_screen_size_changed_o; + void __fastcall play_sound( void* ecx_, void* edx_, const char* name ); - void __fastcall hud_process_input( void* ecx_, void* edx_, bool repaint ); - void __fastcall trace_ray( void* ecx_, void* edx_, const Ray_t& ray, unsigned int fMask, ITraceFilter* pTraceFilter, CBaseTrace* pTrace ); + extern decltype( &play_sound ) play_sound_o; int __fastcall debug_show_spread_get_int( void* ecx_, void* edx_ ); - int __fastcall cl_interpolate_get_int( void* ecx_, void* edx_ ); int __fastcall net_showfragments_get_int( void* ecx_, void* edx_ ); extern c_netvar_proxy lby_proxy; @@ -72,5 +114,8 @@ namespace hooks long __stdcall draw( IDirect3DDevice9*, D3DPRIMITIVETYPE, int, uint32_t, uint32_t, uint32_t, uint32_t ); } + int __fastcall convar_getint( void* ecx_, void* edx_ ); + extern decltype( &convar_getint ) convar_getint_o; + extern bool commit( factory::c_csgo* ); } \ No newline at end of file -- cgit v1.2.3