Info map parameters versus: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(updated description)
(-added class hierarchy, cleanup)
Line 1: Line 1:
{{CD|CMapInfoVersus}}
{{l4d series point|info_map_parameters_versus}} It defines L4D-specific map parameters for versus games. For default coop use [[info_map_parameters]]<br>
{{l4d series point|info_map_parameters_versus}} It defines L4D-specific map parameters for versus games. For default coop use [[info_map_parameters]]<br>
This only defines spawn density of [[weapon_spawn]] and [[weapon_item_spawn]] entities. It Does '''not''' work on specific spawnpoints such as [[weapon_rifle_spawn]]. If you want to control spawnpoints for specific guns, use [[weapon_spawn]] and force it to only spawn a specific gun.
This entity determines the density of all item spawns and weapons spawned with weapon_spawn. It does not work on specific weapon spawnpoints such as weapon_rifle_spawn. If you want to control spawnpoints for specific guns, use weapon_spawn and force it to only spawn a specific gun.


== Keyvalues ==
== Keyvalues ==
{{KV|Pain Pill density|intn=PainPillDensity|float|Pain Pill density per sq 100 yards. Default value is 6.48}}
{{KV|Molotov density|intn=MolotovDensity|float|Molotov density per sq 100 yards. Default value is 6.48}}
{{KV|Pipe Bomb density|intn=PipeBombDensity|float|Pipe Bomb density per sq 100 yards. Default value is 6.48}}
{{KV|Pistol density|intn=PistolDensity|float|Pistol density per sq 100 yards. Default value is 6.48}}
{{KV|Weapon density|float|Weapon (non-pistol) density per sq 100 yards ({{l4d}} only)}}
{{KV|Gas Can density|intn=GasCanDensity|float|Gas Can density per sq 100 yards. Default value is 6.48}}
{{KV|Oxygen Tank density|intn=OxygenTankDensity|float|Oxygen Tank density per sq 100 yards. Default value is 6.48}}
{{KV|Propane Tank density|intn=PropaneTankDensity|float|Propane Tank density per sq 100 yards. Default value is 6.48}}
{{KV|Item Cluster Range|intn=ItemClusterRange|float|Scavenge items of the same kind that are this close to each other are considered a single 'cluster' for population purposes. Default value is 50}}
{{KV|Finale Item Cluster Count|intn=FinaleItemClusterCount|integer|How many clusters of items will be populated in the finale. Default value is 3}}
{{KV|Ammo pile density|intn=AmmoDensity|float|Ammo pile density per sq 100 yards. Default value is 6.48|since=L4D2}}
{{KV|Melee Weapon density|intn=MeleeWeaponDensity|float|Melee Weapon density per sq 100 yards. Default value is 6.48|since=L4D2}}
{{KV|Adrenaline density|intn=AdrenalineDensity|float|Adrenaline density per sq 100 yards. Default value is 6.48|since=L4D2}}
{{KV|Defibrillator density|intn=DefibrillatorDensity|float|Defibrillator density per sq 100 yards. Default value is 2.5|since=L4D2}}
{{KV|Boomer Bile density|intn=VomitJarDensity|float|Boomer Bile density per sq 100 yards. Default value is 6.48|since=L4D2}}
{{KV|Ammo upgrade density|intn=UpgradepackDensity|float|Ammo upgrade pack density per sq 100 yards. Default value is 1.0|since=L4D2}}
{{KV|Super Weapon density|intn=ChainsawDensity|float|Chainsaw and Grenade Launcher density per sq 100 yards. Default value is 1.0|since=L4D2}}
{{KV|Configurable Weapon Spawn density|intn=ConfigurableWeaponDensity|float|Density for weapon_spawn entities, -1 to spawn all. Default value is -1.0|since=L4D2}}
{{KV|Configurable Weapon Cluster Range|intn=ConfigurableWeaponClusterRange|float|weapon_spawn entities that are this close to each other are considered a single 'cluster' for population purposes. Default value is 100|since=L4D2}}
{{KV|Magnum Pistol Spawn density|intn=MagnumDensity|float|Density for weapon_magnum_spawn entities, -1 to spawn all. Default value is -1.0|since=L4D2}}
{{KV Targetname}}
{{KV Targetname}}
{{KV Angles}}
{{KV|Pain Pill density|intn=PainPillDensity|float|Pain Pill density per sq 100 yards}}
{{KV|Molotov density|intn=MolotovDensity|float|Molotov density per sq 100 yards}}
{{KV|Pipe Bomb density|intn=PipeBombDensity|float|Pipe Bomb density per sq 100 yards}}
{{KV|Pistol density|intn=PistolDensity|float|Pistol density per sq 100 yards}}
{{KV|Weapon density|intn=WeaponDensity|float|Weapon (non-pistol) density per sq 100 yards|only={{l4d}}}}
{{KV|Gas Can density|intn=GasCanDensity|float|Gas Can density per sq 100 yards}}
{{KV|Oxygen Tank density|intn=OxygenTankDensity|float|Oxygen Tank density per sq 100 yards}}
{{KV|Propane Tank density|intn=PropaneTankDensity|float|Propane Tank density per sq 100 yards}}
{{KV|Item Cluster Range|intn=ItemClusterRange|float|Scavenge items of the same kind that are this close to each other are considered a single 'cluster' for population purposes{{bug|Doesn't work in both games}}}}
{{KV|Finale Item Cluster Count|intn=FinaleItemClusterCount|integer|How many clusters of items will be populated in the finale}}
{{KV|Ammo pile density|intn=AmmoDensity|float|Ammo pile density per sq 100 yards|only=l4d2}}
{{KV|Melee Weapon density|intn=MeleeWeaponDensity|float|Melee Weapon density per sq 100 yards|only=l4d2}}
{{KV|Adrenaline density|intn=AdrenalineDensity|float|Adrenaline density per sq 100 yards|only=l4d2}}
{{KV|Defibrillator density|intn=DefibrillatorDensity|float|Defibrillator density per sq 100 yards|only=l4d2}}
{{KV|Boomer Bile density|intn=VomitJarDensity|float|Boomer Bile density per sq 100 yards|only=l4d2}}
{{KV|Ammo upgrade density|intn=UpgradepackDensity|float|Ammo upgrade pack density per sq 100 yards|only=l4d2}}
{{KV|Super Weapon density|intn=ChainsawDensity|float|Chainsaw, Grenade Launcher and M60 density per sq 100 yards|only=l4d2}}
{{KV|Configurable Weapon Spawn density|intn=ConfigurableWeaponDensity|float|Density for weapon_spawn entities, -1 to spawn all|only=l4d2}}
{{KV|Configurable Weapon Cluster Range|intn=ConfigurableWeaponClusterRange|float|weapon_spawn entities that are this close to each other are considered a single 'cluster' for population purposes|only=l4d2}}
{{KV|Magnum Pistol Spawn density|intn=MagnumDensity|float|Density for weapon_magnum_spawn entities, -1 to spawn all|only=l4d2}}


== Inputs ==
==Inputs==
{{IO|UpdateCvars|Stuff values from this entity into cvars for tweaking}}
{{IO|UpdateCvars|Stuff values from this entity into cvars for tweaking}}
{{I Targetname}}
{{important|Also sets the director_scavenge_item_override cvar to 1.}}
 
== Outputs ==
{{O Targetname}}


==Useful console commands==
==Useful console commands==

Revision as of 10:43, 7 November 2022

C++ Class hierarchy
CMapInfoVersus
CMapInfo
CPointEntity
CBaseEntity

Template:L4d series point It defines L4D-specific map parameters for versus games. For default coop use info_map_parameters
This entity determines the density of all item spawns and weapons spawned with weapon_spawn. It does not work on specific weapon spawnpoints such as weapon_rifle_spawn. If you want to control spawnpoints for specific guns, use weapon_spawn and force it to only spawn a specific gun.

Keyvalues

Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Pain Pill density (PainPillDensity) <float>
Pain Pill 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 in Left 4 Dead)
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
Item Cluster Range (ItemClusterRange) <float>
Scavenge items of the same kind that are this close to each other are considered a single 'cluster' for population purposes
Icon-Bug.pngBug:Doesn't work in both games  [todo tested in ?]
Finale Item Cluster Count (FinaleItemClusterCount) <integer>
How many clusters of items will be populated in the finale
Ammo pile density (AmmoDensity) <float> (only in Left 4 Dead 2)
Ammo pile density per sq 100 yards
Melee Weapon density (MeleeWeaponDensity) <float> (only in Left 4 Dead 2)
Melee Weapon density per sq 100 yards
Adrenaline density (AdrenalineDensity) <float> (only in Left 4 Dead 2)
Adrenaline density per sq 100 yards
Defibrillator density (DefibrillatorDensity) <float> (only in Left 4 Dead 2)
Defibrillator density per sq 100 yards
Boomer Bile density (VomitJarDensity) <float> (only in Left 4 Dead 2)
Boomer Bile density per sq 100 yards
Ammo upgrade density (UpgradepackDensity) <float> (only in Left 4 Dead 2)
Ammo upgrade pack density per sq 100 yards
Super Weapon density (ChainsawDensity) <float> (only in Left 4 Dead 2)
Chainsaw, Grenade Launcher and M60 density per sq 100 yards
Configurable Weapon Spawn density (ConfigurableWeaponDensity) <float> (only in Left 4 Dead 2)
Density for weapon_spawn entities, -1 to spawn all
Configurable Weapon Cluster Range (ConfigurableWeaponClusterRange) <float> (only in Left 4 Dead 2)
weapon_spawn entities that are this close to each other are considered a single 'cluster' for population purposes
Magnum Pistol Spawn density (MagnumDensity) <float> (only in Left 4 Dead 2)
Density for weapon_magnum_spawn entities, -1 to spawn all

Inputs

UpdateCvars
Stuff values from this entity into cvars for tweaking
Icon-Important.pngImportant:Also sets the director_scavenge_item_override cvar to 1.

Useful console commands

director_solve_item_density
Pass the number of items you'd want in this map and this spits out the map density value.

See also