Need help with plugins or servers? Join our Discord

Modding Database

Up to date with Steam · checked 21s ago· Viewing build 6701 (Sep 25 2026), not the latest

logic_npc_counter_aabb

entityclass: CLogicNPCCounterAABB →

2 keyvalues +75 inherited · 0 inputs +63 inherited · 0 outputs +21 inherited

Spawn it (tick keyvalues below to add them)
var entity = CBaseEntity.CreateByName("logic_npc_counter_aabb")!;
var ekv = new CEntityKeyValues();
entity.Spawn(ekv);

Keyvalues

Declared by CLogicNPCCounterAABB · 2
box_outer_maxsvector SetVectorCLogicNPCCounterAABB::m_vDistanceOuterMaxs
box_outer_minsvector SetVectorCLogicNPCCounterAABB::m_vDistanceOuterMins
Inherited from base classes and components · 75
angleproceduralfloat32 SetFloatCBaseEntity
anglesproceduralqangle SetVectorCBaseEntity
avelocityqangle SetVectorCBaseEntity::m_vecAngVelocity
casterproceduralehandle SetStringCBaseEntity
damagefilterstring SetStringCBaseEntity::m_iszDamageFilterName
defaultDist1float32 SetFloatCLogicNPCCounter::m_flDefaultDist_1
defaultDist2float32 SetFloatCLogicNPCCounter::m_flDefaultDist_2
defaultDist3float32 SetFloatCLogicNPCCounter::m_flDefaultDist_3
disablelowviolenceboolean SetBoolCBaseEntity::m_bDisableLowViolence
disablereceiveshadowsproceduralint32 SetIntCBaseEntity
disableshadowsproceduralint32 SetIntCBaseEntity
distanceMaxfloat32 SetFloatCLogicNPCCounter::m_flDistanceMax
effectsuint32 SetIntCBaseEntity::m_fEffects
frictionfloat32 SetFloatCBaseEntity::m_flFriction
globalnamestring SetStringCBaseEntity::m_iGlobalname
gravityfloat32 SetFloatCBaseEntity::m_flGravityScale
healthint32 SetIntCBaseEntity::m_iHealth
invertState1boolean SetBoolCLogicNPCCounter::m_bInvertState_1
invertState2boolean SetBoolCLogicNPCCounter::m_bInvertState_2
invertState3boolean SetBoolCLogicNPCCounter::m_bInvertState_3
LagCompensateboolean SetBoolCBaseEntity::m_bLagCompensate
local.anglesqangle SetVectorCGameSceneNode::m_angRotation via m_CBodyComponent → m_pSceneNode
local.originnetwork_origin_cell_quantized_vector SetVectorCGameSceneNode::m_vecOrigin via m_CBodyComponent → m_pSceneNode
local.scalesproceduralvector SetVectorCGameSceneNode via m_CBodyComponent → m_pSceneNode
ltimefloat32 SetFloatCBaseEntity::m_flLocalTime
max_healthint32 SetIntCBaseEntity::m_iMaxHealth
maxCount1int32 SetIntCLogicNPCCounter::m_nMaxCount_1
maxCount2int32 SetIntCLogicNPCCounter::m_nMaxCount_2
maxCount3int32 SetIntCLogicNPCCounter::m_nMaxCount_3
maxCountAllint32 SetIntCLogicNPCCounter::m_nMaxCountAll
maxFactor1int32 SetIntCLogicNPCCounter::m_nMaxFactor_1
maxFactor2int32 SetIntCLogicNPCCounter::m_nMaxFactor_2
maxFactor3int32 SetIntCLogicNPCCounter::m_nMaxFactor_3
maxFactorAllint32 SetIntCLogicNPCCounter::m_nMaxFactorAll
minCount1int32 SetIntCLogicNPCCounter::m_nMinCount_1
minCount2int32 SetIntCLogicNPCCounter::m_nMinCount_2
minCount3int32 SetIntCLogicNPCCounter::m_nMinCount_3
minCountAllint32 SetIntCLogicNPCCounter::m_nMinCountAll
minFactor1int32 SetIntCLogicNPCCounter::m_nMinFactor_1
minFactor2int32 SetIntCLogicNPCCounter::m_nMinFactor_2
minFactor3int32 SetIntCLogicNPCCounter::m_nMinFactor_3
minFactorAllint32 SetIntCLogicNPCCounter::m_nMinFactorAll
modelproceduralhmodel SetStringCBaseEntity
ModelScaleproceduralfloat32 SetFloatCGameSceneNode via m_CBodyComponent → m_pSceneNode
MoveTypeuint8 SetIntCBaseEntity::m_MoveType
nextthinktick SetIntCBaseEntity::m_nNextThinkTick
nodamageforcesproceduralint32 SetIntCBaseEntity
NPCState1int32 SetIntCLogicNPCCounter::m_nNPCState_1
NPCState2int32 SetIntCLogicNPCCounter::m_nNPCState_2
NPCState3int32 SetIntCLogicNPCCounter::m_nNPCState_3
NPCType1string SetStringCLogicNPCCounter::m_iszNPCClassname_1
NPCType2string SetStringCLogicNPCCounter::m_iszNPCClassname_2
NPCType3string SetStringCLogicNPCCounter::m_iszNPCClassname_3
originproceduralvector SetVectorCBaseEntity
ownerehandle SetStringCBaseEntity::m_hOwnerEntity
ownernameproceduralutlstring SetStringCBaseEntity
parentAttachmentNameutlstringtoken SetStringTokenCGameSceneNode::m_hierarchyAttachName via m_CBodyComponent → m_pSceneNode
parentnameproceduralehandle SetStringCGameSceneNode via m_CBodyComponent → m_pSceneNode
platform_typeuint8 SetIntCBaseEntity::m_nPlatformType
positionInLocalSpaceproceduralboolean SetBoolCGameSceneNode via m_CBodyComponent → m_pSceneNode
ResponseContextstring SetStringCBaseEntity::m_iszResponseContext
scaleproceduralfloat32 SetFloatCGameSceneNode via m_CBodyComponent → m_pSceneNode
scalesproceduralvector SetVectorCGameSceneNode via m_CBodyComponent → m_pSceneNode
sourceEntityNamestring SetStringCLogicNPCCounter::m_iszSourceEntityName
spawnflagsuint32 SetIntCBaseEntity::m_spawnflags
speedfloat32 SetFloatCBaseEntity::m_flSpeed
startDisabledboolean SetBoolCLogicNPCCounter::m_bDisabled
subclass_idutlstringtoken SetStringTokenCBaseEntity::m_nSubclassID
subclass_nameproceduralstring SetStringCBaseEntity
targetstring SetStringCBaseEntity::m_target
teamnumberuint8 SetIntCBaseEntity::m_iTeamNum
useLocalOffsetproceduralboolean SetBoolCGameSceneNode via m_CBodyComponent → m_pSceneNode
useParentRenderBoundsproceduralboolean SetBoolCGameSceneNode via m_CBodyComponent → m_pSceneNode
velocitynetwork_quantized_vector SetVectorCBaseEntity::m_vecVelocity
vscriptsstring SetStringCBaseEntity::m_iszPrivateVScripts

