Tekno Don't sue please I did not coby baste anything

This commit is contained in:
2022-05-17 16:33:02 +02:00
parent cd35845b4a
commit 8b03d47cc9
13 changed files with 183 additions and 21 deletions

View File

@@ -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());