weapon_scavenge_item_spawn

From Source Entities
Jump to navigation Jump to search
L4d gas can 2.png

Code classes:

weapon_scavenge_item_spawn is a point entity present in L4d2-small.pngLeft 4 Dead 2. It spawns a gas can one or more times. Used in Scavenge mode to add objective items into the map.

Keyvalues[edit | edit source]

Initial Glow State (glowstate) <choices>
Whether cans should glow the moment the map starts or not. Cans will glow through objects even if not being looked at.
  • 0: OFF
  • 3: ON

Inputs[edit | edit source]

SpawnItem
Spawns an extra gas can, which will always respawn in addition to the original one.
TurnGlowsOn
Sets Glow State to ON.
TurnGlowsOff
Sets Glow State to OFF.

Outputs[edit | edit source]

OnItemPickedUp
Fires when the can is picked up.