Info item position: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with information from hammer's "help" window. Some formatting has to be donw with the "add output" input. I can't seem to get the entire string to work.)
 
m (replaced some info with the templates for them)
Line 1: Line 1:
{{l4d2 point|info_item_position}} 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
{{l4d2 point|info_item_position}} 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
<onlyinclude>
 
== Keyvalues ==
== Keyvalues ==
{{KV|Name|string|The name that other entities refer to this entity by.}}
{{KV Targetname}}
{{KV|Entity Scripts|string|Name(s) of script files that are executed after all entities have spawned.}}
{{KV Angles}}
{{KV|Script think function|string|Name of a function in this entity's script scope which will be called automatically.}}
{{KV Parentname}}
{{KV|Pitch Yaw Roll (Y Z X)|angle|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.}}
{{KV|Parent|target_destination|The name of this entity's parent in the movement hierarchy. Entities with parents move with their parent.}}
{{KV|Helper Model|studio|A model used to represent this entity.}}
{{KV|Helper Model|studio|A model used to represent this entity.}}
{{KV|Group|int|Group Number.}}
{{KV|Group|int|Group Number.}}
{{KV|Rarity rarity|choices|Item rarity at this location.}}
{{KV|Rarity|choices|Item rarity at this location.}}
{{KV|Replace|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}}
{{KV|Replace|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}}


== Inputs ==
== Inputs ==
{{IO|RunScriptFile|Execute a game script file from disk.|param=script}}
{{I Targetname}}
{{IO|RunScriptCode|Execute a string of script source code|param=string}}
{{IO|Kill|Removes this entity from the world.}}
{{IO|KillHierarchy|Removes this entity and all its children from the world.}}
{{IO|AddOutput|Adds an entity I/O connection to this entity. Format: <output name> <targetname>:<inputname>:<parameter>:<delay>:<max times to fire (-1 == infinite)>. Very dangerous, use with care.|param=string}}
{{IO|FireUser1 to FireUser4|Fire the OnUser outputs; see [[User Inputs and Outputs|User Inputs and Outputs]].}}
{{IO|Strip|Removes all weapons.}}
{{IO|Strip|Removes all weapons.}}
{{IO|StripActiveWeapon|Removes the active weapon.}}
{{IO|StripActiveWeapon|Removes the active weapon.}}
{{IO|StripWeaponByClassname|string|Removes a weapon by classname, eg 'weapon_dieselcan'}}
{{IO|StripWeaponByClassname|string|Removes a weapon by classname, eg 'weapon_dieselcan'}}


== Outputs ==
== Outputs ==
{{O Targetname}}
{{O Targetname}}
</onlyinclude>

Revision as of 08:42, 14 June 2018

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

Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
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.
Helper Model ([todo internal name (i)]) <model path>
A model used to represent this entity.
Group ([todo internal name (i)]) <integer>
Group Number.
Rarity ([todo internal name (i)]) <choices>
Item rarity at this location.
Replace ([todo internal name (i)]) <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

Inputs

Strip
Removes all weapons.
StripActiveWeapon
Removes the active weapon.
StripWeaponByClassname
string

Outputs