From 3c72119a3c474e11f9ee819def492dcbfd1e8f84 Mon Sep 17 00:00:00 2001 From: navewindre Date: Wed, 12 Sep 2018 23:07:32 +0200 Subject: asd --- internal_rewrite/IVEngineClient.hpp | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'internal_rewrite/IVEngineClient.hpp') diff --git a/internal_rewrite/IVEngineClient.hpp b/internal_rewrite/IVEngineClient.hpp index d3a4d8f..fb39e08 100644 --- a/internal_rewrite/IVEngineClient.hpp +++ b/internal_rewrite/IVEngineClient.hpp @@ -4,6 +4,7 @@ #include "util.hpp" #include "vector.hpp" +#include "CUtlVector.hpp" using matrix3x4 = float[ 3 ][ 4 ]; @@ -162,6 +163,34 @@ public: } }; +struct CSndInfo { + int guid; + void *file_handle; + int sound_source; + int channel; + int speaker_entity; + float volume; + float last_spatilized_volume; + float radius; + int pitch; + vec3_t *origin; + vec3_t *direction; + bool update_positions; + bool is_sentence; + bool disable_dsp_processing; + bool from_speaker_entity; + bool server_sound; +}; + +class IVEngineSound { +public: + void GetActiveSounds( CUtlVector< CSndInfo >& list ) { + using fn = void( __thiscall* )( void*, CUtlVector< CSndInfo >& ); + + return util::get_vfunc< fn >( this, 18 )( this, list ); + } +}; + class IVEngineClient { public: -- cgit v1.2.3