Skip to content
Permalink
Browse files

Stream-in attached objects (fixes #623)

  • Loading branch information...
botder committed Oct 30, 2018
1 parent bc94009 commit 3ab471ccb3de31757741da22a60b6132461d362b
Showing with 13 additions and 0 deletions.
  1. +11 −0 Client/mods/deathmatch/logic/CClientObject.cpp
  2. +2 −0 Client/mods/deathmatch/logic/CClientObject.h
@@ -174,6 +174,17 @@ void CClientObject::SetRotationRadians(const CVector& vecRotation)
m_vecRotation = vecRotation;
}

void CClientObject::AttachTo(CClientEntity* pEntity)
{
CClientEntity::AttachTo(pEntity);

if (m_pAttachedToEntity)
{
DoAttaching();
UpdateStreamPosition(m_vecPosition);
}
}

void CClientObject::GetOrientation(CVector& vecPosition, CVector& vecRotationRadians)
{
GetPosition(vecPosition);
@@ -48,6 +48,8 @@ class CClientObject : public CClientStreamElement
void SetRotationDegrees(const CVector& vecRotation);
virtual void SetRotationRadians(const CVector& vecRotation);

void AttachTo(CClientEntity* pEntity) override;

void GetMoveSpeed(CVector& vecMoveSpeed) const;
void SetMoveSpeed(const CVector& vecMoveSpeed);

0 comments on commit 3ab471c

Please sign in to comment.
You can’t perform that action at this time.