CServerOnlyPointEntity: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
(Flow)
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{LanguageBar}}
{{LanguageBar}}
{{CD|CServerOnlyPointEntity|base=CServerOnlyEntity|nolink=1|file1=[https://github.com/ValveSoftware/source-sdk-2013/blob/master/mp/src/game/server/baseentity.h#L2658 baseentity.h]}}
{{CD|CServerOnlyPointEntity|base=CServerOnlyEntity|nolink=1|file1=[https://github.com/ValveSoftware/source-sdk-2013/blob/master/mp/src/game/server/baseentity.h#L2658 baseentity.h]}}
Server only equivalent of [[CPointEntity]]. Its super class is [[CServerOnlyEntity]] thus [[:Category:CD CServerOnlyPointEntity|entities inheriting this]] won't have [[edict]]s.
Server only equivalent of [[CPointEntity]]. It's a subclass of [[CServerOnlyEntity]], therefore [[:Category:CD CServerOnlyPointEntity|entities inheriting this]] won't have [[edict]]s.
{{clr}}
{{clr}}
Prevents entities from changing mins/maxs via keyvalues
Prevents entities from changing mins/maxs via keyvalues
Line 16: Line 16:
}
}
</syntaxhighlight>
</syntaxhighlight>
== See Also ==
* [[CLogicalEntity]] - the only difference from CServerOnlyPointEntity is the name (at least in {{src13}} source code)
{{stub}}
{{stub}}

Latest revision as of 07:15, 21 March 2025

English (en)Translate (Translate)
C++ Class hierarchy
CServerOnlyPointEntity
CServerOnlyEntity
CBaseEntity
C++ 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.