diff --git a/deps/GSL b/deps/GSL index 3325bbd..543d0dd 160000 --- a/deps/GSL +++ b/deps/GSL @@ -1 +1 @@ -Subproject commit 3325bbd33d24d1f8f5a0f69e782c92ad5a39a68e +Subproject commit 543d0dd3fe966ddf20e884b44e5fdbf12cb43784 diff --git a/deps/gsc-tool b/deps/gsc-tool index 2d9781c..c9bd8e5 160000 --- a/deps/gsc-tool +++ b/deps/gsc-tool @@ -1 +1 @@ -Subproject commit 2d9781ce0ce9e8551eaf040d7761fd986f33cfdc +Subproject commit c9bd8e5c6aec6ec77f7089208892871c9eb8597a diff --git a/deps/libtomcrypt b/deps/libtomcrypt index a6b9aff..c421e57 160000 --- a/deps/libtomcrypt +++ b/deps/libtomcrypt @@ -1 +1 @@ -Subproject commit a6b9aff7aab857fe1b491710a5c5b9e2be49cb08 +Subproject commit c421e570c6ba6c2c0999f99386314f38948af8e0 diff --git a/deps/libtommath b/deps/libtommath index e823b0c..839ae9e 160000 --- a/deps/libtommath +++ b/deps/libtommath @@ -1 +1 @@ -Subproject commit e823b0c34cea291bdb94d672731e1c1f08525557 +Subproject commit 839ae9ea66718705fba2b5773d1bdfb2b457cea4 diff --git a/deps/minhook b/deps/minhook index c3fcafd..1e9ad1e 160000 --- a/deps/minhook +++ b/deps/minhook @@ -1 +1 @@ -Subproject commit c3fcafdc10146beb5919319d0683e44e3c30d537 +Subproject commit 1e9ad1eb42db11bfcb65461f687c656612d1b555 diff --git a/src/client/component/patches.cpp b/src/client/component/patches.cpp index b58e53c..878d3f6 100644 --- a/src/client/component/patches.cpp +++ b/src/client/component/patches.cpp @@ -339,6 +339,9 @@ namespace patches game::Dvar_RegisterInt("scr_gun_winlimit", 1, 0, 10, game::DVAR_FLAG_REPLICATED, "Win limit for Gun Game"); game::Dvar_RegisterInt("scr_gun_scorelimit", 18, 1, 1000, game::DVAR_FLAG_REPLICATED, "Score limit for Gun Game"); + // Remove cheat protection from r_hudOutlinePostMode + utils::hook::set(0x1405DDF23 + 2, 0x40); + // Patch game chat on resolutions higher than 1080p to use the right font utils::hook::call(0x14025C825, get_chat_font_handle); utils::hook::call(0x1402BC42F, get_chat_font_handle); diff --git a/src/client/game/demonware/services/bdStorage.cpp b/src/client/game/demonware/services/bdStorage.cpp index d628a29..cf7fcba 100644 --- a/src/client/game/demonware/services/bdStorage.cpp +++ b/src/client/game/demonware/services/bdStorage.cpp @@ -17,7 +17,7 @@ namespace demonware { std::string get_motd_text() { - return "This is not a copy & pasted client"; + return "Welcome to iw6-mod. Did you know aiming down sights increases accuracy? Online Interactions Not Rated by the ESRB."; } } diff --git a/src/client/resources/dw/motd.txt b/src/client/resources/dw/motd.txt index 97724ba..3e2b75f 100644 --- a/src/client/resources/dw/motd.txt +++ b/src/client/resources/dw/motd.txt @@ -1 +1 @@ -Welcome to iw6-mod. This is not a copy & pasted project. \ No newline at end of file +Welcome to iw6-mod. Did you know aiming down sights increases accuracy? Online Interactions Not Rated by the ESRB. \ No newline at end of file diff --git a/src/common/utils/string.hpp b/src/common/utils/string.hpp index 6909e3e..75a8117 100644 --- a/src/common/utils/string.hpp +++ b/src/common/utils/string.hpp @@ -29,7 +29,7 @@ namespace utils::string while (true) { - const int res = vsnprintf(entry->buffer_, entry->size_, format, ap); + const auto res = vsnprintf_s(entry->buffer_, entry->size_, _TRUNCATE, format, ap); if (res > 0) break; // Success if (res == 0) return nullptr; // Error