diff --git a/src/client/component/console.cpp b/src/client/component/console.cpp index db4f68c..61508df 100644 --- a/src/client/component/console.cpp +++ b/src/client/component/console.cpp @@ -73,7 +73,10 @@ namespace console void post_unpack() override { - game::Sys_ShowConsole(); + if (game::environment::is_dedi() || !utils::flags::has_flag("noconsole")) + { + game::Sys_ShowConsole(); + } if (!game::environment::is_dedi()) { diff --git a/src/client/component/fastfiles.cpp b/src/client/component/fastfiles.cpp index 7e84427..4abb02b 100644 --- a/src/client/component/fastfiles.cpp +++ b/src/client/component/fastfiles.cpp @@ -67,7 +67,7 @@ namespace fastfiles { for (auto i = 0; i < game::ASSET_TYPE_COUNT; i++) { - printf("g_poolSize[%i]: %i // %s\n", i, game::g_poolSize[i], game::g_assetNames[i]); + game_console::print(game_console::con_type_info, "g_poolSize[%i]: %i // %s\n", i, game::g_poolSize[i], game::g_assetNames[i]); } }); diff --git a/src/client/component/party.cpp b/src/client/component/party.cpp index 320913e..5de940a 100644 --- a/src/client/component/party.cpp +++ b/src/client/component/party.cpp @@ -7,6 +7,7 @@ #include "network.hpp" #include "scheduler.hpp" #include "server_list.hpp" +#include "game_console.hpp" #include "steam/steam.hpp" @@ -204,7 +205,7 @@ namespace party { if (!game::SV_MapExists(mapname.data())) { - printf("Map '%s' doesn't exist.\n", mapname.data()); + game_console::print(game_console::con_type_info, "Map '%s' doesn't exist.\n", mapname.data()); return; } @@ -212,7 +213,7 @@ namespace party if (current_mapname && utils::string::to_lower(current_mapname->current.string) == utils::string::to_lower(mapname) && (game::SV_Loaded() && !game::VirtualLobby_Loaded())) { - printf("Restarting map: %s\n", mapname.data()); + game_console::print(game_console::con_type_info, "Restarting map: %s\n", mapname.data()); command::execute("map_restart", false); return; } @@ -228,7 +229,7 @@ namespace party perform_game_initialization(); } - printf("Starting map: %s\n", mapname.data()); + game_console::print(game_console::con_type_info, "Starting map: %s\n", mapname.data()); auto* gametype = game::Dvar_FindVar("g_gametype"); if (gametype && gametype->current.string) @@ -326,7 +327,7 @@ namespace party { if (params.size() < 2) { - printf("usage: kickClient \n"); + game_console::print(game_console::con_type_info, "usage: kickClient \n"); return; } const auto client_num = atoi(params.get(1)); @@ -342,7 +343,7 @@ namespace party { if (params.size() < 2) { - printf("usage: kick \n"); + game_console::print(game_console::con_type_info, "usage: kick \n"); return; } diff --git a/src/client/component/stats.cpp b/src/client/component/stats.cpp index 2984072..5c9bc0d 100644 --- a/src/client/component/stats.cpp +++ b/src/client/component/stats.cpp @@ -22,7 +22,7 @@ namespace stats { if (params.size() < 2) { - printf("usage: setPlayerDataInt , "); + game_console::print(game_console::con_type_info, "usage: setPlayerDataInt , "); return; } @@ -39,7 +39,7 @@ namespace stats { if (params.size() < 2) { - printf("usage: getPlayerDataInt \n"); + game_console::print(game_console::con_type_info, "usage: getPlayerDataInt \n"); return; }