CServerOnlyEntity/definitions

From Valve Developer Community
< CServerOnlyEntity
Revision as of 14:37, 1 October 2024 by Nescius (talk | contribs) (Created page with "=== [https://github.com/ValveSoftware/source-sdk-2013/blob/master/mp/src/game/server/baseentity.h baseentity.h] === <syntaxhighlight lang=cpp> // Has a position + size class C...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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); }
};