CServerOnlyPointEntity

From Valve Developer Community
Jump to navigation Jump to search
English (en)Translate (Translate)
Class hierarchy
CServerOnlyPointEntity
CServerOnlyEntity
CBaseEntity
baseentity.h

Server only equivalent of CPointEntity. It's a subclass of CServerOnlyEntity, therefore 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 expanding it.