Info item position: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
 
(7 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{lang|Info item position}}
{{LanguageBar}}
{{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
{{CD|CInfoItemPosition}}
{{This is a|point entity|name=info_item_position|game=Left 4 Dead 2}} 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
 
== Vscript ==
See [[Left_4_Dead_2/Scripting/Script_Functions#CInfoItemPosition]]


== Keyvalues ==
== Keyvalues ==
{{KV Targetname}}
{{KV Targetname}}
{{KV Angles}}
{{KV|Helper Model|intn=model|studio|A model used to represent this entity.}}
{{KV Parentname}}
{{KV|Group|intn=group|int|Group Number.}}
{{KV|Helper Model|studio|A model used to represent this entity.}}
{{KV|Rarity|intn=rarity|choices|Item rarity at this location.}}
{{KV|Group|int|Group Number.}}
:*0: Common
{{KV|Rarity|choices|Item rarity at this location.}}
:*1: Occasional
{{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}}
:*2: Scarce
{{KV|Replace|intn=replace01|to=Replace|intn2=replace10|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 ==
{{I Targetname}}
{{I|SetGroup|Set the group number.}}
{{IO|Strip|Removes all weapons.}}
{{I|SetRarity|Set the rarity.}}
{{IO|StripActiveWeapon|Removes the active weapon.}}
{{IO|StripWeaponByClassname|string|Removes a weapon by classname, eg 'weapon_dieselcan'}}
 
== Outputs ==
{{O Targetname}}

Latest revision as of 11:24, 11 October 2024

English (en)中文 (zh)Translate (Translate)
C++ Class hierarchy
CInfoItemPosition
CPointEntity
CBaseEntity

info_item_position is a point entity available in Left 4 Dead 2 Left 4 Dead 2. 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

Vscript

See Left_4_Dead_2/Scripting/Script_Functions#CInfoItemPosition

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

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) to Replace (replace10) <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

SetGroup
Set the group number.
SetRarity
Set the rarity.