This commit is contained in:
sr0 2015-12-30 21:29:48 +01:00
parent 556a8594af
commit 00da503b3d
3 changed files with 60 additions and 2 deletions

View File

@ -25,8 +25,8 @@ namespace Components
// External console
Utils::Hook::Nop(0x60BB58, 11);
// Console '%s: %s> ' string
Utils::Hook::Set<char*>(0x5A44B4, "IW4x > ");
// Console '%s: %s> ' string - TODO: add buildnumber here
Utils::Hook::Set<char*>(0x5A44B4, "IW4x: r123> ");
// Internal console
Utils::Hook(0x4F690C, Console::ToggleConsole, HOOK_CALL).Install()->Quick();

View File

@ -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");

View File

@ -72,6 +72,43 @@ namespace Components
// fs_basegame
Utils::Hook::Set<char*>(0x6431D1, "data");
// UI version string - TODO: add buildnumber here
Utils::Hook::Set<char*>(0x43F73B, "iw4x IW4x: r123");
// console version string
Utils::Hook::Set<char*>(0x4B12BB, "iw4x IW4x r123 (built " __DATE__ " " __TIME__ ")");
// version string
Utils::Hook::Set<char*>(0x60BD56, "iw4x.IW4x (r123)");
// console title
Utils::Hook::Set<char*>(0x4289E8, "iw4x IW4x (r123): Console");
// window title
Utils::Hook::Set<char*>(0x5076A0, "iw4x IW4x: Multiplayer");
// sv_hostname
Utils::Hook::Set<char*>(0x4D378B, "IW4Host");
// shortversion
Utils::Hook::Set<char*>(0x60BD91, "4.2.123");
// console logo
Utils::Hook::Set<char*>(0x428A66, "data/images/logo.bmp");
// splash logo
Utils::Hook::Set<char*>(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<float*>(0x5814AE, &float13);
Utils::Hook::Set<float*>(0x5814C8, &float10);
// Enable commandline arguments
Utils::Hook::Set<BYTE>(0x464AE4, 0xEB);
// remove limit on IWD file loading
Utils::Hook::Set<BYTE>(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);