Skip to content

Commit 8c8d52f

Browse files
committed
Migrate EntWatch virtual hooks
1 parent 7db7c33 commit 8c8d52f

3 files changed

Lines changed: 113 additions & 217 deletions

File tree

src/cs2fixes.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,7 @@ bool CS2Fixes::Load(PluginId id, ISmmAPI* ismm, char* error, size_t maxlen, bool
393393
g_pPanoramaVoteHandler = new CPanoramaVoteHandler();
394394
g_pEWHandler = new CEWHandler();
395395

396+
g_pEWHandler->CreateHooks();
396397
RegisterWeaponCommands();
397398

398399
// Check hide distance
@@ -532,8 +533,7 @@ bool CS2Fixes::Unload(char* error, size_t maxlen)
532533

533534
if (g_pEWHandler)
534535
{
535-
g_pEWHandler->RemoveAllUseHooks();
536-
g_pEWHandler->RemoveAllTriggers();
536+
g_pEWHandler->RemoveHooks();
537537
delete g_pEWHandler;
538538
}
539539

0 commit comments

Comments
 (0)