mirror of
https://github.com/diamante0018/BlackOpsPlugin.git
synced 2025-07-04 10:11:50 +00:00
Update some things
This commit is contained in:
@ -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;
|
||||
|
||||
|
@ -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(
|
||||
|
@ -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 {
|
||||
|
Reference in New Issue
Block a user