mirror of
https://github.com/diamante0018/MW3ServerFreezer.git
synced 2025-11-30 22:57:48 +00:00
Tekno Don't sue please I did not coby baste anything
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
|
||||
#include "command.hpp"
|
||||
#include "key_catcher.hpp"
|
||||
#include "console.hpp"
|
||||
|
||||
namespace exploit {
|
||||
game::dvar_t* cl_exploit;
|
||||
@@ -81,11 +82,13 @@ 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");
|
||||
});
|
||||
|
||||
command::add("undo_exploit",
|
||||
[]([[maybe_unused]] const command::params& params) {
|
||||
game::Dvar_SetBool(cl_exploit, false);
|
||||
console::print("Disabled cl_exploit");
|
||||
});
|
||||
|
||||
command::add(
|
||||
@@ -97,6 +100,7 @@ private:
|
||||
return;
|
||||
|
||||
const auto cmd = std::format("queryserverinfo ;{}", params.join(1));
|
||||
console::print("Sending OOB packet {}", cmd);
|
||||
game::NET_OutOfBandPrint(game::NS_SERVER,
|
||||
game::localClientConnection->serverAddress,
|
||||
cmd.data());
|
||||
|
||||
Reference in New Issue
Block a user