CBaseEntity

Struct CBaseEntity 

Source
#[repr(C)]
pub struct CBaseEntity {
Show 210 fields pub vftable: *const c_void, pub m_RefEHandle: EHandle, pub gap_c: [c_char; 4], pub m_collideable: *mut c_void, pub m_networkable: *mut c_void, pub genericKeyValueCount: i32, pub gap_24: [c_char; 4], pub genericKeyValues: *mut c_void, pub m_pfnMoveDone: *mut c_void, pub m_pfnThink: *mut c_void, pub m_Network: CServerNetworkProperty, pub m_entIndex: i32, pub gap_6c: [c_char; 4], pub m_iClassname: i64, pub m_flAnimTime: f32, pub m_flSimulationTime: f32, pub m_creationTick: i32, pub m_nLastThinkTick: i32, pub m_PredictableID: i32, pub touchStamp: i32, pub m_aThinkFunctions: [c_char; 32], pub m_entitySpawnTime: f32, pub m_spawner: EHandle, pub m_scriptClass: i32, pub m_wantsDamageCallbacks: bool, pub m_wantsDeathCallbacks: bool, pub gap_be: [c_char; 2], pub m_nNextThinkTick: i32, pub m_fEffects: i32, pub m_ModelName: i64, pub m_target: i64, pub m_networkedFlags: i32, pub m_nRenderFX: c_char, pub m_nRenderMode: c_char, pub m_nModelIndex: i16, pub m_clrRender: Color, pub m_desiredHibernationType: i32, pub m_scriptMinHibernationType: i32, pub m_minSelfAndDescendantHibernationType: i32, pub m_actualHibernationType: i32, pub m_hibernationQueueIndex: i32, pub m_bRenderWithViewModels: bool, pub gap_f9: [c_char; 3], pub m_nameVisibilityFlags: i32, pub m_cloakEndTime: f32, pub m_cloakFadeInEndTime: f32, pub m_cloakFadeOutStartTime: f32, pub m_cloakFadeInDuration: f32, pub m_cloakFlickerAmount: f32, pub m_cloakFlickerEndTime: f32, pub m_cloakFadeOutDuration: f32, pub m_highlightIsNetworked: bool, pub gap_11d: [c_char; 3], pub m_highlightParams: [Vector3; 16], pub m_highlightFunctionBits: [i32; 8], pub m_highlightPlayerVisibilityBits: [i32; 8], pub m_highlightServerFadeBases: [f32; 2], pub m_highlightServerFadeStartTimes: [f32; 2], pub m_highlightServerFadeEndTimes: [f32; 2], pub m_highlightServerContextID: i32, pub m_highlightTeamBits: i32, pub m_nextGrenadeTargetTime: f32, pub m_grenadeTargetDebounce: f32, pub m_nSimulationTick: i32, pub m_fDataObjectTypes: i32, pub m_nextVelocitySample: f32, pub m_velocitySamples: [Vector3; 5], pub m_iEFlags: i64, pub m_fFlags: i32, pub gap_29c: [c_char; 4], pub m_iName: i64, pub m_scriptNameIndex: i32, pub m_instanceNameIndex: i32, pub m_scriptName: [c_char; 64], pub m_instanceName: [c_char; 64], pub m_holdUsePrompt: i64, pub m_pressUsePrompt: i64, pub m_attachmentLerpStartTime: f32, pub m_attachmentLerpEndTime: f32, pub m_attachmentLerpStartOrigin: Vector3, pub m_attachmentLerpStartAngles: Vector3, pub m_parentAttachmentType: i32, pub m_parentAttachmentIndex: i32, pub m_parentAttachmentHitbox: i32, pub m_parentAttachmentModel: i32, pub m_MoveType: c_char, pub m_MoveCollide: c_char, pub gap_372: [c_char; 2], pub m_RestoreMoveTypeOnDetach: i32, pub m_hMoveParent: EHandle, pub m_hMoveChild: EHandle, pub m_hMovePeer: EHandle, pub m_bIsActiveChild: bool, pub m_bPrevAbsOriginValid: bool, pub gap_386: [c_char; 2], pub m_Collision: CCollisionProperty, pub m_hOwnerEntity: EHandle, pub m_CollisionGroup: i32, pub m_contents: i32, pub m_baseSolidType: i32, pub m_pPhysicsObject: *mut c_void, pub m_flNavIgnoreUntilTime: f32, pub m_hGroundEntity: EHandle, pub m_flGroundChangeTime: f32, pub m_vecBaseVelocity: Vector3, pub m_vecAbsVelocity: Vector3, pub m_vecAngVelocity: Vector3, pub m_rgflCoordinateFrame: [f32; 12], pub m_flFriction: f32, pub m_flLocalTime: f32, pub m_flVPhysicsUpdateLocalTime: f32, pub m_flMoveDoneTime: f32, pub m_nPushEnumCount: i32, pub m_vecPrevAbsOrigin: Vector3, pub m_vecAbsOrigin: Vector3, pub m_angAbsRotation: Vector3, pub m_vecVelocity: Vector3, pub m_pBlocker: EHandle, pub m_iGlobalname: i64, pub m_iParent: i64, pub m_iHammerID: i32, pub m_flSpeed: f32, pub m_iMaxHealth: i32, pub m_iHealth: i32, pub m_pfnTouch: *mut c_void, pub m_pfnUse: *mut c_void, pub m_pfnBlocked: *mut c_void, pub m_bClientSideRagdoll: bool, pub m_lifeState: c_char, pub m_forceVisibleInPhaseShift: bool, pub m_baseTakeDamage: c_char, pub m_invulnerableToDamageCount: i32, pub m_passDamageToParent: c_char, pub gap_4f9: [c_char; 3], pub m_deathVelocity: Vector3, pub m_lastTitanFootstepDamageTime: f32, pub m_flMaxspeed: f32, pub m_visibilityFlags: i32, pub m_scriptVisible: bool, pub gap_515: [c_char; 3], pub m_OnUser1: [c_char; 40], pub m_OnDeath: [c_char; 40], pub m_OnDestroy: [c_char; 40], pub m_cellwidth: i32, pub m_cellbits: i32, pub m_cellX: i32, pub m_cellY: i32, pub m_cellZ: i32, pub m_localOrigin: Vector3, pub m_localAngles: Vector3, pub m_vecViewOffset: Vector3, pub m_ListByClass: i32, pub gap_5cc: [c_char; 4], pub m_pPrevByClass: *mut c_void, pub m_pNextByClass: *mut c_void, pub m_iInitialTeamNum: i32, pub m_iTeamNum: i32, pub m_passThroughFlags: i32, pub m_passThroughThickness: i32, pub m_passThroughDirection: f32, pub m_spawnflags: i32, pub m_AIAddOn: i64, pub m_flGravity: f32, pub m_entityFadeDist: f32, pub m_dissolveEffectEntityHandle: EHandle, pub m_fadeDist: f32, pub m_iSignifierName: i64, pub m_collectedInvalidateFlags: i32, pub m_collectingInvalidateFlags: bool, pub gap_61d: [c_char; 3], pub m_lagCompensationCounter: i32, pub m_bLagCompensate: bool, pub m_bNetworkQuantizeOriginAndAngles: bool, pub m_bForcePurgeFixedupStrings: bool, pub gap_627: [c_char; 1], pub m_pEvent: *mut c_void, pub m_debugOverlays: i32, pub gap_634: [c_char; 4], pub m_pTimedOverlay: *mut c_void, pub m_ScriptScope: [c_char; 32], pub m_hScriptInstance: i64, pub m_iszScriptId: i64, pub m_bossPlayer: EHandle, pub m_usableType: i32, pub m_usablePriority: i32, pub m_usableRadius: f32, pub m_usableFOV: f32, pub m_usePromptSize: f32, pub m_hasDispatchedSpawn: bool, pub m_bDoDestroyCallback: bool, pub m_bDoPreSpawnCallback: bool, pub m_bDoOnSpawnedCallback: bool, pub m_spottedBeginTimes: [f32; 31], pub m_spottedLatestTimes: [f32; 31], pub m_spottedByTeams: i32, pub m_minimapData: [c_char; 40], pub m_shieldHealth: i32, pub m_shieldHealthMax: i32, pub m_areEntityLinksNetworked: bool, pub gap_7b9: [c_char; 3], pub m_entitiesLinkedFromMeCount: i32, pub m_entitiesLinkedToMeCount: i32, pub m_entitiesLinkedFromMe: [EHandle; 64], pub m_entitiesLinkedToMe: [EHandle; 64], pub m_pusherWithChildrenRadius: f32, pub m_childPusherMoveHandlerCount: i32, pub gap_9cc: [c_char; 4], pub m_statusEffectPlugin: *mut CBaseEntity, pub gap_9d8: [c_char; 1], pub m_physDummyMotionEnabled: bool,
}

