Update some things

This commit is contained in:
6arelyFuture 2022-03-15 17:34:23 +00:00
parent 4112b7fee2
commit e6be5e0427
No known key found for this signature in database
GPG Key ID: E883E2BC9657D955
5 changed files with 9 additions and 8 deletions

View File

@ -44,12 +44,12 @@ jobs:
uses: ammaraskar/msvc-problem-matcher@master
- name: Build ${{matrix.configuration}} binaries
run: msbuild /m /v:minimal /p:Configuration=${{matrix.configuration}} build/black-ops-plugin.sln
run: msbuild /m /v:minimal /p:Configuration=${{matrix.configuration}} /p:Platform=Win32 build/black-ops-plugin.sln
- name: Upload ${{matrix.configuration}} binaries
uses: actions/upload-artifact@v2
with:
name: ${{matrix.configuration}} binaries
path: |
build/bin/x86/${{matrix.configuration}}/black-ops-plugin.dll
build/bin/x86/${{matrix.configuration}}/black-ops-plugin.pdb
build/bin/Win32/${{matrix.configuration}}/black-ops-plugin.dll
build/bin/Win32/${{matrix.configuration}}/black-ops-plugin.pdb

View File

@ -42,7 +42,7 @@ language "C++"
cppdialect "C++20"
architecture "x86"
platforms "x86"
platforms "Win32"
systemversion "latest"
symbols "On"
@ -53,7 +53,7 @@ characterset "ASCII"
flags { "NoIncrementalLink", "NoMinimalRebuild", "MultiProcessorCompile", "No64BitChecks" }
filter "platforms:x86"
filter "platforms:Win*"
defines {"_WINDOWS", "WIN32"}
filter {}

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 {