mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-09 02:09:35 +00:00
1
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
//========= 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();
|
||||
}
|
||||
Reference in New Issue
Block a user