Fields§

§vftable: *const c_void§m_RefEHandle: EHandle§gap_c: [c_char; 4]§m_collideable: *mut c_void§m_networkable: *mut c_void§genericKeyValueCount: i32§gap_24: [c_char; 4]§genericKeyValues: *mut c_void§m_pfnMoveDone: *mut c_void§m_pfnThink: *mut c_void§m_Network: CServerNetworkProperty§m_entIndex: i32§gap_6c: [c_char; 4]§m_iClassname: i64§m_flAnimTime: f32§m_flSimulationTime: f32§m_creationTick: i32§m_nLastThinkTick: i32§m_PredictableID: i32§touchStamp: i32§m_aThinkFunctions: [c_char; 32]§m_entitySpawnTime: f32§m_spawner: EHandle§m_scriptClass: i32§m_wantsDamageCallbacks: bool§m_wantsDeathCallbacks: bool§gap_be: [c_char; 2]§m_nNextThinkTick: i32§m_fEffects: i32§m_ModelName: i64§m_target: i64§m_networkedFlags: i32§m_nRenderFX: c_char§m_nRenderMode: c_char§m_nModelIndex: i16§m_clrRender: Color§m_desiredHibernationType: i32§m_scriptMinHibernationType: i32§m_minSelfAndDescendantHibernationType: i32§m_actualHibernationType: i32§m_hibernationQueueIndex: i32§m_bRenderWithViewModels: bool§gap_f9: [c_char; 3]§m_nameVisibilityFlags: i32§m_cloakEndTime: f32§m_cloakFadeInEndTime: f32§m_cloakFadeOutStartTime: f32§m_cloakFadeInDuration: f32§m_cloakFlickerAmount: f32§m_cloakFlickerEndTime: f32§m_cloakFadeOutDuration: f32§m_highlightIsNetworked: bool§gap_11d: [c_char; 3]§m_highlightParams: [Vector3; 16]§m_highlightFunctionBits: [i32; 8]§m_highlightPlayerVisibilityBits: [i32; 8]§m_highlightServerFadeBases: [f32; 2]§m_highlightServerFadeStartTimes: [f32; 2]§m_highlightServerFadeEndTimes: [f32; 2]§m_highlightServerContextID: i32§m_highlightTeamBits: i32§m_nextGrenadeTargetTime: f32§m_grenadeTargetDebounce: f32§m_nSimulationTick: i32§m_fDataObjectTypes: i32§m_nextVelocitySample: f32§m_velocitySamples: [Vector3; 5]§m_iEFlags: i64§m_fFlags: i32§gap_29c: [c_char; 4]§m_iName: i64§m_scriptNameIndex: i32§m_instanceNameIndex: i32§m_scriptName: [c_char; 64]§m_instanceName: [c_char; 64]§m_holdUsePrompt: i64§m_pressUsePrompt: i64§m_attachmentLerpStartTime: f32§m_attachmentLerpEndTime: f32§m_attachmentLerpStartOrigin: Vector3§m_attachmentLerpStartAngles: Vector3§m_parentAttachmentType: i32§m_parentAttachmentIndex: i32§m_parentAttachmentHitbox: i32§m_parentAttachmentModel: i32§m_MoveType: c_char§m_MoveCollide: c_char§gap_372: [c_char; 2]§m_RestoreMoveTypeOnDetach: i32§m_hMoveParent: EHandle§m_hMoveChild: EHandle§m_hMovePeer: EHandle§m_bIsActiveChild: bool§m_bPrevAbsOriginValid: bool§gap_386: [c_char; 2]§m_Collision: CCollisionProperty§m_hOwnerEntity: EHandle§m_CollisionGroup: i32§m_contents: i32§m_baseSolidType: i32§m_pPhysicsObject: *mut c_void§m_flNavIgnoreUntilTime: f32§m_hGroundEntity: EHandle§m_flGroundChangeTime: f32§m_vecBaseVelocity: Vector3§m_vecAbsVelocity: Vector3§m_vecAngVelocity: Vector3§m_rgflCoordinateFrame: [f32; 12]§m_flFriction: f32§m_flLocalTime: f32§m_flVPhysicsUpdateLocalTime: f32§m_flMoveDoneTime: f32§m_nPushEnumCount: i32§m_vecPrevAbsOrigin: Vector3§m_vecAbsOrigin: Vector3§m_angAbsRotation: Vector3§m_vecVelocity: Vector3§m_pBlocker: EHandle§m_iGlobalname: i64§m_iParent: i64§m_iHammerID: i32§m_flSpeed: f32§m_iMaxHealth: i32§m_iHealth: i32§m_pfnTouch: *mut c_void§m_pfnUse: *mut c_void§m_pfnBlocked: *mut c_void§m_bClientSideRagdoll: bool§m_lifeState: c_char§m_forceVisibleInPhaseShift: bool§m_baseTakeDamage: c_char§m_invulnerableToDamageCount: i32§m_passDamageToParent: c_char§gap_4f9: [c_char; 3]§m_deathVelocity: Vector3§m_lastTitanFootstepDamageTime: f32§m_flMaxspeed: f32§m_visibilityFlags: i32§m_scriptVisible: bool§gap_515: [c_char; 3]§m_OnUser1: [c_char; 40]§m_OnDeath: [c_char; 40]§m_OnDestroy: [c_char; 40]§m_cellwidth: i32§m_cellbits: i32§m_cellX: i32§m_cellY: i32§m_cellZ: i32§m_localOrigin: Vector3§m_localAngles: Vector3§m_vecViewOffset: Vector3§m_ListByClass: i32§gap_5cc: [c_char; 4]§m_pPrevByClass: *mut c_void§m_pNextByClass: *mut c_void§m_iInitialTeamNum: i32§m_iTeamNum: i32§m_passThroughFlags: i32§m_passThroughThickness: i32§m_passThroughDirection: f32§m_spawnflags: i32§m_AIAddOn: i64§m_flGravity: f32§m_entityFadeDist: f32§m_dissolveEffectEntityHandle: EHandle§m_fadeDist: f32§m_iSignifierName: i64§m_collectedInvalidateFlags: i32§m_collectingInvalidateFlags: bool§gap_61d: [c_char; 3]§m_lagCompensationCounter: i32§m_bLagCompensate: bool§m_bNetworkQuantizeOriginAndAngles: bool§m_bForcePurgeFixedupStrings: bool§gap_627: [c_char; 1]§m_pEvent: *mut c_void§m_debugOverlays: i32§gap_634: [c_char; 4]§m_pTimedOverlay: *mut c_void§m_ScriptScope: [c_char; 32]§m_hScriptInstance: i64§m_iszScriptId: i64§m_bossPlayer: EHandle§m_usableType: i32§m_usablePriority: i32§m_usableRadius: f32§m_usableFOV: f32§m_usePromptSize: f32§m_hasDispatchedSpawn: bool§m_bDoDestroyCallback: bool§m_bDoPreSpawnCallback: bool§m_bDoOnSpawnedCallback: bool§m_spottedBeginTimes: [f32; 31]§m_spottedLatestTimes: [f32; 31]§m_spottedByTeams: i32§m_minimapData: [c_char; 40]§m_shieldHealth: i32§m_shieldHealthMax: i32§m_areEntityLinksNetworked: bool§gap_7b9: [c_char; 3]§m_entitiesLinkedFromMeCount: i32§m_entitiesLinkedToMeCount: i32§m_entitiesLinkedFromMe: [EHandle; 64]§m_entitiesLinkedToMe: [EHandle; 64]§m_pusherWithChildrenRadius: f32§m_childPusherMoveHandlerCount: i32§gap_9cc: [c_char; 4]§m_statusEffectPlugin: *mut CBaseEntity§gap_9d8: [c_char; 1]§m_physDummyMotionEnabled: bool

