weapon_spawn
Jump to navigation
Jump to search
Code classes:
CWeaponSpawnConfigurable
CWeaponSpawn
CItem
(items)CBaseAnimating
(models)CBaseEntity
(all ents)
weapon_spawn
is a point entity present in Left 4 Dead 2. It's a potential spawning location for most items in the game. It's main purpose is to vary a weapon's type while keeping its general usefulness the same.
Flags[edit | edit source]
- 16: Constrain to spawn position (don't drop to the ground) - Must use this instead of Enable Physics.
Keyvalues[edit | edit source]
- Selection
(weapon_selection)
<choices>
- What may spawn here. (Unusable values omitted from table.)
Literal Value | Name |
---|---|
any | Any gun (except M60, Grenade Launcher & Chainsaw) |
any_primary | Any primary gun (except M60 & Grenade Launcher) |
tier1_any | Any Tier 1 shotgun or SMG |
tier2_any | Any Tier 2 shotgun or rifle (except M60) |
any_shotgun | Any shotgun |
tier1_shotgun | Any Tier 1 shotgun |
tier2_shotgun | Any Tier 2 shotgun |
any_smg | Any SMG |
any_rifle | Any rifle (except M60 & snipers) |
any_sniper_rifle | Any sniper rifle |
any_pistol | Any pistol |
weapon_autoshotgun | Auto Shotgun (Tier 2) |
weapon_shotgun_chrome | Chrome Shotgun (Tier 1) |
weapon_shotgun_spas | Combat Shotgun (Tier 2) |
weapon_pumpshotgun | Pump Shotgun (Tier 1) |
weapon_smg | Submachine Gun (Tier 1) |
weapon_smg_silenced | Silenced Submachine Gun (Tier 1) |
weapon_smg_mp5 | MP5 (Tier 1, CS) |
weapon_rifle_ak47 | AK-47 (Tier 2) |
weapon_rifle | Assault Rifle (Tier 2) |
weapon_rifle_desert | Desert Rifle (Tier 2) |
weapon_rifle_m60 (Not in FGD) | M60 |
weapon_rifle_sg552 | SG 552 (Tier 2, CS, NOT a sniper) |
weapon_hunting_rifle | Hunting Rifle (Tier 2, Sniper) |
weapon_sniper_awp | Sniper AWP (Tier 2, CS, Sniper) |
weapon_sniper_military | Sniper Military (Tier 2, Sniper) |
weapon_sniper_scout | Sniper Scout (Tier 2, CS, Sniper) |
weapon_pistol | Pistol |
weapon_pistol_magnum | Magnum Pistol |
weapon_grenade_launcher (Not in FGD) | Grenade Launcher |
weapon_chainsaw (Not in FGD) | Chainsaw |
weapon_vomitjar (Not in FGD) | Boomer Bile |
weapon_molotov (Not in FGD) | Molotov |
weapon_pipe_bomb (Not in FGD) | Pipe Bomb |
weapon_adrenaline (Not in FGD) | Adrenaline |
weapon_pain_pills (Not in FGD) | Pain Pills |
weapon_defibrillator (Not in FGD) | Defibrillator |
weapon_first_aid_kit (Not in FGD) | First Aid Kit |
weapon_oxygentank (Not in FGD) | Oxygen tank |
weapon_propanetank (Not in FGD) | Propane tank |
weapon_gascan (Not in FGD) | Gas can |
weapon_fireworkcrate (Not in FGD) | Fireworks |
weapon_upgradepack_explosive (Not in FGD) | Explosive Ammo Upgrade |
weapon_upgradepack_incendiary (Not in FGD) | Incendiary Ammo Upgrade |
weapon_gnome (Not in FGD) | Gnome |
weapon_cola_bottles (Not in FGD) | Cola |
- Spawn instantly without director
(spawn_without_director)
<boolean>
- Bypasses the proximity check set by Configurable Weapon Cluster Range
(ConfigurableWeaponClusterRange)
ininfo_map_parameters
that makes nearby weapons be the same tier and not the same weapon. Some weapons may not spawn if they can't pass the check. - No CS Weapons
(no_cs_weapons)
<boolean>
- Does not allow the entity to create any Counter-Strike weapons. (AWP, Scout, MP5, SG552)