diff --git a/VCS PC/CCamera.cpp b/VCS PC/CCamera.cpp index d1595ca..86b65f9 100644 --- a/VCS PC/CCamera.cpp +++ b/VCS PC/CCamera.cpp @@ -66,4 +66,30 @@ void CCamera::GetScreenRect(CRect& rect) rect.x1 = (RsGlobal.MaximumWidth / 4) * dScreenHeightWeWannaCut; rect.x2 = RsGlobal.MaximumWidth - (RsGlobal.MaximumWidth / 4) * dScreenHeightWeWannaCut; } -} \ No newline at end of file +} + +static StaticPatcher Patcher([](){ + static const float fRegularFov = CAMERA_FOV_REGULAR; + Memory::Patch(0x52C9DB, &fRegularFov); + Memory::Patch(0x522F3A, &fRegularFov); + Memory::Patch(0x522F5D, &fRegularFov); + Memory::Patch(0x521CB7, &fRegularFov); + Memory::Patch(0x521CC4, &fRegularFov); + Memory::Patch(0x521CD0, &fRegularFov); + Memory::Patch(0x521D43, &fRegularFov); + Memory::Patch(0x521D50, &fRegularFov); + Memory::Patch(0x521D5C, &fRegularFov); + Memory::Patch(0x524B76, &fRegularFov); + Memory::Patch(0x524B9A, &fRegularFov); + Memory::Patch(0x524BA2, &fRegularFov); + Memory::Patch(0x524BD3, &fRegularFov); + + static const float fIncarMaxFov = CAMERA_FOV_INCAR_MAX; + Memory::Patch(0x524BB4, &fIncarMaxFov); + + Memory::Patch(0x522F7A, CAMERA_FOV_REGULAR); + Memory::Patch(0x521632, CAMERA_FOV_REGULAR); + Memory::Patch(0x524BE4, CAMERA_FOV_REGULAR); + + Memory::Patch(0x524BC5, CAMERA_FOV_INCAR_MAX); + }); \ No newline at end of file diff --git a/VCS PC/CCamera.h b/VCS PC/CCamera.h index fe953fa..847945f 100644 --- a/VCS PC/CCamera.h +++ b/VCS PC/CCamera.h @@ -5,6 +5,8 @@ #include "CCam.h" #define CAMERA_FOV_REGULAR 55.0f +#define CAMERA_FOV_AIMWEAPON CAMERA_FOV_REGULAR +#define CAMERA_FOV_INCAR_MAX (CAMERA_FOV_REGULAR+30.0f) enum eCamMode { diff --git a/VCS PC/Hud.cpp b/VCS PC/Hud.cpp index 562a911..c888694 100644 Binary files a/VCS PC/Hud.cpp and b/VCS PC/Hud.cpp differ diff --git a/VCS PC/StdAfx.h b/VCS PC/StdAfx.h index 9eaf164..9b726b3 100644 --- a/VCS PC/StdAfx.h +++ b/VCS PC/StdAfx.h @@ -63,6 +63,7 @@ //#define FANCY_FRONTEND_CONTROLLERS_TEST #define SHOW_FOV_FANCY_RHYME #define NO_REPLAY_TEXT +#define SKIP_DEBUG_TEXTS //#define RWERRORSET_HOOK //#define CONTROLLABLE_WINDOWS_TEST //#define MULTITHREADING_TEST