@@ -51,7 +51,6 @@ extern CCSGameRules *g_pGameRules;
5151DECLARE_DETOUR (UTIL_SayTextFilter, Detour_UTIL_SayTextFilter);
5252DECLARE_DETOUR (UTIL_SayText2Filter, Detour_UTIL_SayText2Filter);
5353// DECLARE_DETOUR(IsHearingClient, Detour_IsHearingClient);
54- DECLARE_DETOUR (CSoundEmitterSystem_EmitSound, Detour_CSoundEmitterSystem_EmitSound);
5554// DECLARE_DETOUR(TriggerPush_Touch, Detour_TriggerPush_Touch);
5655DECLARE_DETOUR (CGameRules_Constructor, Detour_CGameRules_Constructor);
5756// DECLARE_DETOUR(CBaseEntity_TakeDamageOld, Detour_CBaseEntity_TakeDamageOld);
@@ -72,12 +71,6 @@ static bool g_bBlockAllDamage = false;
7271FAKE_BOOL_CVAR (cs2f_block_molotov_self_dmg, " Whether to block self-damage from molotovs" , g_bBlockMolotovSelfDmg, false , false )
7372FAKE_BOOL_CVAR(cs2f_block_all_dmg, " Whether to block all damage to players" , g_bBlockAllDamage, false , false )
7473
75- void FASTCALL Detour_CSoundEmitterSystem_EmitSound(ISoundEmitterSystemBase *pSoundEmitterSystem, CEntityIndex *a2, IRecipientFilter &filter, uint32 a4, void *a5)
76- {
77- // ConMsg("Detour_CSoundEmitterSystem_EmitSound\n");
78- CSoundEmitterSystem_EmitSound (pSoundEmitterSystem, a2, filter, a4, a5);
79- }
80-
8174
8275void SayChatMessageWithTimer(IRecipientFilter &filter, const char *pText, CCSPlayerController *pPlayer, uint64 eMessageType)
8376{
@@ -289,10 +282,6 @@ bool InitDetours(CGameConfig *gameConfig)
289282 success = false ;
290283 UTIL_SayText2Filter.EnableDetour ();
291284
292- if (!CSoundEmitterSystem_EmitSound.CreateDetour (gameConfig))
293- success = false ;
294- CSoundEmitterSystem_EmitSound.EnableDetour ();
295-
296285 if (!CGameRules_Constructor.CreateDetour (gameConfig))
297286 success = false ;
298287 CGameRules_Constructor.EnableDetour ();
0 commit comments