CServerOnlyEntity

From Valve Developer Community
Jump to: navigation, search
English (en)Translate (Translate)
Class hierarchy
CServerOnlyEntity
CBaseEntity
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); }
};


Stub

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