Info item position: Difference between revisions
Jump to navigation
Jump to search
Note:There are 10 Replace key-value pairs with the keys following replace{number} format for names: replace01, replace02, ..., replace10
No edit summary |
m (Add internal names of keyval keys, Add Rarity choices, Add note to Replace, Swap the order of keyvals) |
||
Line 3: | Line 3: | ||
== Keyvalues == | == Keyvalues == | ||
{{KV|Helper Model|intn=model|studio|A model used to represent this entity.}} | |||
{{KV|Group|intn=group|int|Group Number.}} | |||
{{KV|Rarity|intn=rarity|choices|Item rarity at this location.}} | |||
:*0: Common | |||
:*1: Occasional | |||
:*2: Scarce | |||
{{KV|Replace|intn=replace01|string|This is a replacement parameter. It goes in the form of $variable value. All entities inside of the spawn group that have $variable somewhere will be replaced with the value contents. Example: $color 255 0 0. | |||
{{note|There are 10 ''Replace'' key-value pairs with the keys following ''replace'''''{number}''' format for names: '''replace01''', '''replace02''', '''...''', '''replace10''' }}}} | |||
{{KV Targetname}} | {{KV Targetname}} | ||
{{KV Angles}} | {{KV Angles}} | ||
{{KV Parentname}} | {{KV Parentname}} | ||
== Inputs == | == Inputs == | ||
{{I Targetname}} | {{I Targetname}} |
Revision as of 03:40, 18 March 2021
Template:L4d2 point An entity that represents a possible item location in a map. Scripts can search for these entities and use them to spawn objects for different game modes
Keyvalues
- Helper Model (model) <model path>
- A model used to represent this entity.
- Group (group) <integer>
- Group Number.
- Rarity (rarity) <choices>
- Item rarity at this location.
- 0: Common
- 1: Occasional
- 2: Scarce
- Replace (replace01) <string>
- This is a replacement parameter. It goes in the form of $variable value. All entities inside of the spawn group that have $variable somewhere will be replaced with the value contents. Example: $color 255 0 0.

- Name (targetname) <string>[ Edit ]
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentname
ortarget
).
Also displayed in Hammer's 2D views and Entity Report.See also: Generic Keyvalues, Inputs and Outputs available to all entities
- Pitch Yaw Roll (Y Z X) (angles) <QAngle>
- 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.
Parentname:
- Parent (parentname) <targetname>
- Specifies a movement parent. An entity will maintain its initial offset from its parent. An attachment point can be added to the end of the name, separated by a comma.
Inputs
- Strip
- Removes all weapons.
- StripActiveWeapon
- Removes the active weapon.
- StripWeaponByClassname
- string