From Valve Developer Community
Revision as of 01:02, 15 January 2020 by Deprecated (Added to Keyvalue Templates category)
- Values for
- Target Path Corner (target)
- The path_corner that this NPC will move to after spawning.
- Squad Name (squadname)
- NPCs that are in the same squad (i.e. have matching squad names) will share information about enemies, and will take turns attacking and covering each other.
- Hint Group (hintgroup)
- Hint groups are used by NPCs to restrict their hint-node searching to a subset of the map's hint nodes. Only hint nodes with matching hint group names will be considered by this NPC.
- Hint Limit Nav (hintlimiting)
- Limits NPC to using specified hint group for navigation requests, but does not limit local navigation.
- Sleep State (sleepstate)
- Holds the NPC in stasis until specified condition. See also 'Wake Radius' and 'Wake Squad'.
- 0: None
- 1: Waiting for threat
- 2: Waiting for PVS
- 3: Waiting for input, ignore PVS
- 4: Auto PVS
- 5: Auto PVS after PVS
- Wake Radius (wakeradius)
- Auto-wake if player within this distance
- Wake Squad (wakesquad)
- Wake all of the NPCs squadmates if the NPC is woken
- Enemy Filter (enemyfilter)
- Filter entity to test targets against
- Ignore unseen enemies (ignoreunseenenemies)
- Prefer visible enemies, regardless of distance or relationship priority
- Physics Impact Damage Scale (physdamagescale)
- Scales damage energy when this character is hit by a physics object. With a value of 0 the NPC will take no damage from physics.
- Disable Shadows (disableshadows)
- Prevents the entity from creating cheap render-to-texture shadows, or lightmap shadows if the entity is a
prop_static. Does not affect shadow mapping.
- Disable ShadowDepth (disableshadowdepth)
- Used to disable rendering into shadow depth (for projected textures) for this entity.
- Projected Texture Cache (shadowdepthnocache)
- Used to hint projected texture system whether it is sufficient to cache shadow volume of this entity or to force render it every frame instead.
- 0 : Default
- 1 : No cache - render every frame
- 2 : Cache it - render only once
- Render Mode
- Set a non-standard rendering mode on this entity.
- Render FX / Transparency (0 - 255)
- Transparency amount, requires a Render Mode other than Normal. 0 is invisible, 255 is fully visible.
- Render Color (R G B)
- Color tint.
- Disable Receiving Shadows
- Prevent the entity from receiving shadows on itself.
- Render FX
- Preset pattern of appearance effects.
- Pitch Yaw Roll (Y Z X)
- This entity's orientation in the world. Pitch is rotation around the Y axis, yaw is the rotation around the Z axis, roll is the rotation around the X axis.
- Entity Scripts
- Space delimited list of VScript files (without file extension) that are executed after all entities have spawned. The scripts are all executed in the same script scope, later ones overwriting any identical variables and functions.
- Script think function
- Name of a function in this entity's script which will be called automatically every 100 milliseconds (ten times a second) for the duration of the script. It can be used to create timers or to simulate autonomous behavior. The return value (if present) will set the time until the next call. Note:Try to avoid expensive operations in this function, as it may cause performance problems.
- Allow Physics Gun
- If set, players cannot use Physics Gun on this entity.
- Sandbox Tool Whitelist
- If set, only given tools can be used on this entity. You need to supply the tool class names, the names of the .lua files of those tools. This also includes the context menu properties!
- Vehicle to drive.