From 8d351fb2057f35c43219d0bd57eeb89bcb267b10 Mon Sep 17 00:00:00 2001 From: Diavolo Date: Wed, 24 Aug 2022 17:59:45 +0200 Subject: [PATCH] [Vote] Replicate g_allowVote --- src/Components/Modules/Vote.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Components/Modules/Vote.cpp b/src/Components/Modules/Vote.cpp index 26246604..93f53763 100644 --- a/src/Components/Modules/Vote.cpp +++ b/src/Components/Modules/Vote.cpp @@ -317,6 +317,9 @@ namespace Components Vote::Vote() { + // Replicate g_allowVote + Utils::Hook::Set(0x5E3A4F, Game::DVAR_INTERNAL | Game::DVAR_CODINFO); + ClientCommand::Add("callvote", Cmd_CallVote_f); ClientCommand::Add("vote", Cmd_Vote_f);