From b9330c0e7398dc4f26188411a0e9b7c0f9c09298 Mon Sep 17 00:00:00 2001 From: Silent Date: Fri, 11 Jul 2014 16:30:38 +0200 Subject: [PATCH] FOV tweaks All debug texts skipped (now useless) --- VCS PC/CCamera.cpp | 28 +++++++++++++++++++++++++++- VCS PC/CCamera.h | 2 ++ VCS PC/Hud.cpp | Bin 73002 -> 73070 bytes VCS PC/StdAfx.h | 1 + 4 files changed, 30 insertions(+), 1 deletion(-) 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 562a9117bc14de0bd7f7ffdf60c3fc9de150f80c..c888694c82367cfeb934ec8d987cd633b30d0d45 100644 GIT binary patch delta 68 zcmZ3ri{;%emJLD0lS_(4c;gxT7+e@!8JrkG8Qdq&E|!)LX7Fb4WC&o0M~DO2AwV?| MKr(o9X7Rz50G`zn0RR91 delta 38 ucmaF2i)Ga=mJLD0;&}`y45