CBaseEntity
Interface CBaseEntity
Namespace: SwiftlyS2.Shared.SchemaDefinitions
Assembly: SwiftlyS2.CS2.dll
public interface CBaseEntity : CEntityInstance, IEquatable<CEntityInstance>, ISchemaClass<CEntityInstance>, ISchemaClass<CBaseEntity>, ISchemaField, ISchemaClass, INativeHandleImplements
- CEntityInstance
- IEquatable<CEntityInstance>
- ISchemaClass<CEntityInstance>
- ISchemaClass<CBaseEntity>
- ISchemaField
- ISchemaClass
- INativeHandle
Properties
AbsOrigin
Gets the absolute origin position of the entity.
Vector? AbsOrigin { get; }AbsRotation
Gets the absolute rotation of the entity.
QAngle? AbsRotation { get; }AbsVelocity
ref Vector AbsVelocity { get; }ActualGravityScale
ref float ActualGravityScale { get; }ActualMoveType
ref MoveType_t ActualMoveType { get; }AngVelocity
ref QAngle AngVelocity { get; }AnimTime
ref float AnimTime { get; }AnimatedEveryTick
ref bool AnimatedEveryTick { get; }BaseVelocity
ref Vector BaseVelocity { get; }Blocker
ref CHandle<CBaseEntity> Blocker { get; }BloodType
ref BloodType BloodType { get; }CBodyComponent
CBodyComponent? CBodyComponent { get; }ClientSideRagdoll
ref bool ClientSideRagdoll { get; }Collision
CCollisionProperty? Collision { get; }CreateTime
GameTime_t CreateTime { get; }CurrentThinkContext
ref int CurrentThinkContext { get; }DamageAccumulator
ref float DamageAccumulator { get; }DamageFilter
ref CHandle<CBaseFilter> DamageFilter { get; }DamageFilterName
string DamageFilterName { get; set; }DisableLowViolence
ref bool DisableLowViolence { get; }DisabledContextThinks
ref bool DisabledContextThinks { get; }EFlags
ref int EFlags { get; }EffectEntity
ref CHandle<CBaseEntity> EffectEntity { get; }Effects
ref uint Effects { get; }Elasticity
ref float Elasticity { get; }Flags
ref uint Flags { get; }Friction
ref float Friction { get; }Globalname
string Globalname { get; set; }GravityActuallyDisabled
ref bool GravityActuallyDisabled { get; }GravityDisabled
ref bool GravityDisabled { get; }GravityScale
ref float GravityScale { get; }GroundBodyIndex
ref int GroundBodyIndex { get; }GroundEntity
ref CHandle<CBaseEntity> GroundEntity { get; }Health
ref int Health { get; }InitialTeamNum
ref int InitialTeamNum { get; }InterpolationFrame
ref byte InterpolationFrame { get; }IsSteadyState
SchemaUntypedField IsSteadyState { get; }LagCompensate
ref bool LagCompensate { get; }LastNetworkChange
ref float LastNetworkChange { get; }LastThinkTick
GameTick_t LastThinkTick { get; }LifeState
ref byte LifeState { get; }LocalTime
ref float LocalTime { get; }MaxHealth
ref int MaxHealth { get; }MoveCollide
ref MoveCollide_t MoveCollide { get; }MoveDoneTime
ref float MoveDoneTime { get; }MoveType
ref MoveType_t MoveType { get; }NavIgnoreUntilTime
GameTime_t NavIgnoreUntilTime { get; }NetworkQuantizeOriginAndAngles
ref bool NetworkQuantizeOriginAndAngles { get; }NetworkTransmitComponent
CNetworkTransmitComponent NetworkTransmitComponent { get; }NextThinkTick
GameTick_t NextThinkTick { get; }OnKilled
ref CEntityIOOutput OnKilled { get; }OnUser1
ref CEntityIOOutput OnUser1 { get; }OnUser2
ref CEntityIOOutput OnUser2 { get; }OnUser3
ref CEntityIOOutput OnUser3 { get; }OnUser4
ref CEntityIOOutput OnUser4 { get; }OwnerEntity
ref CHandle<CBaseEntity> OwnerEntity { get; }PfnBlocked
SchemaUntypedField PfnBlocked { get; }PfnMoveDone
SchemaUntypedField PfnMoveDone { get; }PfnTouch
SchemaUntypedField PfnTouch { get; }PfnUse
SchemaUntypedField PfnUse { get; }PlatformType
ref EntityPlatformTypes_t PlatformType { get; }PrevVPhysicsUpdatePos
ref Vector PrevVPhysicsUpdatePos { get; }PreviouslySetMoveType
ref MoveType_t PreviouslySetMoveType { get; }PulseGraphInstance
CPulseGraphInstance_ServerEntity? PulseGraphInstance { get; }PushEnumCount
ref int PushEnumCount { get; }ResponseContext
string ResponseContext { get; set; }ResponseContexts
ref CUtlVector<ResponseContext_t> ResponseContexts { get; }RestoreInHierarchy
ref bool RestoreInHierarchy { get; }SentToClients
ref int SentToClients { get; }SimulationTick
ref int SimulationTick { get; }SimulationTime
ref float SimulationTime { get; }SlimeTouch
ref byte SlimeTouch { get; }Spawnflags
ref uint Spawnflags { get; }Speed
ref float Speed { get; }SubclassID
ref CUtlStringToken SubclassID { get; }TakeDamageFlags
ref TakeDamageFlags_t TakeDamageFlags { get; }TakesDamage
ref bool TakesDamage { get; }Target
string Target { get; set; }Team
Gets the team of the entity.
Team Team { get; set; }TeamNum
ref byte TeamNum { get; }Think
SchemaUntypedField Think { get; }ThinkFunctions
ref CUtlVector<thinkfunc_t> ThinkFunctions { get; }TimeScale
ref float TimeScale { get; }UniqueHammerID
string UniqueHammerID { get; set; }VData
Gets the subclass-specific data associated with this entity.
CEntitySubclassVDataBase VData { get; }VPhysicsUpdateLocalTime
ref float VPhysicsUpdateLocalTime { get; }Velocity
CNetworkVelocityVector Velocity { get; }WaterLevel
ref float WaterLevel { get; }WaterTouch
ref byte WaterTouch { get; }WaterType
ref byte WaterType { get; }Methods
AnimTimeUpdated()
void AnimTimeUpdated()AnimatedEveryTickUpdated()
void AnimatedEveryTickUpdated()BaseVelocityUpdated()
void BaseVelocityUpdated()BloodTypeUpdated()
void BloodTypeUpdated()CBodyComponentUpdated()
void CBodyComponentUpdated()ClientSideRagdollUpdated()
void ClientSideRagdollUpdated()CollisionRulesChanged()
Notify the game that the collision rules of the entity have changed. Call this when you change the Collision of the entity.
void CollisionRulesChanged()CreateTimeUpdated()
void CreateTimeUpdated()EffectEntityUpdated()
void EffectEntityUpdated()EffectsUpdated()
void EffectsUpdated()ElasticityUpdated()
void ElasticityUpdated()FlagsUpdated()
void FlagsUpdated()FrictionUpdated()
void FrictionUpdated()GravityDisabledUpdated()
void GravityDisabledUpdated()GravityScaleUpdated()
void GravityScaleUpdated()GroundBodyIndexUpdated()
void GroundBodyIndexUpdated()GroundEntityUpdated()
void GroundEntityUpdated()HealthUpdated()
void HealthUpdated()InterpolationFrameUpdated()
void InterpolationFrameUpdated()LifeStateUpdated()
void LifeStateUpdated()MaxHealthUpdated()
void MaxHealthUpdated()MoveCollideUpdated()
void MoveCollideUpdated()MoveTypeUpdated()
void MoveTypeUpdated()NavIgnoreUntilTimeUpdated()
void NavIgnoreUntilTimeUpdated()NextThinkTickUpdated()
void NextThinkTickUpdated()OwnerEntityUpdated()
void OwnerEntityUpdated()PlatformTypeUpdated()
void PlatformTypeUpdated()SimulationTimeUpdated()
void SimulationTimeUpdated()SpawnflagsUpdated()
void SpawnflagsUpdated()SpeedUpdated()
void SpeedUpdated()SubclassIDUpdated()
void SubclassIDUpdated()TakeDamage(CTakeDamageInfo)
Applies damage to the entity based on the specified damage information.
Thread unsafe, use async variant instead for non-main thread context.
[ThreadUnsafe]
void TakeDamage(CTakeDamageInfo dmgInfo)- dmgInfo CTakeDamageInfo — An object containing details about the damage to be applied, including the amount, type, and source. Cannot be null.
TakeDamage(float, DamageTypes_t, CBaseEntity?, CBaseEntity?, CBaseEntity?)
Applies damage to the entity based on the specified damage information.
Thread unsafe, use async variant instead for non-main thread context.
[ThreadUnsafe]
void TakeDamage(float flDamage, DamageTypes_t bitsDamageType, CBaseEntity? inflictor = null, CBaseEntity? attacker = null, CBaseEntity? ability = null)- flDamage float
- bitsDamageType DamageTypes_t
- inflictor CBaseEntity?
- attacker CBaseEntity?
- ability CBaseEntity?
TakeDamageAsync(CTakeDamageInfo)
Applies damage to the entity based on the specified damage information asynchronously.
Task TakeDamageAsync(CTakeDamageInfo dmgInfo)- dmgInfo CTakeDamageInfo
TakeDamageAsync(float, DamageTypes_t, CBaseEntity?, CBaseEntity?, CBaseEntity?)
Applies damage to the entity based on the specified damage information asynchronously.
Task TakeDamageAsync(float flDamage, DamageTypes_t bitsDamageType, CBaseEntity? inflictor = null, CBaseEntity? attacker = null, CBaseEntity? ability = null)- flDamage float
- bitsDamageType DamageTypes_t
- inflictor CBaseEntity?
- attacker CBaseEntity?
- ability CBaseEntity?
TakeDamageFlagsUpdated()
void TakeDamageFlagsUpdated()TakesDamageUpdated()
void TakesDamageUpdated()TeamNumUpdated()
void TeamNumUpdated()Teleport(Vector?, QAngle?, Vector?)
Teleports the entity to the specified position, orientation, and velocity.
void Teleport(Vector? position, QAngle? angle, Vector? velocity)- position Vector? — The target position to move the entity to. If null, the entity's position is not changed.
- angle QAngle? — The target orientation to set for the entity. If null, the entity's orientation is not changed.
- velocity Vector? — The velocity to apply to the entity after teleportation. If null, the entity's velocity is not changed.
Any parameter set to null will leave the corresponding property of the entity unchanged. This method can be used to update one or more aspects of the entity's state in a single operation.
TimeScaleUpdated()
void TimeScaleUpdated()VelocityUpdated()
void VelocityUpdated()WaterLevelUpdated()
void WaterLevelUpdated()