Skip to content
This repository was archived by the owner on Aug 22, 2024. It is now read-only.

Commit 3c8e4cb

Browse files
author
marqdevx
committed
Fix crash after update, emit sound dtour
1 parent 905e993 commit 3c8e4cb

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/detours.cpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ extern CCSGameRules *g_pGameRules;
5151
DECLARE_DETOUR(UTIL_SayTextFilter, Detour_UTIL_SayTextFilter);
5252
DECLARE_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);
5655
DECLARE_DETOUR(CGameRules_Constructor, Detour_CGameRules_Constructor);
5756
//DECLARE_DETOUR(CBaseEntity_TakeDamageOld, Detour_CBaseEntity_TakeDamageOld);
@@ -72,12 +71,6 @@ static bool g_bBlockAllDamage = false;
7271
FAKE_BOOL_CVAR(cs2f_block_molotov_self_dmg, "Whether to block self-damage from molotovs", g_bBlockMolotovSelfDmg, false, false)
7372
FAKE_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

8275
void 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

Comments
 (0)