Inputs

Declared by CLogicNPCCounterAABB · 0
None.
Inherited from base classes and components · 63
AddAttributestringCBaseEntity
AddContextstringCBaseEntity
AddModifierstringCBaseEntity
AlternativeSortingbooleanCBaseEntity
ChangeSubclassstringCBaseEntity
ChangeTeam
Set the entity team number
int iTeamNumCBaseEntity
ClassNameMatches
Returns true if the entity's class matches the one given (no wildcard support)
string pClassName → bool retvalCBaseEntity
ClearContextno valueCBaseEntity
ClearParentno valueCBaseEntity
Disableno valueCLogicNPCCounter
DisableDamageForcesno valueCBaseEntity
DisablePlatformno valueCBaseEntity
DisableShadowno valueCBaseEntity
DispatchResponsestringCBaseEntity
Enableno valueCLogicNPCCounter
EnableDamageForcesno valueCBaseEntity
EnablePlatformno valueCBaseEntity
EnableShadowno valueCBaseEntity
FindModelConfigEntity
Returns the model config entity attached to this entity by the specified name
string pConfigEntityName → ehandle retvalCBaseEntity
FireUser1stringCBaseEntity
FireUser2stringCBaseEntity
FireUser3stringCBaseEntity
FireUser4stringCBaseEntity
FollowEntitystringCBaseEntity
GetAbsAngles
Get the world orientation of this entity.
no value → qangle retvalCBaseEntity
GetAbsOrigin
The entity origin (absolute).
no value → vec3_worldspace retvalCBaseEntity
GetAbsScale
Get the world scale of this entity.
no value → float retvalCBaseEntity
GetAttachmentAngle
Return the Angle of the entity's attachment.
string pAttachment → qangle retvalCBaseEntity
GetAttachmentForward
Return the forward vector for the attachment
string pAttachment → vec3 retvalCBaseEntity
GetAttachmentLeft
Return the left vector for the attachment
string pAttachment → vec3 retvalCBaseEntity
GetAttachmentOrigin
Return the absolute position of the entity's attachment.
string pAttachment → vec3_worldspace retvalCBaseEntity
GetAttachmentUp
Return the up vector for the attachment
string pAttachment → vec3 retvalCBaseEntity
GetClassName
The entity class name
no value → string retvalCBaseEntity
GetLocalAngles
Get the local orientation of this entity.
no value → qangle retvalCBaseEntity
GetLocalScale
Get the local scale of this entity.
no value → float retvalCBaseEntity
GetOrigin
The entity origin (local)
no value → vec3 retvalCBaseEntity
GetTeamNumber
The entity team number
no value → int retvalCBaseEntity
IsModel
Returns true if the entity is using the given model, false otherwise
string strModel → bool retvalCBaseEntity
Killno valueCBaseEntity
KillConstrainedno valueCBaseEntity
KillHierarchyno valueCBaseEntity
NameMatches
Returns true if the entity name matches the given string. Wildcards are accepted.
string pNameOrWildcard → bool retvalCBaseEntity
PlatformFollowYawno valueCBaseEntity
PlatformIgnoreYawno valueCBaseEntity
RemoveAttributestringCBaseEntity
RemoveContextstringCBaseEntity
RemoveModifierstringCBaseEntity
SetAbsAngles
Set the world orientation of this entity.
qangle anglesCBaseEntity
SetAbsOrigin
Set the world origin of this entity.
vec3_worldspace vPosCBaseEntity
SetAbsScale
Set the world scale of this entity.
float flScaleCBaseEntity
SetDamageFilterstringCBaseEntity
SetLocalAngles
Set the local orientation of this entity. Use when you have a parent.
qangle anglesCBaseEntity
SetLocalOrigin
Set the local origin of this entity. Use when you have a parent.
vec3 vPosCBaseEntity
SetLocalScale
Set the local scale of this entity. Use when you have a parent.
float flScaleCBaseEntity
SetParentstringCBaseEntity
SetParentAttachmentstringCBaseEntity
SetParentAttachmentMaintainOffsetstringCBaseEntity
SetSourceEntitystringCLogicNPCCounter
SetTeamint32CBaseEntity
TeamNumint32CBaseEntity
TeleportToPoint
Teleport the given entity to the specified position and orientation
vec3_worldspace vPositionCBaseEntity
TeleportToTransform
Teleport the given entity to the specified transform
transform_worldspace xTransformCBaseEntity
Useint32CBaseEntity

