From 00da503b3db5e7fb7db6c884cfdc4824c5eac7eb Mon Sep 17 00:00:00 2001 From: sr0 Date: Wed, 30 Dec 2015 21:29:48 +0100 Subject: [PATCH] stuff :) --- src/Components/Modules/Console.cpp | 4 +-- src/Components/Modules/Localization.cpp | 18 +++++++++++ src/Components/Modules/QuickPatch.cpp | 40 +++++++++++++++++++++++++ 3 files changed, 60 insertions(+), 2 deletions(-) diff --git a/src/Components/Modules/Console.cpp b/src/Components/Modules/Console.cpp index 896b8ce7..e15b7716 100644 --- a/src/Components/Modules/Console.cpp +++ b/src/Components/Modules/Console.cpp @@ -25,8 +25,8 @@ namespace Components // External console Utils::Hook::Nop(0x60BB58, 11); - // Console '%s: %s> ' string - Utils::Hook::Set(0x5A44B4, "IW4x > "); + // Console '%s: %s> ' string - TODO: add buildnumber here + Utils::Hook::Set(0x5A44B4, "IW4x: r123> "); // Internal console Utils::Hook(0x4F690C, Console::ToggleConsole, HOOK_CALL).Install()->Quick(); diff --git a/src/Components/Modules/Localization.cpp b/src/Components/Modules/Localization.cpp index b2feb288..3e8d921c 100644 --- a/src/Components/Modules/Localization.cpp +++ b/src/Components/Modules/Localization.cpp @@ -36,6 +36,24 @@ namespace Components Localization::Set("MENU_SEARCHINGFORGAMES_100MS", ""); Localization::Set("MP_SEARCHING_FOR_PLAYER", "Waiting"); Localization::Set("MENU_WAITING_FOR_MORE_PLAYERS_TEAMS", "Waiting for more players to balance teams"); + Localization::Set("MENU_MOTD", "News"); + Localization::Set("MENU_MOTD_CAPS", "NEWS"); + Localization::Set("MPUI_MOTD_TEXT", "Welcome to ReactIW4 Multiplayer!"); + Localization::Set("MENU_MODS", "Mods"); + Localization::Set("MENU_MODS_CAPS", "MODS"); + Localization::Set("MPUI_DESC_MODS", "Browse your Mods."); + Localization::Set("MENU_THEATER", "Theater"); + Localization::Set("MENU_THEATER_CAPS", "THEATER"); + Localization::Set("MPUI_DESC_THEATER", "View your played matches."); + Localization::Set("MENU_FOV", "Field of View"); + Localization::Set("MENU_NOBORDER", "Disable Window Border"); + Localization::Set("MENU_MAXPACKETS", "Max. Packets per frame"); + Localization::Set("MENU_SNAPS", "Snapshot rate"); + Localization::Set("MENU_LAGOMETER", "Show Lagometer"); + Localization::Set("MENU_DRAWFPS", "Show FPS"); + Localization::Set("MENU_FPSLABELS", "Show FPS Labels"); + Localization::Set("MPUI_DESC_OPTIONS", "Set your game options."); + Localization::Set("MPUI_DESC_QUIT", "Quit the game."); // Don't perform non-english localization here, do it in fastfiles instead //Localization::Set("MP_SEARCHING_FOR_PLAYER", "Warte"); diff --git a/src/Components/Modules/QuickPatch.cpp b/src/Components/Modules/QuickPatch.cpp index c01a620c..ceccc44b 100644 --- a/src/Components/Modules/QuickPatch.cpp +++ b/src/Components/Modules/QuickPatch.cpp @@ -72,6 +72,43 @@ namespace Components // fs_basegame Utils::Hook::Set(0x6431D1, "data"); + // UI version string - TODO: add buildnumber here + Utils::Hook::Set(0x43F73B, "iw4x IW4x: r123"); + + // console version string + Utils::Hook::Set(0x4B12BB, "iw4x IW4x r123 (built " __DATE__ " " __TIME__ ")"); + + // version string + Utils::Hook::Set(0x60BD56, "iw4x.IW4x (r123)"); + + // console title + Utils::Hook::Set(0x4289E8, "iw4x IW4x (r123): Console"); + + // window title + Utils::Hook::Set(0x5076A0, "iw4x IW4x: Multiplayer"); + + // sv_hostname + Utils::Hook::Set(0x4D378B, "IW4Host"); + + // shortversion + Utils::Hook::Set(0x60BD91, "4.2.123"); + + // console logo + Utils::Hook::Set(0x428A66, "data/images/logo.bmp"); + + // splash logo + Utils::Hook::Set(0x475F9E, "data/images/splash.bmp"); + + // increase font sizes for chat on higher resolutions + static float float13 = 13.0f; + static float float10 = 10.0f; + + Utils::Hook::Set(0x5814AE, &float13); + Utils::Hook::Set(0x5814C8, &float10); + + // Enable commandline arguments + Utils::Hook::Set(0x464AE4, 0xEB); + // remove limit on IWD file loading Utils::Hook::Set(0x642BF3, 0xEB); @@ -92,6 +129,9 @@ namespace Components Utils::Hook::Nop(0x4AA89F, 2); Utils::Hook::Nop(0x4AA8A1, 6); + // Rename stat file - TODO: beautify + strcpy((char*)0x71C048, "iw4x.stat"); + // Patch stats steamid Utils::Hook::Nop(0x682EBF, 20); Utils::Hook::Nop(0x6830B1, 20);