CMapInfo
Jump to navigation
Jump to search
Code classes:
CMapInfo
CPointEntity
CBaseEntity
(all ents)
CMapInfo
is a code class in some Source games. It sets some properties of the map.
Important: all items except weapon upgrades will spawn 100% of the time if there is no safehouse or part of the nav mesh marked with RESCUE_VEHICLE
.
Classnames:
info_map_parameters
ConVars/Commands[edit | edit source]
Keyvalues[edit | edit source]
Counter-Strike keyvalues[edit | edit source]
- Teams that can buy
(buying)
<choices>
- Who is allowed to buy weapons, etc. Can also be controlled by not making one or both
func_buyzone
s.- 0: Everyone
- 1: Only Counter-Terrorists
- 2: Only Terrorists
- 3: Nobody
- C4 Explosion Radius
(bombradius)
<float>
- Radius of the C4's explosion. This number gets multiplied by roughly 4 in and 3.5 in . Default value here is 500. Maximum 2048.
- Pet Population
(petpopulation)
<integer>
(only available in ) - How many
chicken
s should be in the map before they stop spawning. - Use Normal Spawns in Deathmatch?
(usenormalspawnsfordm)
<boolean>
(only available in ) - Set to true if the map should use
info_player_counterterrorist
andinfo_player_terrorist
instead ofinfo_deathmatch_spawn
in deathmatch. - Disable Autogenerated DM Spawns?
(disableautogenerateddmspawns)
<boolean>
(only available in ) - If false, the game will create its own
info_deathmatch_spawn
s which are used alongside ones placed in Hammer. - Bot max vision distance
(botmaxvisiondistance)
<float>
(only available in ) - Sets the maximum distance bots can see enemies. Default is -1, meaning unlimited.
Left 4 Dead keyvalues[edit | edit source]
- Pain Pill density
(PainPillDensity)
<float>
- Pain Pill and First Aid Kit density per sq 100 yards.
- Molotov density
(MolotovDensity)
<float>
- Molotov density per sq 100 yards.
- Pipe Bomb density
(PipeBombDensity)
<float>
- Pipe Bomb density per sq 100 yards.
- Pistol density
(PistolDensity)
<float>
- Pistol density per sq 100 yards.
- Weapon density
(WeaponDensity)
<float>
(only available in ) - Weapon (non-pistol) density per sq 100 yards.
- Gas Can density
(GasCanDensity)
<float>
- Gas Can density per sq 100 yards.
- Oxygen Tank density
(OxygenTankDensity)
<float>
- Oxygen Tank density per sq 100 yards.
- Propane Tank density
(PropaneTankDensity)
<float>
- Propane Tank density per sq 100 yards.
- Ammo pile density
(AmmoDensity)
<float>
(only available in ) - Ammo pile density per sq 100 yards.
- Melee Weapon density
(MeleeWeaponDensity)
<float>
(only available in ) - Melee Weapon density per sq 100 yards.
- Adrenaline density
(AdrenalineDensity)
<float>
(only available in ) - Adrenaline density per sq 100 yards.
- Defibrillator density
(DefibrillatorDensity)
<float>
(only available in ) - Defibrillator density per sq 100 yards.
- Boomer Bile density
(VomitJarDensity)
<float>
(only available in ) - Boomer Bile density per sq 100 yards.
- Ammo upgrade density
(UpgradepackDensity)
<float>
(only available in ) - Ammo upgrade density per sq 100 yards.
- Super Weapon density
(ChainsawDensity)
<float>
(only available in ) - Chainsaw and M60 density per sq 100 yards.
- Magnum Pistol Spawn density
(MagnumDensity)
<float>
(only available in ) - Density for
weapon_pistol_magnum_spawn
entities, -1 to spawn all. - Configurable Weapon Spawn density
(ConfigurableWeaponDensity)
<float>
(only available in ) - Density for
weapon_spawn
entities, -1 to spawn all. - Configurable Weapon Cluster Range
(ConfigurableWeaponClusterRange)
<float>
(only available in ) weapon_spawn
s that are this close to each other are considered a single 'cluster', and will always be the same tier and not the same weapon.Item Cluster Range(ItemClusterRange)
<float>
- Scavenge items of the same kind that are this close to each other are considered a single 'cluster' and will always spawn or not spawn together. Always 50; not changeable.
- Finale Item Cluster Count
(FinaleItemClusterCount)
<integer>
- "How many clusters of items will be populated in the finale."[Clarify]
Inputs[edit | edit source]
- FireWinCondition
<integer>
(only available in ) - Makes the round end. Parameter is the reason the round is ending.