Weapon item spawn: Difference between revisions
Jump to navigation
Jump to search
(-added internal names) |
(-changed input template, removed duplicate keyvalue descriptions) |
||
Line 1: | Line 1: | ||
{{l4d2 point|weapon_item_spawn}} It is a spawn point for any available item, except [[upgrade_spawn|weapon upgrades]]. | {{l4d2 point|weapon_item_spawn}} It is a spawn point for any available item, except [[upgrade_spawn|weapon upgrades]]. Spawned item is automatically placed on the ground below. | ||
== Keyvalues == | == Keyvalues == | ||
{{KV|Ammo pile|intn=item1|bool | {{KV|Ammo pile|intn=item1|bool}} | ||
{{KV|First aid kit|intn=item2|bool | {{KV|First aid kit|intn=item2|bool}} | ||
{{KV|Molotov Cocktail|intn=item3|bool | {{KV|Molotov Cocktail|intn=item3|bool}} | ||
{{KV|Pain Pills|bool|intn=item4 | {{KV|Pain Pills|bool|intn=item4}} | ||
{{KV|Pipe Bomb|bool|intn=item5 | {{KV|Pipe Bomb|bool|intn=item5}} | ||
{{KV|Oxygen Tank|bool|intn=item6 | {{KV|Oxygen Tank|bool|intn=item6}} | ||
{{KV|Propane Tank|bool|intn=item7 | {{KV|Propane Tank|bool|intn=item7}} | ||
{{KV|Gasoline Can|bool|intn=item8 | {{KV|Gasoline Can|bool|intn=item8}} | ||
{{KV|Adrenaline|bool|intn=item11 | {{KV|Adrenaline|bool|intn=item11}} | ||
{{KV|Defibrillator|bool|intn=item12 | {{KV|Defibrillator|bool|intn=item12}} | ||
{{KV|Boomer Bile|bool|intn=item13 | {{KV|Boomer Bile|bool|intn=item13}} | ||
{{KV|Chainsaw|bool|intn=item16 | {{KV|Chainsaw|bool|intn=item16}} | ||
{{KV|Grenade Launcher|intn=item17|bool | {{KV|Grenade Launcher|intn=item17|bool}} | ||
{{KV|M60 Machinegun|bool|intn=item18|If set to 1, the director considers to spawn this, or any other item with the boolean set to 1}} | {{KV|M60 Machinegun|bool|intn=item18|If set to 1, the director considers to spawn this, or any other item with the boolean set to 1}} | ||
{{KV|Melee Weapon|string|intn=melee_weapon|If empty, the director won't consider to spawn a melee in this place. If you want the director to consider spawning one, use one or multiple names listed below, like in the <code>[[weapon_melee_spawn]]</code> entity }} | {{KV|Melee Weapon|string|intn=melee_weapon|If empty, the director won't consider to spawn a melee in this place. If you want the director to consider spawning one, use one or multiple names listed below, like in the <code>[[weapon_melee_spawn]]</code> entity }} | ||
Line 44: | Line 44: | ||
== Inputs == | == Inputs == | ||
{{I | {{I BaseEntity|l4d2=1}} | ||
== Outputs == | == Outputs == | ||
{{O Targetname}} | {{O Targetname}} |
Revision as of 01:34, 2 May 2022
Template:L4d2 point It is a spawn point for any available item, except weapon upgrades. Spawned item is automatically placed on the ground below.
Keyvalues
- Ammo pile (item1) <boolean>
- First aid kit (item2) <boolean>
- Molotov Cocktail (item3) <boolean>
- Pain Pills (item4) <boolean>
- Pipe Bomb (item5) <boolean>
- Oxygen Tank (item6) <boolean>
- Propane Tank (item7) <boolean>
- Gasoline Can (item8) <boolean>
- Adrenaline (item11) <boolean>
- Defibrillator (item12) <boolean>
- Boomer Bile (item13) <boolean>
- Chainsaw (item16) <boolean>
- Grenade Launcher (item17) <boolean>
- M60 Machinegun (item18) <boolean>
- If set to 1, the director considers to spawn this, or any other item with the boolean set to 1
- Melee Weapon (melee_weapon) <string>
- If empty, the director won't consider to spawn a melee in this place. If you want the director to consider spawning one, use one or multiple names listed below, like in the
weapon_melee_spawn
entity
golfclub
fireaxe
frying_pan
machete
baseball_bat
crowbar
cricket_bat
tonfa
katana
electric_guitar
shovel
pitchfork
Any
– director will place any available melee weapon
You may also list multiple specific melee weapons separated by a comma, and the director will select from among that subset of weapons:
crowbar,fireaxe,machete
- 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.
Flags
- 1 : Enable Physics on spawned item
- 2 : Spawned Item Must Exist
- 8 : Infinite Items