Counter Strike : Global Offensive Source Code
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.
 
 
 
 
 
 

51 lines
1.4 KiB

//========= Copyright © 1996-2005, Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
//=============================================================================//
#include "cbase.h"
#include "ragdoll_shared.h"
// memdbgon must be the last include file in a .cpp file!!!
#include "tier0/memdbgon.h"
class C_RagdollManager : public C_BaseEntity
{
public:
DECLARE_CLASS( C_RagdollManager, C_BaseEntity );
DECLARE_CLIENTCLASS();
C_RagdollManager();
// C_BaseEntity overrides.
public:
virtual void OnDataChanged( DataUpdateType_t updateType );
public:
int m_iCurrentMaxRagdollCount;
};
IMPLEMENT_CLIENTCLASS_DT_NOBASE( C_RagdollManager, DT_RagdollManager, CRagdollManager )
RecvPropInt( RECVINFO( m_iCurrentMaxRagdollCount ) ),
END_RECV_TABLE()
//-----------------------------------------------------------------------------
// Constructor
//-----------------------------------------------------------------------------
C_RagdollManager::C_RagdollManager()
{
m_iCurrentMaxRagdollCount = -1;
}
//-----------------------------------------------------------------------------
// Purpose:
// Input : updateType -
//-----------------------------------------------------------------------------
void C_RagdollManager::OnDataChanged( DataUpdateType_t updateType )
{
BaseClass::OnDataChanged( updateType );
s_RagdollLRU.SetMaxRagdollCount( m_iCurrentMaxRagdollCount );
}