Update some things

This commit is contained in:
2022-03-15 17:34:23 +00:00
parent 4112b7fee2
commit e6be5e0427
5 changed files with 9 additions and 8 deletions

View File

@ -7,8 +7,7 @@
namespace bots {
namespace {
typedef std::pair<std::string, std::string> bot_entry;
using bot_entry = std::pair<std::string, std::string>;
std::vector<bot_entry> bot_names;
utils::hook::detour sv_bot_name_random_hook;

View File

@ -13,6 +13,7 @@ std::unordered_set<std::uint64_t> mute_list{};
void mute_player(const game::client_s* cl) {
std::unique_lock<std::mutex> _(chat_mutex);
if (mute_list.contains(cl->xuid)) {
game::SV_GameSendServerCommand(
-1, game::SV_CMD_CAN_IGNORE,
@ -25,6 +26,7 @@ void mute_player(const game::client_s* cl) {
void unmute_player(const game::client_s* cl) {
std::unique_lock<std::mutex> _(chat_mutex);
mute_list.erase(cl->xuid);
game::SV_GameSendServerCommand(

View File

@ -220,7 +220,7 @@ typedef enum : char {
DVAR_TYPE_INT64 = 0x9,
DVAR_TYPE_LINEAR_COLOR_RGB = 0xA,
DVAR_TYPE_COLOR_XYZ = 0xB,
DVAR_TYPE_COUNT = 0xC
DVAR_TYPE_COUNT = 0xC,
} dvarType_t;
union DvarValue {