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.

37 lines
1.2 KiB

5 years ago
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//=============================================================================//
#include "cbase.h"
#include "hud.h"
#include "tf_shareddefs.h"
#include "c_obj_mapdefined.h"
// memdbgon must be the last include file in a .cpp file!!!
#include "tier0/memdbgon.h"
IMPLEMENT_CLIENTCLASS_DT(C_ObjectMapDefined, DT_ObjectMapDefined, CObjectMapDefined)
RecvPropString( RECVINFO(m_szCustomName) ),
END_RECV_TABLE()
//-----------------------------------------------------------------------------
// Purpose:
//-----------------------------------------------------------------------------
C_ObjectMapDefined::C_ObjectMapDefined()
{
memset( m_szCustomName, 0, sizeof(m_szCustomName) );
}
//-----------------------------------------------------------------------------
// Purpose: Get a text description for the object target
//-----------------------------------------------------------------------------
const char *C_ObjectMapDefined::GetTargetDescription( void ) const
{
if ( m_szCustomName && m_szCustomName[0] )
return m_szCustomName;
return BaseClass::GetTargetDescription();
}