From 8e58a3ada803f419b76c6a996691cb61114c9656 Mon Sep 17 00:00:00 2001 From: TotallyNotElite <1yourexperiment@protonmail.com> Date: Mon, 28 Jan 2019 20:45:37 +0100 Subject: [PATCH] Fix invis spy hitbox cache missing --- src/entityhitboxcache.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/entityhitboxcache.cpp b/src/entityhitboxcache.cpp index d442af8c..c73bea30 100644 --- a/src/entityhitboxcache.cpp +++ b/src/entityhitboxcache.cpp @@ -128,7 +128,11 @@ matrix3x4_t *EntityHitboxCache::GetBones() // std::lock_guard lock(setupbones_mutex); if (g_Settings.is_create_move) { - PROF_SECTION(bone_test); + if (IsPlayerInvisible(parent_ref)) + { + parent_ref->InternalEntity()->SetupBones(bones, MAXSTUDIOBONES, 0x7FF00, bones_setup_time); + } + PROF_SECTION(bone_cache); auto to_copy = CE_VAR(parent_ref, 0x838, matrix3x4_t *); if (to_copy) {