summaryrefslogtreecommitdiff
path: root/internal_rewrite/IVEngineClient.hpp
diff options
context:
space:
mode:
authornavewindre <boneyaard@gmail.com>2018-09-12 23:07:32 +0200
committernavewindre <boneyaard@gmail.com>2018-09-12 23:07:32 +0200
commit3c72119a3c474e11f9ee819def492dcbfd1e8f84 (patch)
treeb7e52c422fbc8e96874a2876c9b82f96e7767f09 /internal_rewrite/IVEngineClient.hpp
parente8bff3fb5f484e2fb98bf157f4b85b61fdbd0620 (diff)
asd
Diffstat (limited to 'internal_rewrite/IVEngineClient.hpp')
-rw-r--r--internal_rewrite/IVEngineClient.hpp29
1 files changed, 29 insertions, 0 deletions
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: