changes to bullet component

This commit is contained in:
m 2022-05-31 17:01:02 -05:00 committed by GitHub
parent 9fc9c662e3
commit 74fd51983e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,7 +10,7 @@ namespace bullet
{ {
namespace namespace
{ {
game::dvar_t* bg_surface_penetration = nullptr; game::dvar_t* bg_surface_penetration;
utils::hook::detour bg_get_surface_penetration_depth_hook; 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) 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, bg_surface_penetration = dvars::register_float("bg_surfacePenetration", 0.0f,
0.0f, std::numeric_limits<float>::max(), game::DVAR_FLAG_SAVED, 0.0f, std::numeric_limits<float>::max(), 0,
"Set to a value greater than 0 to override the surface penetration depth"); "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); bg_get_surface_penetration_depth_hook.create(0x2E1110_b, &bg_get_surface_penetration_depth_stub);