From ed851ccd3f01bdca07ba0e58cf67fd4e2ec51fbf Mon Sep 17 00:00:00 2001 From: itsmattkc Date: Sat, 18 Jan 2020 14:46:05 +1100 Subject: [PATCH] added FOVMultiplier patch --- Rebuilder/Rebuilder.cs | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/Rebuilder/Rebuilder.cs b/Rebuilder/Rebuilder.cs index b5ea938..01241f7 100644 --- a/Rebuilder/Rebuilder.cs +++ b/Rebuilder/Rebuilder.cs @@ -191,6 +191,17 @@ namespace Rebuilder get { return disable_autofinish_building; } set { disable_autofinish_building = value; } } + + decimal fov_multiplier = 0.1M; + [Category("Graphics")] + [DisplayName("Field of View Adjustment")] + [Description("Globally adjusts the field of view by a multiplier\n\n" + + "0.1 = Default (smaller than 0.1 is more zoomed in, larger than 0.1 is more zoomed out")] + public decimal FOVMultiplier + { + get { return fov_multiplier; } + set { fov_multiplier = value; } + } }; PatchList patch_config = new PatchList(); @@ -426,8 +437,23 @@ namespace Rebuilder WriteString(lego1dll, jukebox_path, aug_build ? 0xD28F6 : 0xD2E66); } + // FOV Patch + WriteByte(lego1dll, 0xEB, aug_build ? 0x0 : 0xA22D7); + WriteByte(lego1dll, 0xC9); + //WriteByte(lego1dll, 0x90); + //WriteByte(lego1dll, 0x90); + + WriteByte(lego1dll, 0x68, aug_build ? 0x0 : 0xA22A2); + WriteFloat(lego1dll, (float)patch_config.FOVMultiplier); + WriteByte(lego1dll, 0xD8); + WriteByte(lego1dll, 0x0C); + WriteByte(lego1dll, 0x24); + WriteByte(lego1dll, 0x5E); + WriteByte(lego1dll, 0xEB); + WriteByte(lego1dll, 0x2E); + // FPS Patch - + if (patch_config.FPSLimit == FPSLimitType.Uncapped) { // Write zero frame delay resulting in uncapped frame rate