upgrade_spawn
Jump to navigation
Jump to search
Code classes:
CUpgradeSpawner
CPointEntity
CBaseEntity
(all ents)
upgrade_spawn
is a point entity present in Left 4 Dead 2. It might spawn an ammo or laser sight upgrade.
ConVars/Commands[edit | edit source]
ConVar/Command | Parameters or default value | Parameter Type | Effect |
---|---|---|---|
director_per_map_weapon_upgrade_chance | .25 | Decimal percent | Chance 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_sight
s 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_incendiary
s to spawn here. - Explosive Ammo
(upgradepack_explosive)
<boolean>
- Allows
upgrade_ammo_explosive
s to spawn here.