chore: update

This commit is contained in:
2025-11-16 21:38:02 +01:00
parent deafda9061
commit 1b78912b33
9 changed files with 11 additions and 8 deletions

2
deps/GSL vendored

Submodule deps/GSL updated: 3325bbd33d...543d0dd3fe

2
deps/gsc-tool vendored

2
deps/minhook vendored

View File

@@ -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<uint8_t>(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);

View File

@@ -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.";
}
}

View File

@@ -1 +1 @@
Welcome to iw6-mod. This is not a copy & pasted project.
Welcome to iw6-mod. Did you know aiming down sights increases accuracy? Online Interactions Not Rated by the ESRB.

View File

@@ -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