game(hl1): fix UTIL_DropToFloor

This commit is contained in:
nillerusr
2022-08-31 18:22:56 +03:00
parent 1fe1d7b419
commit fafc3554a5
7 changed files with 53 additions and 27 deletions
+3 -2
View File
@@ -5525,6 +5525,7 @@ class CPhysicsPropMultiplayer : public CPhysicsProp, public IMultiplayerPhysics
{
m_iPhysicsMode = PHYSICS_MULTIPLAYER_AUTODETECT;
m_usingCustomCollisionBounds = false;
m_fMass = 0.f;
}
// IBreakableWithPropData:
@@ -5618,8 +5619,8 @@ class CPhysicsPropMultiplayer : public CPhysicsProp, public IMultiplayerPhysics
SetCollisionGroup( COLLISION_GROUP_DEBRIS );
}
if(VPhysicsGetObject())
m_fMass = VPhysicsGetObject()->GetMass();
if(VPhysicsGetObject())
m_fMass = VPhysicsGetObject()->GetMass();
// VPhysicsGetObject() is NULL on the client, which prevents the client from finding a decent
// AABB surrounding the collision bounds. If we've got a VPhysicsGetObject()->GetCollide(), we'll