mirror of
https://github.com/celisej567/source-sdk-2013.git
synced 2026-09-23 20:09:45 +03:00
Exposed EmitSound_t and related constants to VScript and added hooks for modifying an entity's emitted sounds on both the server and client
This commit is contained in:
@@ -1537,6 +1537,12 @@ public:
|
||||
void GenderExpandString( char const *in, char *out, int maxlen );
|
||||
|
||||
virtual void ModifyEmitSoundParams( EmitSound_t ¶ms );
|
||||
#ifdef MAPBASE
|
||||
// Same as above, but for sentences
|
||||
// (which don't actually have EmitSound_t params)
|
||||
virtual void ModifySentenceParams( int &iSentenceIndex, int &iChannel, float &flVolume, soundlevel_t &iSoundlevel, int &iFlags, int &iPitch,
|
||||
const Vector **pOrigin, const Vector **pDirection, bool &bUpdatePositions, float &soundtime, int &iSpecialDSP, int &iSpeakerIndex );
|
||||
#endif
|
||||
|
||||
static float GetSoundDuration( const char *soundname, char const *actormodel );
|
||||
|
||||
@@ -2155,6 +2161,8 @@ public:
|
||||
static ScriptHook_t g_Hook_OnDeath;
|
||||
static ScriptHook_t g_Hook_OnKilledOther;
|
||||
static ScriptHook_t g_Hook_HandleInteraction;
|
||||
static ScriptHook_t g_Hook_ModifyEmitSoundParams;
|
||||
static ScriptHook_t g_Hook_ModifySentenceParams;
|
||||
#endif
|
||||
|
||||
string_t m_iszVScripts;
|
||||
|
||||
Reference in New Issue
Block a user