CLogicalEntity

From Source Entities
Jump to navigation Jump to search

Code classes:

Bme thing.png

"We're still not sure what that does."
This page is incomplete. You can help by editing it.

CLogicalEntity is a code class with no unique keyvalues, inputs, outputs, or flags. All it seems to do is prevent you from specifying minimum and maximum bounds on the entity (forcing the volume to be 0). A code comment says entities inheriting this class have no position in the world, but this is false.

bool CLogicalEntity::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 );
}