Info map parameters: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Added two missing CS:GO's info_map_parameters' keyvalues.)
(Article updated.)
Line 3: Line 3:
==Entity description==
==Entity description==
It defines game-specific map parameters.<br>
It defines game-specific map parameters.<br>
Like which team can buy or the C4 radius in Counter-Strike: Source and Counter-Strike: Global Offensive.<br>
It specifies which team can buy and C4 explosion radius in [[Counter-Strike: Source]] and [[Counter-Strike: Global Offensive]].<br>
In the Left 4 Dead series it defines the density of weapons & items.
In [[Left 4 Dead]] series, it defines the density of weapons & items.


== Keyvalues ==
== Keyvalues ==
Line 10: Line 10:
{{KV Angles}}
{{KV Angles}}


==={{game link|Counter-Strike: Source}} / {{game link|Counter-Strike: Global Offensive}} only:===
===Counter-Strike: Source / Counter-Strike: Global Offensive===
{{KV|Team that can buy|integer|Defines which teams can buy weapons}}
{{KV|Team that can buy|integer|Defines which teams can buy weapons}}
{{KV|C4 Explosion Radius|integer|Overrides the default radius of the explosion when the C4 bomb explodes. Max range is 2048.}}
{{KV|C4 Explosion Radius|integer|Overrides the default radius of the explosion when the C4 bomb explodes. Max range is 2048.}}
{{KV|Pet Population|integer|Determines the target population of pets ([[chicken]]).}}
{{KV|Pet Population|integer|Determines the target population of pets ([[chicken]], {{csgo}} only)}}
{{KV|Use Normal Spawns in Deathmatch?|integer|Set to true if the map should use the mapper-placed spawn points instead of generating random ones.}}
{{Note| Chickens won't spawn automatically unless the map has a [[Navigation Meshes|Navigation Mesh]].}}
{{KV|Disable Autogenerated DM Spawns?|integer|Set to true if you want to manually place info_deathmatch_spawns and not have the engine generate them.}}
{{KV|Use Normal Spawns in Deathmatch?|integer|Set to true if the map should use the mapper-placed spawn points instead of generating random ones. ({{csgo}} only)}}
{{KV|Disable Autogenerated DM Spawns?|integer|Set to true if you want to manually place info_deathmatch_spawns and not have the engine generate them. ({{csgo}} only)}}  


==={{game link|Left 4 Dead}} / {{game link|Left 4 Dead 2}} only:===
===Left 4 Dead / Left 4 Dead 2===
{{KV|Pain Pill density|float|Pain Pill density per sq 100 yards}}
{{KV|Pain Pill density|float|Pain Pill density per sq 100 yards}}
{{KV|Molotov density|float|Molotov density per sq 100 yards}}
{{KV|Molotov density|float|Molotov density per sq 100 yards}}

Revision as of 05:56, 26 January 2019

Template:Base point multi

Entity description

It defines game-specific map parameters.
It specifies which team can buy and C4 explosion radius in Counter-Strike: Source and Counter-Strike: Global Offensive.
In Left 4 Dead series, it defines the density of weapons & items.

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

Pitch Yaw Roll (Y Z X) (angles) <QAngle>
This entity's orientation in the world. Pitch is rotation around the Y axis, yaw is the rotation around the Z axis, roll is the rotation around the X axis.

Counter-Strike: Source / Counter-Strike: Global Offensive

Team that can buy ([todo internal name (i)]) <integer>
Defines which teams can buy weapons
C4 Explosion Radius ([todo internal name (i)]) <integer>
Overrides the default radius of the explosion when the C4 bomb explodes. Max range is 2048.
Pet Population ([todo internal name (i)]) <integer>
Determines the target population of pets (chicken, Counter-Strike: Global Offensive only)
Note.pngNote: Chickens won't spawn automatically unless the map has a Navigation Mesh.
Use Normal Spawns in Deathmatch? ([todo internal name (i)]) <integer>
Set to true if the map should use the mapper-placed spawn points instead of generating random ones. (Counter-Strike: Global Offensive only)
Disable Autogenerated DM Spawns? ([todo internal name (i)]) <integer>
Set to true if you want to manually place info_deathmatch_spawns and not have the engine generate them. (Counter-Strike: Global Offensive only)

Left 4 Dead / Left 4 Dead 2

Pain Pill density ([todo internal name (i)]) <float>
Pain Pill density per sq 100 yards
Molotov density ([todo internal name (i)]) <float>
Molotov density per sq 100 yards
Pipe Bomb density ([todo internal name (i)]) <float>
Pipe Bomb density per sq 100 yards
Pistol density ([todo internal name (i)]) <float>
Pistol density per sq 100 yards
Weapon density ([todo internal name (i)]) <float>
Weapon (non-pistol) density per sq 100 yards (Left 4 Dead only)
Gas Can density ([todo internal name (i)]) <float>
Gas Can density per sq 100 yards
Oxygen Tank density ([todo internal name (i)]) <float>
Oxygen Tank density per sq 100 yards
Propane Tank density ([todo internal name (i)]) <float>
Propane Tank density per sq 100 yards
Item Cluster Range ([todo internal name (i)]) <float>
Scavenge items of the same kind that are this close to each other are considered a single 'cluster' for population purposes
Finale Item Cluster Count ([todo internal name (i)]) <integer>
How many clusters of items will be populated in the finale
Ammo pile density ([todo internal name (i)]) <float> (in all games since Left 4 Dead 2)
Ammo pile density per sq 100 yards
Melee Weapon density ([todo internal name (i)]) <float> (in all games since Left 4 Dead 2)
Melee Weapon density per sq 100 yards
Adrenaline density ([todo internal name (i)]) <float> (in all games since Left 4 Dead 2)
Adrenaline density per sq 100 yards
Defibrillator density ([todo internal name (i)]) <float> (in all games since Left 4 Dead 2)
Defibrillator density per sq 100 yards
Boomer Bile density ([todo internal name (i)]) <float> (in all games since Left 4 Dead 2)
Boomer Bile density per sq 100 yards
Ammo upgrade density ([todo internal name (i)]) <float> (in all games since Left 4 Dead 2)
Ammo upgrade pack density per sq 100 yards
Super Weapon density ([todo internal name (i)]) <float> (in all games since Left 4 Dead 2)
Chainsaw and Grenade Launcher density per sq 100 yards
Configurable Weapon Spawn density ([todo internal name (i)]) <float> (in all games since Left 4 Dead 2)
Density for weapon_spawn entities, -1 to spawn all
Configurable Weapon Cluster Range ([todo internal name (i)]) <float> (in all games since 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 ([todo internal name (i)]) <float> (in all games since Left 4 Dead 2)
Density for weapon_magnum_spawn entities, -1 to spawn all
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

Pitch Yaw Roll (Y Z X) (angles) <QAngle>
This entity's orientation in the world. Pitch is rotation around the Y axis, yaw is the rotation around the Z axis, roll is the rotation around the X axis.

Inputs

UpdateCvars
Stuff values from this entity into cvars for tweaking


Outputs

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