diff options
Diffstat (limited to 'internal_rewrite/IVEngineClient.hpp')
| -rw-r--r-- | internal_rewrite/IVEngineClient.hpp | 29 |
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:
|
