From 97bb7ae49ba08c3c097f7098ba23e9500ecb6054 Mon Sep 17 00:00:00 2001 From: momo5502 Date: Sun, 12 Feb 2023 14:11:24 +0100 Subject: [PATCH] Send heartbeat after maprotation --- src/client/component/dedicated.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/client/component/dedicated.cpp b/src/client/component/dedicated.cpp index fd719503..6a5cde7f 100644 --- a/src/client/component/dedicated.cpp +++ b/src/client/component/dedicated.cpp @@ -38,7 +38,7 @@ namespace dedicated return; } - scheduler::once(send_heartbeat_packet, scheduler::pipeline::main, 3s); + scheduler::once(send_heartbeat_packet, scheduler::pipeline::main, 5s); } void trigger_map_rotation() @@ -48,6 +48,7 @@ namespace dedicated if (!game::get_dvar_string("sv_maprotation").empty()) { game::Cbuf_AddText(0, "map_rotate\n"); + send_heartbeat(); } }, scheduler::pipeline::main, 1s); } @@ -63,7 +64,7 @@ namespace dedicated // Fix tell command for IW4M utils::hook::call(0x14052A8CF_g, sv_con_tell_f_stub); - scheduler::loop(send_heartbeat, scheduler::pipeline::server, 10min); + scheduler::loop(send_heartbeat, scheduler::pipeline::main, 5min); command::add("heartbeat", send_heartbeat); // Hook GScr_ExitLevel