Info map parameters (Counter-Strike series): Difference between revisions
Jump to navigation
Jump to search

Important:This is a preserved entity in 


.
If the game has round restart mechanics this entity may not behave as expected:
SirYodaJedi (talk | contribs) (→Inputs) |
SirYodaJedi (talk | contribs) |
||
Line 10: | Line 10: | ||
== Keyvalues == | == Keyvalues == | ||
{{KV Targetname}} | {{KV Targetname}} | ||
{{KV|Team that can buy|integer choices|intn=buying|Defines which teams can buy weapons | {{KV|Team that can buy|integer choices|intn=buying|Defines which teams can buy weapons.<br>{{csgo}} Can be overridden with {{ent|sv_buy_status_override}}.}} | ||
{{KV|C4 Explosion Radius|integer|intn=bombradius|Overrides the default radius of the explosion when the C4 bomb explodes. Max range is 2048. | :<ol start=0><li>Everyone<li>Counter-terrorists only<li>Terrorists only<li>Nobody</ol> | ||
{{KV|C4 Explosion Radius|integer|intn=bombradius|Overrides the default radius of the explosion when the C4 bomb explodes. Max range is 2048. If this entity is absent, defaults to 500.}} | |||
{{KV|Pet Population|float|intn=petpopulation|only=CSGO|Determines the target population of pets ([[chicken]]).{{Note|Chickens won't spawn automatically unless the map has a [[Navigation Meshes|Navigation Mesh]].}}}} | {{KV|Pet Population|float|intn=petpopulation|only=CSGO|Determines the target population of pets ([[chicken]]).{{Note|Chickens won't spawn automatically unless the map has a [[Navigation Meshes|Navigation Mesh]].}}}} | ||
{{KV|Use Normal Spawns in Deathmatch?|choices|intn=usenormalspawnsfordm|only=CSGO|Set to <code>Yes</code> if the map should use only the spawn points [[info_player_terrorist]] and [[info_player_counterterrorist]] instead of [[info_deathmatch_spawn]]s for Deathmatch.}} | {{KV|Use Normal Spawns in Deathmatch?|choices|intn=usenormalspawnsfordm|only=CSGO|Set to <code>Yes</code> if the map should use only the spawn points [[info_player_terrorist]] and [[info_player_counterterrorist]] instead of [[info_deathmatch_spawn]]s for Deathmatch.}} |
Revision as of 15:48, 25 March 2025


![]() |
---|
CMapInfo |
![]() |
info_map_parameters
is a point entity available in Counter-Strike: Source and
Counter-Strike: Global Offensive.
This entity determines the C4 explosion radius and the teams that are allowed to buy.
Furthermore, it determines whether random info_deathmatch_spawn entities shall be generated across the map; whether they are used as spawn points in
Deathmatch; and the bots' maximum vision distance.





If the game has round restart mechanics this entity may not behave as expected:
|
Keyvalues
- Name (targetname) <string>[ Edit ]
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentname
ortarget
).
Also displayed in Hammer's 2D views and Entity Report.See also: Generic Keyvalues, Inputs and Outputs available to all entities
- Team that can buy (buying) <integer choices>
- Defines which teams can buy weapons.
Can be overridden with sv_buy_status_override.
- Everyone
- Counter-terrorists only
- Terrorists only
- Nobody
- C4 Explosion Radius (bombradius) <integer>
- Overrides the default radius of the explosion when the C4 bomb explodes. Max range is 2048. If this entity is absent, defaults to 500.
- Pet Population (petpopulation) <float> (only in
)
- Determines the target population of pets (chicken).
Note:Chickens won't spawn automatically unless the map has a Navigation Mesh.
- Use Normal Spawns in Deathmatch? (usenormalspawnsfordm) <choices> (only in
)
- Set to
Yes
if the map should use only the spawn points info_player_terrorist and info_player_counterterrorist instead of info_deathmatch_spawns for Deathmatch.
- Disable Autogenerated DM Spawns? (disableautogenerateddmspawns) <choices> (only in
)
- Set to
Yes
if you don't want the engine to generate info_deathmatch_spawns.
- Bot Max Vision Distance (botmaxvisiondistance) <float> (only in
)
- Sets the maximum distance bots can see enemies. Default is -1, unlimited.
- Fade Player Visibility Far Z (fadeplayervisibilityfarz) <boolean> (only in
)
- Fade player visibility beyond far z distance.
Inputs
- FireWinCondition <integer choices >
- Ends the round after 5 seconds with the reason you specify.
Tip:(only in
) You can also use game_round_end.
Todo: winners, localization strings, english text
Value | Cause | Winner | Localization string | English text |
---|---|---|---|---|
0 | Target Bombed | T | ||
1 | VIP Escaped | CT | ||
2 | VIP Assassinated | T | ||
3 | Terrorists Escaped | T | ||
4 | CTs Prevent Escape | CT | ||
5 | Escaping Terrorists Neutralized | CT | ||
6 | Bomb Defused | CT | ||
7 | CTs Win | CT | ||
8 | Terrorists Win | T | ||
9 | Round Draw | Draw | ||
10 | All Hostages Rescued | CT | ||
11 | Target Saved | CT | ||
12 | Hostages Not Rescued | T | ||
13 | Terrorists Not Escaped | CT | ||
14 | VIP Not Escaped | T | ||
15 | Game Commencing | Draw |
Categories:
- CPointEntity
- Point entities
- Non-internal Counter-Strike: Source entities
- Counter-Strike: Source entities
- Counter-Strike: Source point entities
- Non-internal Counter-Strike: Global Offensive entities
- Counter-Strike: Global Offensive entities
- Counter-Strike: Global Offensive point entities
- Round-Preserved Entities