Implementations§

Source§

impl CBaseEntity

Source

pub unsafe fn some_get_origin_varient_02( &self, vector: *mut Vector3, ) -> *mut Vector3

§Safety

this is a wrapper to a vtable function

calling this function without knowing how it works may or may create ub this is a auto doc so idk how it works

Source

pub unsafe fn some_get_origin_varient_01( &self, vector: *mut Vector3, ) -> *mut Vector3

§Safety

this is a wrapper to a vtable function

calling this function without knowing how it works may or may create ub this is a auto doc so idk how it works

Source

pub unsafe fn eye_angles(&self, vector: *mut Vector3) -> *mut Vector3

§Safety

this is a wrapper to a vtable function

calling this function without knowing how it works may or may create ub this is a auto doc so idk how it works

Source

pub unsafe fn get_angles(&self, vector: *mut Vector3) -> *mut Vector3

§Safety

this is a wrapper to a vtable function

calling this function without knowing how it works may or may create ub this is a auto doc so idk how it works

Source

pub unsafe fn get_eye_position(&self, vector: *mut Vector3) -> *mut Vector3

§Safety

this is a wrapper to a vtable function

calling this function without knowing how it works may or may create ub this is a auto doc so idk how it works

Source

pub unsafe fn get_center_position(&self, vector: *mut Vector3) -> *mut Vector3

§Safety

this is a wrapper to a vtable function

calling this function without knowing how it works may or may create ub this is a auto doc so idk how it works

Source

pub unsafe fn get_origin(&self, vector: *mut Vector3) -> *mut Vector3

§Safety

this is a wrapper to a vtable function

calling this function without knowing how it works may or may create ub this is a auto doc so idk how it works

Source

pub unsafe fn get_forward_vector( &self, vector: *mut Vector3, unk1: *const c_void, unk2: *const c_void, )

§Safety

this is a wrapper to a vtable function

calling this function without knowing how it works may or may create ub this is a auto doc so idk how it works

Trait Implementations§

Source§

impl DynamicCast<CPlayer> for CBaseEntity

Source§

impl DynamicCast<CPlayerDecoy> for CBaseEntity

Source§

impl DynamicCast<CWeaponX> for CBaseEntity

Source§

impl PushToSquirrelVm for &CBaseEntity

Source§

fn push_to_sqvm( self, sqvm: NonNull<HSquirrelVM>, sqfunctions: &SquirrelFunctions, )

SAFETY: the object is stored inside the entity and the entity is not being modified

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.