upgrade_spawn

From Source Entities
Jump to navigation Jump to search

Code classes:

upgrade_spawn is a point entity present in L4d2-small.pngLeft 4 Dead 2. It might spawn an ammo or laser sight upgrade.

ConVars/Commands[edit | edit source]

ConVar/CommandParameters or default valueParameter TypeEffect
director_per_map_weapon_upgrade_chance.25Decimal percentChance for an upgrade_spawn to spawn anything at all. Requires sv_cheats 1 in the console before taking effect.

Flags[edit | edit source]

  • 1: Enable Physics on spawned item - Items falls naturally to the ground.
  • 2: Spawned Item Must Exist - Item will be spawned regardless of any other factors.

Keyvalues[edit | edit source]

Laser Sight (laser_sight) <boolean>
Allows upgrade_laser_sights to spawn here. Note: Unless Spawned Item Must Exist is checked, the upgrade will not spawn if another one in the map already spawned. This only applies to laser sights.
Incendiary Ammo (upgradepack_incendiary) <boolean>
Allows upgrade_ammo_incendiarys to spawn here.
Explosive Ammo (upgradepack_explosive) <boolean>
Allows upgrade_ammo_explosives to spawn here.