Outputs

Declared by CLogicNPCCounterAABB · 0
None.
Inherited from base classes and components · 21
OnFactor1CLogicNPCCounter
OnFactor2CLogicNPCCounter
OnFactor3CLogicNPCCounter
OnFactorAllCLogicNPCCounter
OnKilledCBaseEntity
OnMaxCount1CLogicNPCCounter
OnMaxCount2CLogicNPCCounter
OnMaxCount3CLogicNPCCounter
OnMaxCountAllCLogicNPCCounter
OnMinCount1CLogicNPCCounter
OnMinCount2CLogicNPCCounter
OnMinCount3CLogicNPCCounter
OnMinCountAllCLogicNPCCounter
OnMinPlayerDist1CLogicNPCCounter
OnMinPlayerDist2CLogicNPCCounter
OnMinPlayerDist3CLogicNPCCounter
OnMinPlayerDistAllCLogicNPCCounter
OnUser1CBaseEntity
OnUser2CBaseEntity
OnUser3CBaseEntity
OnUser4CBaseEntity

History

  1. 6722
    changed CLogicNPCCounterAABB datamap
    • − m_vOuterMins
    • − m_vOuterMaxs
    • key box_outer_mins (m_vDistanceOuterMins): flags ["save","key"] → ["key"], offset 1824 → 1840
    • key box_outer_maxs (m_vDistanceOuterMaxs): flags ["save","key"] → ["key"], offset 1836 → 1852
    changed CLogicNPCCounter datamap
    • − m_hSource
    • − input SetSourceEntity (InputSetSourceEntity)
    • − input Enable (InputEnable)
    • − input Disable (InputDisable)
    • − CLogicNPCCounterSetNPCCounterThink
    • − output OnMinCountAll (m_OnMinCountAll)
    • − output OnMaxCountAll (m_OnMaxCountAll)
    • − output OnFactorAll (m_OnFactorAll)
    • − output OnMinPlayerDistAll (m_OnMinPlayerDistAll)
    • − output OnMinCount1 (m_OnMinCount_1)
    • − output OnMaxCount1 (m_OnMaxCount_1)
    • − output OnFactor1 (m_OnFactor_1)
    changed CBaseEntity datamap
    • − m_sUniqueHammerID
    • − m_pModifierProp
    • − key speed (m_flSpeed)
    • − m_flAnimTime
    • − m_flSimulationTime
    • − m_flCreateTime
    • − m_nLastThinkTick
    • − m_bDisabledContextThinks
    • − m_CScriptComponent
    • − m_aThinkFunctions
    • − m_ResponseContexts
    • − m_pSubclassVData
    removed CModifierProperty datamap
    removed CNetworkTransmitComponent datamap
    changed CGameSceneNode datamap
    • − m_flAbsScale
    • − m_flScale
    • − m_flClientLocalScale
    • − m_vRenderOrigin
    • − m_nodeToWorld
    • − m_pOwner
    • − m_pParent
    • − m_pChild
    • − m_pNextSibling
    • − m_nParentAttachmentOrBone
    • − m_bDirtyHierarchy
    • − m_bDirtyBoneMergeInfo
    removed CGameSceneNodeHandle datamap
    changed CBaseEntity inputs and outputs
    • + input AddAttribute string
    • + input AddContext string
    • + input AddModifier string
    • + input AddOutput string pParam
    • + input ChangeSubclass string
    • + input ClassMatches string entityType
    • + input ClearContext
    • + input ClearParent
    • + input DisableAutoSleeping
    • + input DisableDamageForces
    • + input DisablePlatform
    • + input DisableShadow