Need help with plugins or servers? Join our Discord

Modding Database

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

npc_template_maker

entityclass: CTemplateNPCMaker →

2 keyvalues +59 inherited · 0 inputs +77 inherited · 0 outputs +10 inherited

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

Keyvalues

Declared by CTemplateNPCMaker · 2
entityLumpNamestring SetStringCTemplateNPCMaker::m_iszSource2EntityLumpName
worldNamestring SetStringCTemplateNPCMaker::m_iszWorldName
Inherited from base classes and components · 59
angleproceduralfloat32 SetFloatCBaseEntity
anglesproceduralqangle SetVectorCBaseEntity
avelocityqangle SetVectorCBaseEntity::m_vecAngVelocity
BatchCountint32 SetIntCBaseNPCMaker::m_nBatchCount
casterproceduralehandle SetStringCBaseEntity
CriterionDistanceint32 SetIntCBaseNPCMaker::m_CriterionDistance
CriterionVisibilityint32 SetIntCBaseNPCMaker::m_CriterionVisibility
damagefilterstring SetStringCBaseEntity::m_iszDamageFilterName
DestinationGroupstring SetStringCBaseNPCMaker::m_iszDestinationGroup
disablelowviolenceboolean SetBoolCBaseEntity::m_bDisableLowViolence
disablereceiveshadowsproceduralint32 SetIntCBaseEntity
disableshadowsproceduralint32 SetIntCBaseEntity
effectsuint32 SetIntCBaseEntity::m_fEffects
frictionfloat32 SetFloatCBaseEntity::m_flFriction
globalnamestring SetStringCBaseEntity::m_iGlobalname
gravityfloat32 SetFloatCBaseEntity::m_flGravityScale
healthint32 SetIntCBaseEntity::m_iHealth
HullCheckModeint32 SetIntCBaseNPCMaker::m_nHullCheckMode
IgnoreEntitystring SetStringCBaseNPCMaker::m_iszIgnoreEnt
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
MaxLiveChildrenint32 SetIntCBaseNPCMaker::m_nMaxLiveChildren
MaxNPCCountint32 SetIntCBaseNPCMaker::m_nMaxNumNPCs
MinSpawnDistanceint32 SetIntCBaseNPCMaker::m_nMinSpawnDistance
modelproceduralhmodel SetStringCBaseEntity
ModelScaleproceduralfloat32 SetFloatCGameSceneNode via m_CBodyComponent → m_pSceneNode
MoveTypeuint8 SetIntCBaseEntity::m_MoveType
nextthinktick SetIntCBaseEntity::m_nNextThinkTick
nodamageforcesproceduralint32 SetIntCBaseEntity
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
Radiusfloat32 SetFloatCBaseNPCMaker::m_flRadius
ResponseContextstring SetStringCBaseEntity::m_iszResponseContext
RetryFrequencyfloat32 SetFloatCBaseNPCMaker::m_flRetryFrequency
scaleproceduralfloat32 SetFloatCGameSceneNode via m_CBodyComponent → m_pSceneNode
scalesproceduralvector SetVectorCGameSceneNode via m_CBodyComponent → m_pSceneNode
spawnflagsuint32 SetIntCBaseEntity::m_spawnflags
SpawnFrequencyfloat32 SetFloatCBaseNPCMaker::m_flSpawnFrequency
SpawnThresholdint32 SetIntCBaseNPCMaker::m_nSpawnThreshold
speedfloat32 SetFloatCBaseEntity::m_flSpeed
StartDisabledboolean SetBoolCBaseNPCMaker::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
ZeroPitchAndRollboolean SetBoolCBaseNPCMaker::m_bZeroPitchAndRoll

Inputs

Declared by CTemplateNPCMaker · 0
None.
Inherited from base classes and components · 77
AddAttributestringCBaseEntity
AddContextstringCBaseEntity
AddMaxChildrenint32CBaseNPCMaker
AddModifierstringCBaseEntity
AlternativeSortingbooleanCBaseEntity
ChangeDestinationGroupstringCBaseNPCMaker
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 valueCBaseNPCMaker
DisableDamageForcesno valueCBaseEntity
DisableInfiniteSpawnsbooleanCBaseNPCMaker
DisablePlatformno valueCBaseEntity
DisableShadowno valueCBaseEntity
DispatchResponsestringCBaseEntity
Enableno valueCBaseNPCMaker
EnableDamageForcesno valueCBaseEntity
EnableInfiniteSpawnsno valueCBaseNPCMaker
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
SetBatchCountbooleanCBaseNPCMaker
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
SetMaxChildrenint32CBaseNPCMaker
SetMaxLiveChildrenint32CBaseNPCMaker
SetMinimumSpawnDistanceint32CBaseNPCMaker
SetParentstringCBaseEntity
SetParentAttachmentstringCBaseEntity
SetParentAttachmentMaintainOffsetstringCBaseEntity
SetSpawnEntitystringCBaseNPCMaker
SetSpawnFrequencyfloat32CBaseNPCMaker
SetTeamint32CBaseEntity
Spawnno valueCBaseNPCMaker
SpawnInLineno valueCBaseNPCMaker
SpawnInRadiusno valueCBaseNPCMaker
SpawnMultipleint32CBaseNPCMaker
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
Toggleno valueCBaseNPCMaker
Useint32CBaseEntity

Outputs

Declared by CTemplateNPCMaker · 0
None.
Inherited from base classes and components · 10
OnAllLiveChildrenDeadCBaseNPCMaker
OnAllSpawnedCBaseNPCMaker
OnAllSpawnedDeadCBaseNPCMaker
OnKilledCBaseEntity
OnSpawnedNPCDiedCBaseNPCMaker
OnSpawnNPCCBaseNPCMaker
OnUser1CBaseEntity
OnUser2CBaseEntity
OnUser3CBaseEntity
OnUser4CBaseEntity

History

  1. 6722
    changed CTemplateNPCMaker datamap
    • key worldName (m_iszWorldName): flags ["save","key"] → ["key"], offset 1416 → 1424
    • key entityLumpName (m_iszSource2EntityLumpName): flags ["save","key"] → ["key"], offset 1424 → 1432
    changed CBaseNPCMaker datamap
    • − m_hSpawnedNPC
    • − m_nLiveChildren
    • − m_hIgnoreEntity
    • − m_bSpawning
    • − m_hSpawnEntity
    • − m_nCurrentBatchCount
    • − m_nNumSpawnDestinations
    • − m_nNumValidDestinations
    • − input Spawn (InputSpawn)
    • − input Enable (InputEnable)
    • − input Disable (InputDisable)
    • − input Toggle (InputToggle)
    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