From 5f4f498a1e79f9fb19ce07558ba05185937f8d0a Mon Sep 17 00:00:00 2001 From: Maurice Heumann Date: Sat, 7 Jan 2023 13:46:09 +0100 Subject: [PATCH] Prepare team assignment fix --- src/client/component/getinfo.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/client/component/getinfo.cpp b/src/client/component/getinfo.cpp index 6ad3bf68..10972990 100644 --- a/src/client/component/getinfo.cpp +++ b/src/client/component/getinfo.cpp @@ -6,6 +6,7 @@ #include "network.hpp" +#include #include #include @@ -27,10 +28,17 @@ namespace getinfo } } + int get_assigned_team() + { + return (rand() % 2) + 1; + } + struct component final : generic_component { void post_unpack() override { + //utils::hook::jump(game::select(0x142254EF0, 0x140537730), get_assigned_team); + network::on("getInfo", [](const game::netadr_t& target, const network::data_view& data) { utils::info_string info{};