weapon_item_spawn
Jump to navigation
Jump to search
![]() |
---|
CMultiSpawner |
weapon_item_spawn
is a point entity available in Left 4 Dead 2. It is a spawn point for any available item, except weapon upgrades. Spawned item is automatically placed on the ground below.
Keyvalues
- Name (targetname) <string>
- 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
Important:If you want to use this item position only in specific gamemode for example coop then you must use point_template and fire ForceSpawn to it from info_gamemode's OnCoop output. Attempting to do it the other way around like sending Kill input to this entity in OnVersus won't work because this entity is upon spawning immediately converted to one of the specific weapon_*_spawn entities that were picked and targetname isn't transferred
- 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>
Note:Random item from all booleans set to 1 is considered for spawn
- 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
Flags
Enable Physics on spawned item : [1]
Spawned Item Must Exist : [2]
Infinite Items : [8]
Editing the FGD (Optional)
See Also
- weapon_ammo_spawn
- weapon_first_aid_kit_spawn
- weapon_molotov_spawn
- weapon_pain_pills_spawn
- weapon_pipe_bomb_spawn
- weapon_oxygentank
- weapon_propanetank
- weapon_gascan_spawn
- weapon_adrenaline_spawn
- weapon_defibrillator_spawn
- weapon_chainsaw_spawn
- weapon_grenade_launcher_spawn
- weapon_rifle_m60_spawn
- weapon_melee_spawn