CPointEntity: Difference between revisions
Jump to navigation
Jump to search
Risk 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 is differs
No edit summary |
(not sure if good wording) |
||
Line 1: | Line 1: | ||
{{stub}} | {{stub}} | ||
{{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}} | ||
{{clr}} | {{clr}} | ||
Entities inheriting this class | Entities inheriting this class are never rendered as 3D models and are not allowed to modify its mins/maxs via keyvalues. | ||
<syntaxhighlight lang=cpp> | <syntaxhighlight lang=cpp> | ||
bool CPointEntity::KeyValue( const char *szKeyName, const char *szValue ) | bool CPointEntity::KeyValue( const char *szKeyName, const char *szValue ) |
Revision as of 05:07, 13 September 2024
![]() |
---|
CPointEntity |
![]() |
CPointEntity is a code class in Source.

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 );
}