mirror of
https://github.com/diamante0018/BlackOpsPlugin.git
synced 2025-05-10 22:34:51 +00:00
Update some things
This commit is contained in:
parent
4112b7fee2
commit
e6be5e0427
6
.github/workflows/build.yml
vendored
6
.github/workflows/build.yml
vendored
@ -44,12 +44,12 @@ jobs:
|
|||||||
uses: ammaraskar/msvc-problem-matcher@master
|
uses: ammaraskar/msvc-problem-matcher@master
|
||||||
|
|
||||||
- name: Build ${{matrix.configuration}} binaries
|
- 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
|
- name: Upload ${{matrix.configuration}} binaries
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: ${{matrix.configuration}} binaries
|
name: ${{matrix.configuration}} binaries
|
||||||
path: |
|
path: |
|
||||||
build/bin/x86/${{matrix.configuration}}/black-ops-plugin.dll
|
build/bin/Win32/${{matrix.configuration}}/black-ops-plugin.dll
|
||||||
build/bin/x86/${{matrix.configuration}}/black-ops-plugin.pdb
|
build/bin/Win32/${{matrix.configuration}}/black-ops-plugin.pdb
|
||||||
|
@ -42,7 +42,7 @@ language "C++"
|
|||||||
cppdialect "C++20"
|
cppdialect "C++20"
|
||||||
|
|
||||||
architecture "x86"
|
architecture "x86"
|
||||||
platforms "x86"
|
platforms "Win32"
|
||||||
|
|
||||||
systemversion "latest"
|
systemversion "latest"
|
||||||
symbols "On"
|
symbols "On"
|
||||||
@ -53,7 +53,7 @@ characterset "ASCII"
|
|||||||
|
|
||||||
flags { "NoIncrementalLink", "NoMinimalRebuild", "MultiProcessorCompile", "No64BitChecks" }
|
flags { "NoIncrementalLink", "NoMinimalRebuild", "MultiProcessorCompile", "No64BitChecks" }
|
||||||
|
|
||||||
filter "platforms:x86"
|
filter "platforms:Win*"
|
||||||
defines {"_WINDOWS", "WIN32"}
|
defines {"_WINDOWS", "WIN32"}
|
||||||
filter {}
|
filter {}
|
||||||
|
|
||||||
|
@ -7,8 +7,7 @@
|
|||||||
|
|
||||||
namespace bots {
|
namespace bots {
|
||||||
namespace {
|
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;
|
std::vector<bot_entry> bot_names;
|
||||||
utils::hook::detour sv_bot_name_random_hook;
|
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) {
|
void mute_player(const game::client_s* cl) {
|
||||||
std::unique_lock<std::mutex> _(chat_mutex);
|
std::unique_lock<std::mutex> _(chat_mutex);
|
||||||
|
|
||||||
if (mute_list.contains(cl->xuid)) {
|
if (mute_list.contains(cl->xuid)) {
|
||||||
game::SV_GameSendServerCommand(
|
game::SV_GameSendServerCommand(
|
||||||
-1, game::SV_CMD_CAN_IGNORE,
|
-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) {
|
void unmute_player(const game::client_s* cl) {
|
||||||
std::unique_lock<std::mutex> _(chat_mutex);
|
std::unique_lock<std::mutex> _(chat_mutex);
|
||||||
|
|
||||||
mute_list.erase(cl->xuid);
|
mute_list.erase(cl->xuid);
|
||||||
|
|
||||||
game::SV_GameSendServerCommand(
|
game::SV_GameSendServerCommand(
|
||||||
|
@ -220,7 +220,7 @@ typedef enum : char {
|
|||||||
DVAR_TYPE_INT64 = 0x9,
|
DVAR_TYPE_INT64 = 0x9,
|
||||||
DVAR_TYPE_LINEAR_COLOR_RGB = 0xA,
|
DVAR_TYPE_LINEAR_COLOR_RGB = 0xA,
|
||||||
DVAR_TYPE_COLOR_XYZ = 0xB,
|
DVAR_TYPE_COLOR_XYZ = 0xB,
|
||||||
DVAR_TYPE_COUNT = 0xC
|
DVAR_TYPE_COUNT = 0xC,
|
||||||
} dvarType_t;
|
} dvarType_t;
|
||||||
|
|
||||||
union DvarValue {
|
union DvarValue {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user