Limited support
This feature is only present in Portal 2: Community Edition and Portal: Revolution.

CBaseFilter

PassesDamageFilter

Check if the given caller and damage info pass the damage filter, with the second parameter being a CTakeDamageInfo instance. The caller is the one who requests the filter result; For example, the entity being damaged when using this as a damage filter.

bool CBaseFilter::PassesDamageFilter(handle, handle)

PassesFilter

Check if the given caller and entity pass the filter. The caller is the one who requests the filter result; For example, the entity being damaged when using this as a damage filter.

bool CBaseFilter::PassesFilter(handle, handle)

Inherited from CBaseEntity

ConnectOutput

Adds an I/O connection that will call the named function when the specified output fires

void CBaseEntity::ConnectOutput(string, string)

Destroy

No description provided

void CBaseEntity::Destroy()

DisconnectOutput

Removes a connected script function from an I/O event.

void CBaseEntity::DisconnectOutput(string, string)

EmitSound

Plays a sound from this entity.

void CBaseEntity::EmitSound(string)

EyeAngles

Get eye pitch, yaw, roll as a vector

Vector CBaseEntity::EyeAngles()

EyeLocalAngles

Get eye local pitch, yaw, roll as a vector

Vector CBaseEntity::EyeLocalAngles()

EyePosition

Get vector to eye position - absolute coords

Vector CBaseEntity::EyePosition()

FirstMoveChild

No description provided

handle CBaseEntity::FirstMoveChild()

GetAngles

Get entity pitch, yaw, roll as a vector

Vector CBaseEntity::GetAngles()

GetAngularVelocity

Get the local angular velocity - returns a vector of pitch,yaw,roll

Vector CBaseEntity::GetAngularVelocity()

GetBoundingMaxs

Get a vector containing max bounds, centered on object

Vector CBaseEntity::GetBoundingMaxs()

GetBoundingMaxsOriented

Get a vector containing max bounds, centered on object, taking the object's orientation into account

Vector CBaseEntity::GetBoundingMaxsOriented()

GetBoundingMins

Get a vector containing min bounds, centered on object

Vector CBaseEntity::GetBoundingMins()

GetBoundingMinsOriented

Get a vector containing min bounds, centered on object, taking the object's orientation into account

Vector CBaseEntity::GetBoundingMinsOriented()

GetCenter

Get vector to center of object - absolute coords

Vector CBaseEntity::GetCenter()

GetClassname

No description provided

string CBaseEntity::GetClassname()

GetCollisionGroup

Get the collision group

int CBaseEntity::GetCollisionGroup()

GetForwardVector

Get the forward vector of the entity

Vector CBaseEntity::GetForwardVector()

GetFriction

No description provided

float CBaseEntity::GetFriction()

GetGravity

No description provided

float CBaseEntity::GetGravity()

GetHealth

No description provided

int CBaseEntity::GetHealth()

GetLeftVector

Get the left vector of the entity

Vector CBaseEntity::GetLeftVector()

GetMaxHealth

No description provided

int CBaseEntity::GetMaxHealth()

GetModelKeyValues

Get a KeyValue class instance on this entity's model

handle CBaseEntity::GetModelKeyValues()

GetModelName

Returns the name of the model

string CBaseEntity::GetModelName()

GetMoveCollide

Returns the current move collide

int CBaseEntity::GetMoveCollide()

GetMoveParent

If in hierarchy, retrieves the entity's parent

handle CBaseEntity::GetMoveParent()

GetMoveType

Returns the current move type

int CBaseEntity::GetMoveType()

GetName

No description provided

string CBaseEntity::GetName()

GetNamespace

No description provided

string CBaseEntity::GetNamespace()

GetOrigin

No description provided

Vector CBaseEntity::GetOrigin()

GetOwner

Gets this entity's owner

handle CBaseEntity::GetOwner()

GetPreTemplateName

Get the entity name stripped of template unique decoration

string CBaseEntity::GetPreTemplateName()

GetRootMoveParent

If in hierarchy, walks up the hierarchy to find the root parent

handle CBaseEntity::GetRootMoveParent()

GetScriptId

Retrieve the unique identifier used to refer to the entity within the scripting system

string CBaseEntity::GetScriptId()

GetScriptScope

Retrieve the script-side data associated with an entity

handle CBaseEntity::GetScriptScope()

GetSoundDuration

Returns float duration of the sound. Takes soundname and optional actormodelname.

float CBaseEntity::GetSoundDuration(string, string)

GetTeam

No description provided

int CBaseEntity::GetTeam()

GetUpVector

Get the up vector of the entity

Vector CBaseEntity::GetUpVector()

GetVelocity

No description provided

Vector CBaseEntity::GetVelocity()

IsBSPModel

Returns if this entity is a BSP model or not (i.e. func_brush)

bool CBaseEntity::IsBSPModel()

NextMovePeer

No description provided

handle CBaseEntity::NextMovePeer()

PrecacheModel

No description provided

void CBaseEntity::PrecacheModel(string)

PrecacheScriptSound

No description provided

void CBaseEntity::PrecacheScriptSound(string)

PrecacheSoundScript

Precache a sound for later playing.

void CBaseEntity::PrecacheSoundScript(string)

SetAbsOrigin

SetAbsOrigin

void CBaseEntity::SetAbsOrigin(Vector)

SetAngles

Set entity pitch, yaw, roll

void CBaseEntity::SetAngles(float, float, float)

SetAngularVelocity

Set the local angular velocity - takes float pitch,yaw,roll velocities

void CBaseEntity::SetAngularVelocity(float, float, float)

SetCollisionGroup

Sets the collision group

void CBaseEntity::SetCollisionGroup(int)

SetForwardVector

Set the orientation of the entity to have this forward vector

void CBaseEntity::SetForwardVector(Vector)

SetFriction

No description provided

void CBaseEntity::SetFriction(float)

SetGravity

Sets gravity on this entity. Only affects gravity along Z axis

void CBaseEntity::SetGravity(float)

SetHealth

No description provided

void CBaseEntity::SetHealth(int)

SetMaxHealth

No description provided

void CBaseEntity::SetMaxHealth(int)

SetModel

No description provided

void CBaseEntity::SetModel(string)

SetMoveCollide

Set the move collide

void CBaseEntity::SetMoveCollide(int)

SetMoveType

Set the move type

void CBaseEntity::SetMoveType(int)

SetOrigin

No description provided

void CBaseEntity::SetOrigin(Vector)

SetOwner

Sets this entity's owner

void CBaseEntity::SetOwner(handle)

SetParent

Sets the parent entity

void CBaseEntity::SetParent(handle)

SetParentWithAttachment

Sets the parent entity with an attachment index

void CBaseEntity::SetParentWithAttachment(handle, int)

SetSize

No description provided

void CBaseEntity::SetSize(Vector, Vector)

SetTeam

No description provided

void CBaseEntity::SetTeam(int)

SetVelocity

No description provided

void CBaseEntity::SetVelocity(Vector)

Spawn

Spawns the entity

void CBaseEntity::Spawn()

StopSound

Stops a sound on this entity.

void CBaseEntity::StopSound(string)

ValidateScriptScope

Ensure that an entity's script scope has been created

bool CBaseEntity::ValidateScriptScope()

entindex

No description provided

int CBaseEntity::entindex()