CPointEntity

From Valve Developer Community
Revision as of 15:07, 15 July 2024 by Nescius (talk | contribs)
Jump to navigation Jump to search

Stub

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

C++ Class hierarchy
CPointEntity
CBaseEntity
C++ subs.cpp

CPointEntity is a code class in Source Source, it has under it info_player_start and other entities related to spawning players.

Warning.pngRisk of Confusion:Not the same thing as point entity which is determined by how entity is defined in FGD

Entities inheriting this class don't allow modifying its mins/maxs via keyvalues

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