From 74fd51983eb5cd746f6ac57d1c31fef3aa953089 Mon Sep 17 00:00:00 2001 From: m Date: Tue, 31 May 2022 17:01:02 -0500 Subject: [PATCH] changes to bullet component --- src/client/component/bullet.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/component/bullet.cpp b/src/client/component/bullet.cpp index d58e42b1..72f6f4ff 100644 --- a/src/client/component/bullet.cpp +++ b/src/client/component/bullet.cpp @@ -10,7 +10,7 @@ namespace bullet { namespace { - game::dvar_t* bg_surface_penetration = nullptr; + game::dvar_t* bg_surface_penetration; utils::hook::detour bg_get_surface_penetration_depth_hook; float bg_get_surface_penetration_depth_stub(game::Weapon weapon, bool is_alternate, int surface_type) @@ -35,7 +35,7 @@ namespace bullet } bg_surface_penetration = dvars::register_float("bg_surfacePenetration", 0.0f, - 0.0f, std::numeric_limits::max(), game::DVAR_FLAG_SAVED, + 0.0f, std::numeric_limits::max(), 0, "Set to a value greater than 0 to override the surface penetration depth"); bg_get_surface_penetration_depth_hook.create(0x2E1110_b, &bg_get_surface_penetration_depth_stub);