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_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.
- pszClassName const char*
T* New(pszClassName)
Create entity by classname.
- pszClassName const char*
T* FromIndex(iIndex)
Get entity by index.
- iIndex int
T* FromIndex(index)
Get entity by entity index.
- index CEntityIndex
AcceptInput(pszInput, pActivator, pCaller, pszValue)
Accepts entity input.
- pszInput const char*
- pActivator CEntityInstance*
- pCaller CEntityInstance*
- pszValue const char*
AddEntityIOEvent(pszInput, pActivator, pCaller, pszValue, flDelay)
Add delayed entity IO event.
- pszInput const char*
- pActivator CEntityInstance*
- pCaller CEntityInstance*
- pszValue const char*
- flDelay float
CEntityIOListenerHandle* AddSingleEntityIOListener(pszOutput, callback, post)
Add signle entity IO listener.
- pszOutput const char*
- callback std::function<Action(const char*, CEntityInstance*, CEntityInstance*, float, bool)>
- post bool
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.
- vecOrigin Vector
SetAbsRotation(angAbsRotation)
Set absolute rotation.
- angAbsRotation QAngle
SetAngRotation(angRotation)
Set local rotation.
- angRotation QAngle
SetAbsVelocity(vecVelocity)
Set absolute velocity.
- vecVelocity Vector
SetBaseVelocity(vecVelocity)
Set base velocity.
- vecVelocity Vector
CEntitySubclassVDataBase* GetVData()
Get entity VData.
DispatchSpawn(pEntityKeyValues)
Spawn entity.
- pEntityKeyValues CEntityKeyValues*
Teleport(pPosition, pAngles, pVelocity)
Teleport entity.
- pPosition const Vector*
- pAngles const QAngle*
- pVelocity const Vector*
SetMoveType(nMoveType)
Set move type.
- nMoveType MoveType_t
uint8 GetCollisionGroup()
Get collision group.
SetCollisionGroup(nCollisionGroup)
Set collision group.
- nCollisionGroup uint8
CollisionRulesChanged()
Notify collision rules changed.
int GetIndex()
Get entity index.
CHandle<T> GetHandle()
Get entity handle. Templated the same way New() is: every generated entity class shadows it with a plain GetHandle() returning CHandle of its own type, so player->GetHandle() on a CCSPlayerController* is a CHandle.
const char* GetName()
Get entity name.