From 778f99ba8914b0339cb9b303704c91e9fe4566bf Mon Sep 17 00:00:00 2001 From: samisalreadytaken <46823719+samisalreadytaken@users.noreply.github.com> Date: Fri, 22 Aug 2025 23:32:31 +0300 Subject: [PATCH] Fix scaled physics prop save/restore --- src/game/server/props.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/game/server/props.cpp b/src/game/server/props.cpp index dec14e42d4c..d412f149928 100644 --- a/src/game/server/props.cpp +++ b/src/game/server/props.cpp @@ -41,6 +41,7 @@ #include "physics_collisionevent.h" #include "gamestats.h" #include "vehicle_base.h" +#include "physics_saverestore.h" #ifdef TF_DLL #include "nav_mesh/tf_nav_mesh.h" @@ -6098,6 +6099,7 @@ bool UTIL_CreateScaledPhysObject( CBaseAnimating *pInstance, float flScale ) pInstance->VPhysicsDestroyObject(); pInstance->VPhysicsSetObject( pNewObject ); + g_pPhysSaveRestoreManager->AssociateModel( pNewObject, pInstance->GetModelIndex() ); // Increase our model bounds const model_t *pModel = modelinfo->GetModel( pInstance->GetModelIndex() );