mirror of
https://github.com/nillerusr/source-engine.git
synced 2025-01-09 08:56:43 +00:00
36 lines
1.0 KiB
C++
36 lines
1.0 KiB
C++
//========= Copyright Valve Corporation, All rights reserved. ============//
|
|
//
|
|
// Purpose: TF's custom CPlayerResource
|
|
//
|
|
// $NoKeywords: $
|
|
//=============================================================================//
|
|
#include "cbase.h"
|
|
#include "player.h"
|
|
#include "player_resource.h"
|
|
#include "tf_player_resource.h"
|
|
|
|
// Datatable
|
|
IMPLEMENT_SERVERCLASS_ST(CTFPlayerResource, DT_TFPlayerResource)
|
|
END_SEND_TABLE()
|
|
|
|
LINK_ENTITY_TO_CLASS( tf_player_manager, CTFPlayerResource );
|
|
|
|
//-----------------------------------------------------------------------------
|
|
// Purpose:
|
|
//-----------------------------------------------------------------------------
|
|
void CTFPlayerResource::Spawn( void )
|
|
{
|
|
BaseClass::Spawn();
|
|
|
|
// Use autodetect, but only once every second.
|
|
NetworkProp()->SetUpdateInterval( 2.0f );
|
|
}
|
|
|
|
//-----------------------------------------------------------------------------
|
|
// Purpose:
|
|
//-----------------------------------------------------------------------------
|
|
void CTFPlayerResource::UpdatePlayerData( void )
|
|
{
|
|
BaseClass::UpdatePlayerData();
|
|
}
|