CServerOnlyPointEntity: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with "{{LanguageBar}} {{CD|CServerOnlyPointEntity|base=CServerOnlyEntity|nolink=1|file1=[https://github.com/ValveSoftware/source-sdk-2013/blob/master/mp/src/game/server/baseentity.h...")
 
No edit summary
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 entities inheriting this won't have [[edict]]s.
Server only equivalent of [[CPointEntity]]. Its super class is [[CServerOnlyEntity]] thus [[: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

Revision as of 08:18, 18 September 2024

English (en)Translate (Translate)
C++ Class hierarchy
CServerOnlyPointEntity
CServerOnlyEntity
CBaseEntity
C++ baseentity.h

Server only equivalent of CPointEntity. Its super class is CServerOnlyEntity thus 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 );
}

Stub

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