Modified source engine (2017) developed by valve and leaked in 2020. Not for commercial purporses
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1.1 KiB

5 years ago
//========= 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