|
|
|
@@ -36,7 +36,7 @@ SH_DECL_HOOK8_void(IVEngineServer, EmitAmbientSound, SH_NOATTRIB, 0, int, const
|
|
|
|
|
#if SOURCE_ENGINE >= SE_PORTAL2
|
|
|
|
|
SH_DECL_HOOK17(IEngineSound, EmitSound, SH_NOATTRIB, 0, int, IRecipientFilter &, int, int, const char *, unsigned int, const char *, float, float, int, int, int, const Vector *, const Vector *, CUtlVector<Vector> *, bool, float, int);
|
|
|
|
|
SH_DECL_HOOK17(IEngineSound, EmitSound, SH_NOATTRIB, 1, int, IRecipientFilter &, int, int, const char *, unsigned int, const char *, float, soundlevel_t, int, int, int, const Vector *, const Vector *, CUtlVector<Vector> *, bool, float, int);
|
|
|
|
|
#elif SOURCE_ENGINE == SE_ORANGEBOXVALVE
|
|
|
|
|
#elif SOURCE_ENGINE == SE_ORANGEBOXVALVE || SOURCE_ENGINE == SE_CSS
|
|
|
|
|
SH_DECL_HOOK15_void(IEngineSound, EmitSound, SH_NOATTRIB, 0, IRecipientFilter &, int, int, const char *, float, float, int, int, int, const Vector *, const Vector *, CUtlVector<Vector> *, bool, float, int);
|
|
|
|
|
SH_DECL_HOOK15_void(IEngineSound, EmitSound, SH_NOATTRIB, 1, IRecipientFilter &, int, int, const char *, float, soundlevel_t, int, int, int, const Vector *, const Vector *, CUtlVector<Vector> *, bool, float, int);
|
|
|
|
|
#else
|
|
|
|
@@ -265,7 +265,7 @@ int SoundHooks::OnEmitSound(IRecipientFilter &filter, int iEntIndex, int iChanne
|
|
|
|
|
float flVolume, soundlevel_t iSoundlevel, int nSeed, int iFlags, int iPitch, const Vector *pOrigin,
|
|
|
|
|
const Vector *pDirection, CUtlVector<Vector> *pUtlVecOrigins, bool bUpdatePositions,
|
|
|
|
|
float soundtime, int speakerentity)
|
|
|
|
|
#elif SOURCE_ENGINE == SE_ORANGEBOXVALVE
|
|
|
|
|
#elif SOURCE_ENGINE == SE_ORANGEBOXVALVE || SOURCE_ENGINE == SE_CSS
|
|
|
|
|
void SoundHooks::OnEmitSound(IRecipientFilter &filter, int iEntIndex, int iChannel, const char *pSample,
|
|
|
|
|
float flVolume, soundlevel_t iSoundlevel, int iFlags, int iPitch, int iSpecialDSP, const Vector *pOrigin,
|
|
|
|
|
const Vector *pDirection, CUtlVector<Vector> *pUtlVecOrigins, bool bUpdatePositions,
|
|
|
|
@@ -326,7 +326,7 @@ void SoundHooks::OnEmitSound(IRecipientFilter &filter, int iEntIndex, int iChann
|
|
|
|
|
(crf, iEntIndex, iChannel, buffer, -1, buffer, flVolume, iSoundlevel, nSeed, iFlags, iPitch, pOrigin,
|
|
|
|
|
pDirection, pUtlVecOrigins, bUpdatePositions, soundtime, speakerentity)
|
|
|
|
|
);
|
|
|
|
|
#elif SOURCE_ENGINE == SE_ORANGEBOXVALVE
|
|
|
|
|
#elif SOURCE_ENGINE == SE_ORANGEBOXVALVE || SOURCE_ENGINE == SE_CSS
|
|
|
|
|
RETURN_META_NEWPARAMS(
|
|
|
|
|
MRES_IGNORED,
|
|
|
|
|
static_cast<void (IEngineSound::*)(IRecipientFilter &, int, int, const char*, float, soundlevel_t,
|
|
|
|
@@ -357,7 +357,7 @@ int SoundHooks::OnEmitSound2(IRecipientFilter &filter, int iEntIndex, int iChann
|
|
|
|
|
float flVolume, float flAttenuation, int nSeed, int iFlags, int iPitch, const Vector *pOrigin,
|
|
|
|
|
const Vector *pDirection, CUtlVector<Vector> *pUtlVecOrigins, bool bUpdatePositions,
|
|
|
|
|
float soundtime, int speakerentity)
|
|
|
|
|
#elif SOURCE_ENGINE == SE_ORANGEBOXVALVE
|
|
|
|
|
#elif SOURCE_ENGINE == SE_ORANGEBOXVALVE || SOURCE_ENGINE == SE_CSS
|
|
|
|
|
void SoundHooks::OnEmitSound2(IRecipientFilter &filter, int iEntIndex, int iChannel, const char *pSample,
|
|
|
|
|
float flVolume, float flAttenuation, int iFlags, int iPitch, int iSpecialDSP, const Vector *pOrigin,
|
|
|
|
|
const Vector *pDirection, CUtlVector<Vector> *pUtlVecOrigins, bool bUpdatePositions,
|
|
|
|
@@ -419,7 +419,7 @@ void SoundHooks::OnEmitSound2(IRecipientFilter &filter, int iEntIndex, int iChan
|
|
|
|
|
(crf, iEntIndex, iChannel, buffer, -1, buffer, flVolume, SNDLVL_TO_ATTN(static_cast<soundlevel_t>(sndlevel)),
|
|
|
|
|
nSeed, iFlags, iPitch, pOrigin, pDirection, pUtlVecOrigins, bUpdatePositions, soundtime, speakerentity)
|
|
|
|
|
);
|
|
|
|
|
#elif SOURCE_ENGINE == SE_ORANGEBOXVALVE
|
|
|
|
|
#elif SOURCE_ENGINE == SE_ORANGEBOXVALVE || SOURCE_ENGINE == SE_CSS
|
|
|
|
|
RETURN_META_NEWPARAMS(
|
|
|
|
|
MRES_IGNORED,
|
|
|
|
|
static_cast<void (IEngineSound::*)(IRecipientFilter &, int, int, const char *, float, float,
|
|
|
|
@@ -683,7 +683,7 @@ static cell_t EmitSound(IPluginContext *pContext, const cell_t *params)
|
|
|
|
|
soundtime,
|
|
|
|
|
speakerentity);
|
|
|
|
|
}
|
|
|
|
|
#elif SOURCE_ENGINE == SE_ORANGEBOXVALVE
|
|
|
|
|
#elif SOURCE_ENGINE == SE_ORANGEBOXVALVE || SOURCE_ENGINE == SE_CSS
|
|
|
|
|
if (g_InSoundHook)
|
|
|
|
|
{
|
|
|
|
|
SH_CALL(enginesoundPatch,
|
|
|
|
@@ -811,7 +811,7 @@ static cell_t EmitSound(IPluginContext *pContext, const cell_t *params)
|
|
|
|
|
soundtime,
|
|
|
|
|
speakerentity);
|
|
|
|
|
}
|
|
|
|
|
#elif SOURCE_ENGINE == SE_ORANGEBOXVALVE
|
|
|
|
|
#elif SOURCE_ENGINE == SE_ORANGEBOXVALVE || SOURCE_ENGINE == SE_CSS
|
|
|
|
|
if (g_InSoundHook)
|
|
|
|
|
{
|
|
|
|
|
SH_CALL(enginesoundPatch,
|
|
|
|
@@ -984,7 +984,7 @@ static cell_t EmitSentence(IPluginContext *pContext, const cell_t *params)
|
|
|
|
|
#endif
|
|
|
|
|
flags,
|
|
|
|
|
pitch,
|
|
|
|
|
#if SOURCE_ENGINE == SE_ORANGEBOXVALVE
|
|
|
|
|
#if SOURCE_ENGINE == SE_ORANGEBOXVALVE || SOURCE_ENGINE == SE_CSS
|
|
|
|
|
0,
|
|
|
|
|
#endif
|
|
|
|
|
pOrigin,
|
|
|
|
|