@@ -1343,16 +1343,14 @@ static cell_t EmitSoundEntry(IPluginContext *pContext, const cell_t *params)
13431343 if (g_InSoundHook)
13441344 {
13451345#if SOURCE_ENGINE == SE_CSGO || SOURCE_ENGINE == SE_BLADE || SOURCE_ENGINE == SE_MCV
1346- SH_CALL (enginesoundPatch,
1347- static_cast <int (IEngineSound::*)(IRecipientFilter &, int , int , const char *, unsigned int , const char *, float ,
1346+ KHook::CallOriginal<int (IEngineSound::*)(IRecipientFilter &, int , int , const char *, unsigned int , const char *, float ,
13481347 soundlevel_t , int , int , int , const Vector *, const Vector *, CUtlVector<Vector> *, bool , float , int , void *)>
1349- (&IEngineSound::EmitSound))( crf, player[0 ], channel, soundEntry, soundEntryHash, sample, vol, (soundlevel_t )level, seed,
1348+ (&IEngineSound::EmitSound, engsound, crf, player[0 ], channel, soundEntry, soundEntryHash, sample, vol, (soundlevel_t )level, seed,
13501349 flags, pitch, pOrigin, pDir, pOrigVec, updatePos, soundtime, speakerentity, nullptr );
13511350#else
1352- SH_CALL (enginesoundPatch,
1353- static_cast <int (IEngineSound::*)(IRecipientFilter &, int , int , const char *, unsigned int , const char *, float ,
1351+ KHook::CallOriginal<int (IEngineSound::*)(IRecipientFilter &, int , int , const char *, unsigned int , const char *, float ,
13541352 soundlevel_t , int , int , int , const Vector *, const Vector *, CUtlVector<Vector> *, bool , float , int )>
1355- ( &IEngineSound::EmitSound))( crf, player[0 ], channel, soundEntry, soundEntryHash, sample, vol, (soundlevel_t )level, seed,
1353+ &IEngineSound::EmitSound, engsound, crf, player[0 ], channel, soundEntry, soundEntryHash, sample, vol, (soundlevel_t )level, seed,
13561354 flags, pitch, pOrigin, pDir, pOrigVec, updatePos, soundtime, speakerentity);
13571355#endif
13581356 }
@@ -1367,16 +1365,14 @@ SH_CALL(enginesoundPatch,
13671365 if (g_InSoundHook)
13681366 {
13691367#if SOURCE_ENGINE == SE_CSGO || SOURCE_ENGINE == SE_BLADE || SOURCE_ENGINE == SE_MCV
1370- SH_CALL (enginesoundPatch,
1371- static_cast <int (IEngineSound::*)(IRecipientFilter &, int , int , const char *, unsigned int , const char *, float ,
1368+ KHook::CallOriginal<int (IEngineSound::*)(IRecipientFilter &, int , int , const char *, unsigned int , const char *, float ,
13721369 soundlevel_t , int , int , int , const Vector *, const Vector *, CUtlVector<Vector> *, bool , float , int , void *)>
1373- (&IEngineSound::EmitSound))( crf, entity, channel, soundEntry, soundEntryHash, sample, vol, (soundlevel_t )level,
1370+ (&IEngineSound::EmitSound, engsound, crf, entity, channel, soundEntry, soundEntryHash, sample, vol, (soundlevel_t )level,
13741371 seed, flags, pitch, pOrigin, pDir, pOrigVec, updatePos, soundtime, speakerentity, nullptr );
13751372#else
1376- SH_CALL (enginesoundPatch,
1377- static_cast <int (IEngineSound::*)(IRecipientFilter &, int , int , const char *, unsigned int , const char *, float ,
1373+ KHook::CallOriginal<int (IEngineSound::*)(IRecipientFilter &, int , int , const char *, unsigned int , const char *, float ,
13781374 soundlevel_t , int , int , int , const Vector *, const Vector *, CUtlVector<Vector> *, bool , float , int )>
1379- (&IEngineSound::EmitSound))( crf, entity, channel, soundEntry, soundEntryHash, sample, vol, (soundlevel_t )level,
1375+ (&IEngineSound::EmitSound, engsound, crf, entity, channel, soundEntry, soundEntryHash, sample, vol, (soundlevel_t )level,
13801376 seed, flags, pitch, pOrigin, pDir, pOrigVec, updatePos, soundtime, speakerentity);
13811377#endif
13821378 }
0 commit comments