Source2Toolkit
SchemaEntityClasses

CBaseEntity

CBaseEntity

Inheritance: CEntityInstance

Fields

  • m_CBodyComponent CBodyComponent*
  • m_NetworkTransmitComponent CNetworkTransmitComponent
  • m_aThinkFunctions CUtlVector<thinkfunc_t>
  • m_iCurrentThinkContext int32_t
  • m_nLastThinkTick int32_t
  • m_bDisabledContextThinks bool
  • m_isSteadyState CTypedBitVec<64>
  • m_lastNetworkChange float
  • m_think BASEPTR
  • m_ResponseContexts CUtlVector<ResponseContext_t>
  • m_iszResponseContext CUtlSymbolLarge
  • m_pfnTouch ENTITYFUNCPTR
  • m_pfnUse USEPTR
  • m_pfnBlocked ENTITYFUNCPTR
  • m_pfnMoveDone BASEPTR
  • m_iHealth int32_t
  • m_iMaxHealth int32_t
  • m_lifeState uint8_t
  • m_flDamageAccumulator float
  • m_bTakesDamage bool
  • m_nTakeDamageFlags TakeDamageFlags_t
  • m_nPlatformType EntityPlatformTypes_t
  • m_MoveCollide MoveCollide_t
  • m_MoveType MoveType_t
  • m_nPreviouslySetMoveType MoveType_t
  • m_nActualMoveType MoveType_t
  • m_nWaterTouch uint8_t
  • m_nSlimeTouch uint8_t
  • m_bRestoreInHierarchy bool
  • m_target CUtlSymbolLarge
  • m_hDamageFilter CHandle<CBaseFilter>
  • m_iszDamageFilterName CUtlSymbolLarge
  • m_flMoveDoneTime float
  • m_nSubclassID CUtlStringToken
  • m_flAnimTime float
  • m_flSimulationTime float
  • m_flCreateTime float
  • m_bClientSideRagdoll bool
  • m_ubInterpolationFrame uint8_t
  • m_vPrevVPhysicsUpdatePos Vector
  • m_iTeamNum uint8_t
  • m_iGlobalname CUtlSymbolLarge
  • m_iSentToClients int32_t
  • m_flSpeed float
  • m_sUniqueHammerID CUtlString
  • m_spawnflags uint32_t
  • m_nNextThinkTick int32_t
  • m_nSimulationTick int32_t
  • m_OnKilled CEntityIOOutput
  • m_fFlags uint32_t
  • m_vecAbsVelocity Vector
  • m_vecVelocity CNetworkVelocityVector
  • m_vecBaseVelocity Vector
  • m_nPushEnumCount int32_t
  • m_pCollision CCollisionProperty*
  • m_hEffectEntity CHandle<CBaseEntity>
  • m_hOwnerEntity CHandle<CBaseEntity>
  • m_fEffects uint32_t
  • m_hGroundEntity CHandle<CBaseEntity>
  • m_nGroundBodyIndex int32_t
  • m_flFriction float
  • m_flElasticity float
  • m_flGravityScale float
  • m_flTimeScale float
  • m_flWaterLevel float
  • m_bGravityDisabled bool
  • m_bAnimatedEveryTick bool
  • m_flActualGravityScale float
  • m_bGravityActuallyDisabled bool
  • m_bDisableLowViolence bool
  • m_nWaterType uint8_t
  • m_iEFlags int32_t
  • m_OnUser1 CEntityIOOutput
  • m_OnUser2 CEntityIOOutput
  • m_OnUser3 CEntityIOOutput
  • m_OnUser4 CEntityIOOutput
  • m_iInitialTeamNum int32_t
  • m_flNavIgnoreUntilTime float
  • m_vecAngVelocity QAngle
  • m_bNetworkQuantizeOriginAndAngles bool
  • m_bLagCompensate bool
  • m_pBlocker CHandle<CBaseEntity>
  • m_flLocalTime float
  • m_flVPhysicsUpdateLocalTime float
  • m_nBloodType BloodType
  • m_pPulseGraphInstance CPulseGraphInstance_ServerEntity*

Methods

CBaseEntity* CreateEntityByName(pszClassName)

Creates entity by classname.

Parameters
  • pszClassName const char*

AcceptInput(pszInput, pActivator, pCaller, pszValue)

Create entity by classname. Get entity by index. Get entity by entity index. Accepts entity input.

Parameters
  • pszInput const char*
  • pActivator CEntityInstance*
  • pCaller CEntityInstance*
  • pszValue const char*

AddEntityIOEvent(pszInput, pActivator, pCaller, pszValue, flDelay)

Add delayed entity IO event.

Parameters
  • pszInput const char*
  • pActivator CEntityInstance*
  • pCaller CEntityInstance*
  • pszValue const char*
  • flDelay float

CEntityIOListenerHandle* AddSingleEntityIOListener(pszOutput, callback, mode)

Add signle entity IO listener.

Parameters
  • pszOutput const char*
  • callback std::function<Action(const char*,CEntityInstance*, CEntityInstance*, float, Mode)>
  • mode Mode

Vector GetAbsOrigin()

Get absolute origin.

QAngle GetAngRotation()

Get local rotation.

QAngle GetAbsRotation()

Get absolute rotation.

Vector GetAbsVelocity()

Get absolute velocity.

SetAbsOrigin(vecOrigin)

Set absolute origin.

Parameters
  • vecOrigin Vector

SetAbsRotation(angAbsRotation)

Set absolute rotation.

Parameters
  • angAbsRotation QAngle

SetAngRotation(angRotation)

Set local rotation.

Parameters
  • angRotation QAngle

SetAbsVelocity(vecVelocity)

Set absolute velocity.

Parameters
  • vecVelocity Vector

SetBaseVelocity(vecVelocity)

Set base velocity.

Parameters
  • vecVelocity Vector

CEntitySubclassVDataBase* GetVData()

Get entity VData.

DispatchSpawn(pEntityKeyValues)

Spawn entity.

Parameters
  • pEntityKeyValues CEntityKeyValues*

Teleport(pPosition, pAngles, pVelocity)

Teleport entity.

Parameters
  • pPosition const Vector*
  • pAngles const QAngle*
  • pVelocity const Vector*

SetMoveType(nMoveType)

Set move type.

Parameters
  • nMoveType MoveType_t

uint8 GetCollisionGroup()

Get collision group.

SetCollisionGroup(nCollisionGroup)

Set collision group.

Parameters
  • nCollisionGroup uint8

CollisionRulesChanged()

Notify collision rules changed.

int GetIndex()

Get entity index.

CHandle<CBaseEntity> GetHandle()

Get entity handle.

const char* GetName()

Get entity name.

On this page