mirror of
https://github.com/diamante0018/MW3ServerFreezer.git
synced 2025-11-30 22:57:48 +00:00
Refactor console ending this saga
This commit is contained in:
@@ -82,17 +82,17 @@ private:
|
||||
static void add_exploit_commands() {
|
||||
command::add("exploit", []([[maybe_unused]] const command::params& params) {
|
||||
game::Dvar_SetBool(cl_exploit, true);
|
||||
console::print("Enabled cl_exploit");
|
||||
console::info("Enabled cl_exploit");
|
||||
});
|
||||
|
||||
command::add("undo_exploit",
|
||||
command::add("undoExploit",
|
||||
[]([[maybe_unused]] const command::params& params) {
|
||||
game::Dvar_SetBool(cl_exploit, false);
|
||||
console::print("Disabled cl_exploit");
|
||||
console::info("Disabled cl_exploit");
|
||||
});
|
||||
|
||||
command::add(
|
||||
"send_command", []([[maybe_unused]] const command::params& params) {
|
||||
"sendCommand", []([[maybe_unused]] const command::params& params) {
|
||||
if (params.size() < 2)
|
||||
return;
|
||||
|
||||
@@ -100,7 +100,7 @@ private:
|
||||
return;
|
||||
|
||||
const auto cmd = std::format("queryserverinfo ;{}", params.join(1));
|
||||
console::print("Sending OOB packet {}", cmd);
|
||||
console::info("Sending OOB packet {}", cmd);
|
||||
game::NET_OutOfBandPrint(game::NS_SERVER,
|
||||
game::localClientConnection->serverAddress,
|
||||
cmd.data());
|
||||
|
||||
Reference in New Issue
Block a user