From c60922bb4ef4b82a7ce5d6e10976b8c5c4da787f Mon Sep 17 00:00:00 2001 From: SmileyAG <58108407+SmileyAG@users.noreply.github.com> Date: Tue, 31 Jan 2023 05:06:10 +0400 Subject: [PATCH 1/3] cvars: define 'bxt_collision_depth_map_fov' --- BunnymodXT/cvars.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/BunnymodXT/cvars.hpp b/BunnymodXT/cvars.hpp index c266ffb9..ba147b99 100644 --- a/BunnymodXT/cvars.hpp +++ b/BunnymodXT/cvars.hpp @@ -108,6 +108,7 @@ X(bxt_collision_depth_map_max_depth, "1000") \ X(bxt_collision_depth_map_pixel_scale, "8") \ X(bxt_collision_depth_map_remove_distance_limit, "1") \ + X(bxt_collision_depth_map_fov, "0") \ X(bxt_unlock_camera_during_pause, "0") \ X(bxt_hud, "1") \ X(bxt_hud_color, "") \ From d4701943d52108c6ce3306e0d122e8f9ec386996 Mon Sep 17 00:00:00 2001 From: SmileyAG <58108407+SmileyAG@users.noreply.github.com> Date: Tue, 31 Jan 2023 05:08:02 +0400 Subject: [PATCH 2/3] hwdll: register 'bxt_collision_depth_map_fov' --- BunnymodXT/modules/HwDLL.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/BunnymodXT/modules/HwDLL.cpp b/BunnymodXT/modules/HwDLL.cpp index e750ea90..3c166536 100644 --- a/BunnymodXT/modules/HwDLL.cpp +++ b/BunnymodXT/modules/HwDLL.cpp @@ -4573,6 +4573,7 @@ void HwDLL::RegisterCVarsAndCommandsIfNeeded() RegisterCVar(CVars::bxt_collision_depth_map_max_depth); RegisterCVar(CVars::bxt_collision_depth_map_pixel_scale); RegisterCVar(CVars::bxt_collision_depth_map_remove_distance_limit); + RegisterCVar(CVars::bxt_collision_depth_map_fov); RegisterCVar(CVars::bxt_force_zmax); RegisterCVar(CVars::bxt_viewmodel_disable_idle); RegisterCVar(CVars::bxt_viewmodel_disable_equip); From 734a4115efd94e9a305f37c1faf552b04e4d886a Mon Sep 17 00:00:00 2001 From: SmileyAG <58108407+SmileyAG@users.noreply.github.com> Date: Tue, 31 Jan 2023 05:10:41 +0400 Subject: [PATCH 3/3] hud_custom: apply changes for 'bxt_collision_depth_map_fov' --- BunnymodXT/hud_custom.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/BunnymodXT/hud_custom.cpp b/BunnymodXT/hud_custom.cpp index c6bc9692..65d857a0 100644 --- a/BunnymodXT/hud_custom.cpp +++ b/BunnymodXT/hud_custom.cpp @@ -1168,7 +1168,9 @@ namespace CustomHud const float aspect_ratio = (float)si.iHeight / (float)si.iWidth; float fov_getfloat; - if (CVars::bxt_force_fov.GetFloat() >= 1.0) + if (CVars::bxt_collision_depth_map_fov.GetFloat() >= 1.0) + fov_getfloat = CVars::bxt_collision_depth_map_fov.GetFloat(); + else if (CVars::bxt_force_fov.GetFloat() >= 1.0) fov_getfloat = CVars::bxt_force_fov.GetFloat(); else fov_getfloat = CVars::default_fov.GetFloat();