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 uint8_t
  • m_lastNetworkChange float
  • m_ResponseContexts CUtlVector<ResponseContext_t>
  • m_iszResponseContext CUtlSymbolLarge
  • 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_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](/docs/schema/Entityio)
  • m_fFlags uint32_t
  • m_vecAbsVelocity Vector
  • m_vecVelocity [CNetworkVelocityVector](/docs/schema/entity/classes/Cnetworkvelocityvector)
  • m_vecBaseVelocity Vector
  • m_nPushEnumCount int32_t
  • m_pCollision [CCollisionProperty](/docs/schema/entity/classes/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](/docs/schema/Entityio)
  • m_OnUser2 [CEntityIOOutput](/docs/schema/Entityio)
  • m_OnUser3 [CEntityIOOutput](/docs/schema/Entityio)
  • m_OnUser4 [CEntityIOOutput](/docs/schema/Entityio)
  • 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](/docs/schema/entity/classes/Cpulsegraphinstance_serverentity)*

Methods

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

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](/docs//enums/Mode)

GetAbsOrigin()

Get absolute origin.

GetAngRotation()

Get local rotation.

GetAbsRotation()

Get absolute rotation.

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

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

GetCollisionGroup()

Get collision group.

SetCollisionGroup(nCollisionGroup)

Set collision group.

Parameters
  • nCollisionGroup uint8

CollisionRulesChanged()

Notify collision rules changed.

GetIndex()

Get entity index.

GetHandle()

Get entity handle.

GetName()

Get entity name.

On this page