CServerOnlyEntity: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Redirected page to Category:CServerOnlyEntity)
Tag: New redirect
 
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
#redirect [[:Category:CServerOnlyEntity]]
{{LanguageBar}}
{{CD|CServerOnlyEntity|base=CBaseEntity|nolink=1|file1=[https://github.com/ValveSoftware/source-sdk-2013/blob/master/mp/src/game/server/baseentity.h#L2648 baseentity.h]}}
All [[:Category:CServerOnlyEntity|entities which inherit this class]] do not count as [[edict]]s.
{{note|{{cmd|ent_text}} shows all of these with entity index 0}}
 
{{Class def section}}
 
== See Also ==
* [[:Category:CD_CServerOnlyEntity|Direct superclasses]]
 
{{stub}}

Latest revision as of 04:52, 18 October 2024

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

All entities which inherit this class do not count as edicts.

Note.pngNote:ent_text shows all of these with entity index 0

C++ definitions from Source 2013 Multiplayer Source 2013 Multiplayer [edit]

baseentity.h

// Has a position + size
class CServerOnlyEntity : public CBaseEntity
{
	DECLARE_CLASS( CServerOnlyEntity, CBaseEntity );
public:
	CServerOnlyEntity() : CBaseEntity( true ) {}
	
	virtual int ObjectCaps( void ) { return (BaseClass::ObjectCaps() & ~FCAP_ACROSS_TRANSITION); }
};

See Also

Stub

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