CServerOnlyEntity

From Valve Developer Community
Jump to navigation Jump to 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); }
};

See Also

Stub

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