mirror of
https://github.com/celisej567/cool-source-archive.git
synced 2026-09-21 20:10:15 +03:00
22 lines
688 B
C++
22 lines
688 B
C++
#include "cbase.h"
|
|
|
|
class CBaseNetworkedRagdoll : public CBaseAnimatingOverlay
|
|
{
|
|
public:
|
|
DECLARE_CLASS( CBaseNetworkedRagdoll, CBaseAnimatingOverlay );
|
|
DECLARE_SERVERCLASS();
|
|
|
|
// Transmit ragdolls to everyone.
|
|
virtual int UpdateTransmitState()
|
|
{
|
|
return SetTransmitState( FL_EDICT_ALWAYS );
|
|
}
|
|
|
|
public:
|
|
// In case the client has the player entity, we transmit the player index.
|
|
// In case the client doesn't have it, we transmit the player's model index, origin, and angles
|
|
// so they can create a ragdoll in the right place.
|
|
CNetworkHandle( CBaseEntity, m_hPlayer ); // networked entity handle
|
|
CNetworkVector( m_vecRagdollVelocity );
|
|
CNetworkVector( m_vecRagdollOrigin );
|
|
}; |