This commit is contained in:
FluorescentCIAAfricanAmerican
2020-04-22 12:56:21 -04:00
commit 3bf9df6b27
15370 changed files with 5489726 additions and 0 deletions
+43
View File
@@ -0,0 +1,43 @@
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//=============================================================================//
#ifndef RAGDOLL_SHADOW_H
#define RAGDOLL_SHADOW_H
#ifdef _WIN32
#pragma once
#endif
#include "props.h"
class CBaseTFPlayer;
class IPhysicsObject;
//-----------------------------------------------------------------------------
// Purpose: A shadow object used to bound the position of a player ragdoll
//-----------------------------------------------------------------------------
class CRagdollShadow : public CBaseProp
{
DECLARE_CLASS( CRagdollShadow, CBaseProp );
public:
DECLARE_SERVERCLASS();
CRagdollShadow( void ) ;
virtual void Spawn( void );
virtual void Precache( void );
virtual int UpdateTransmitState() { return SetTransmitState( FL_EDICT_FULLCHECK); }
virtual int ShouldTransmit( const CCheckTransmitInfo *pInfo );
static CRagdollShadow *Create( CBaseTFPlayer *player, const Vector& force );
public:
CBaseTFPlayer *m_pPlayer;
CNetworkVar( int, m_nPlayer );
};
#endif // RAGDOLL_SHADOW_H