CServerOnlyPointEntity

From Valve Developer Community
Revision as of 08:17, 18 September 2024 by Nescius (talk | contribs) (Created page with "{{LanguageBar}} {{CD|CServerOnlyPointEntity|base=CServerOnlyEntity|nolink=1|file1=[https://github.com/ValveSoftware/source-sdk-2013/blob/master/mp/src/game/server/baseentity.h...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
English (en)Translate (Translate)
C++ Class hierarchy
CServerOnlyPointEntity
CServerOnlyEntity
CBaseEntity
C++ baseentity.h

Server only equivalent of CPointEntity. Its super class is CServerOnlyEntity thus entities inheriting this won't have edicts.

Prevents entities from changing mins/maxs via keyvalues

bool CServerOnlyPointEntity::KeyValue( const char *szKeyName, const char *szValue ) 
{
	if ( FStrEq( szKeyName, "mins" ) || FStrEq( szKeyName, "maxs" ) )
	{
		Warning("Warning! Can't specify mins/maxs for point entities! (%s)\n", GetClassname() );
		return true;
	}

	return BaseClass::KeyValue( szKeyName, szValue );
}

Stub

This article or section is a stub. You can help by expanding it.