CServerOnlyPointEntity

From Valve Developer Community
Jump to: navigation, search
English (en)Translate (Translate)
Class hierarchy
CServerOnlyPointEntity
CServerOnlyEntity
CBaseEntity
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 );
}

See Also

  • CLogicalEntity - the only difference from CServerOnlyPointEntity is the name (at least in Source 2013 source code)

Stub

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