CPointEntity: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 2: Line 2:
{{CD|CPointEntity|file1=1}}
{{CD|CPointEntity|file1=1}}
CPointEntity is a code class in {{Source|4}}.
CPointEntity is a code class in {{Source|4}}.
{{Confusion|Not the same thing as [[point entity]] which is determined by how entity is defined in [[FGD]], and also the logic behind the name choice is differs}}
{{Confusion|Not the same thing as [[point entity]] which is determined by how entity is defined in [[FGD]], and also the logic behind the name choice differs}}
{{clr}}
{{clr}}


Line 22: Line 22:
* {{ent|info_player_start}}
* {{ent|info_player_start}}
* {{ent|info_landmark}}
* {{ent|info_landmark}}
* {{ent|info_teleport_destination}}

Revision as of 14:54, 14 September 2024

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.

Warning.pngRisk of Confusion:Not the same thing as point entity which is determined by how entity is defined in FGD, and also the logic behind the name choice differs

Entities inheriting this class are never rendered as 3D models and are not allowed to modify 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 );
}

Entities linked to this class