steam relay networking
This commit is contained in:
@@ -25,6 +25,12 @@ void CBaseEntity::Spawn()
|
||||
|
||||
void CBaseEntity::SetAbsAngles( float fPitch, float fYaw, float fRoll )
|
||||
{
|
||||
versor q;
|
||||
glm_euler_yzx_quat((vec3){fPitch, fYaw, fRoll}, q);
|
||||
m_vRotation.x = q[0];
|
||||
m_vRotation.y = q[1];
|
||||
m_vRotation.z = q[2];
|
||||
m_vRotation.w = q[3];
|
||||
}
|
||||
|
||||
void CBaseEntity::SetAbsOrigin( Vector origin )
|
||||
@@ -42,7 +48,6 @@ void CBaseEntity::SetScale( float fScale )
|
||||
|
||||
QAngle CBaseEntity::GetAbsQAngles( void )
|
||||
{
|
||||
|
||||
}
|
||||
Quat CBaseEntity::GetAbsAngles( void )
|
||||
{
|
||||
@@ -119,7 +124,9 @@ BEGIN_DATADESC_NOBASE(CBaseEntity)
|
||||
END_DATADESC()
|
||||
|
||||
IMPLEMENT_SEND_DT_NOBASE(CBaseEntity)
|
||||
NetPropFloat3(m_vPosition)
|
||||
NetPropFloat3(m_vPosition),
|
||||
NetPropQuaternion(m_vRotation),
|
||||
NetPropFloat3(m_vScale),
|
||||
END_SEND_DT()
|
||||
|
||||
IMPLEMENT_EMPTY_RECV_DT_NOBASE(CBaseEntity)
|
||||
|
||||
Reference in New Issue
Block a user