Info map parameters (Counter-Strike series): Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{LanguageBar}}
{{LanguageBar}}
{{TabsBar|main=Info map parameters}}
{{TabsBar|main=Info map parameters}}
{{Preserved entity|all}}
{{CD|CMapInfo|file1=mapinfo.cpp}}
{{CD|CMapInfo|file1=mapinfo.cpp}}
{{this is a|logical entity|game1=Counter-Strike: Global Offensive|name=info_map_parameters|game=Counter-Strike: Source}}  
{{this is a|logical entity|game=Counter-Strike series|name=info_map_parameters}}  
{{toc-right}}
{{toc-right}}
This entity determines the [[weapon_c4|C4]] explosion radius and the teams that are allowed to buy.<br>
This entity determines the [[weapon_c4|C4]] explosion radius and the teams that are allowed to buy.<br>
{{csgo}} Furthermore, it determines whether random [[info_deathmatch_spawn]] entities shall be generated across the map; whether they are used as spawn points in {{csgo mode|Deathmatch}}; and the [[bot]]s' maximum vision distance.
{{csgo}} Furthermore, it determines whether random [[info_deathmatch_spawn]] entities shall be generated across the map; whether they are used as spawn points in {{csgo mode|Deathmatch}}; and the [[bot]]s' maximum vision distance.
{{PreservedEnt|info_map_parameters}}


== Keyvalues ==
== Keyvalues ==
{{KV Targetname}}
{{KV Targetname}}
{{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|Team that can buy|integer choices|intn=buying|Defines which teams can buy weapons. Default 0.<br>{{csgo}} Can be overridden with {{ent|sv_buy_status_override}}.}}
:<ol start=0><li>Everyone<li>Counter-terrorists only<li>Terrorists only<li>Nobody</ol>  
:<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|C4 Explosion Radius|integer|intn=bombradius|Overrides the default radius of the explosion when the C4 bomb explodes. Max range is 2048. Default 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?|bool|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|Disable Autogenerated DM Spawns?|choices|intn=disableautogenerateddmspawns|only=CSGO|Set to <code>Yes</code> if you don't want the engine to generate [[info_deathmatch_spawn]]s.}}
{{KV|Disable Autogenerated DM Spawns?|bool|intn=disableautogenerateddmspawns|only=CSGO|Set to <code>Yes</code> if you don't want the engine to generate [[info_deathmatch_spawn]]s.}}
{{KV|Bot Max Vision Distance|float|intn=botmaxvisiondistance|only=CSGO|Sets the maximum distance [[bot]]s can see enemies. Default is -1, unlimited.}}
{{KV|Bot Max Vision Distance|float|intn=botmaxvisiondistance|only=CSGO|Sets the maximum distance [[bot]]s can see enemies. Default is -1, unlimited.}}
{{KV|Fade Player Visibility Far Z|bool|intn=fadeplayervisibilityfarz|only=CSGO|Fade player visibility beyond far z distance.}}
{{KV|Fade Player Visibility Far Z|bool|intn=fadeplayervisibilityfarz|only=CSGO|Fade player visibility beyond far z distance.}}

Latest revision as of 04:54, 14 May 2025

English (en)Translate (Translate)
edit
Recycle-warning.png
This is a preserved entity.
If the game has round restart mechanics this entity may not behave as expected.
C++ Class hierarchy
CMapInfo
CPointEntity
CBaseEntity
C++ mapinfo.cpp

info_map_parameters is a logical entity available in Counter-Strike seriesCounter-Strike series Counter-Strike series.

This entity determines the C4 explosion radius and the teams that are allowed to buy.
Counter-Strike: Global Offensive Furthermore, it determines whether random info_deathmatch_spawn entities shall be generated across the map; whether they are used as spawn points in CS:GO/CS2 Deathmatch Deathmatch; and the bots' maximum vision distance.

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

Team that can buy (buying) <integer choices>
Defines which teams can buy weapons. Default 0.
Counter-Strike: Global Offensive Can be overridden with sv_buy_status_override.
  1. Everyone
  2. Counter-terrorists only
  3. Terrorists only
  4. Nobody
C4 Explosion Radius (bombradius) <integer>
Overrides the default radius of the explosion when the C4 bomb explodes. Max range is 2048. Default 500.
Pet Population (petpopulation) <float> (only in Counter-Strike: Global Offensive)
Determines the target population of pets (chicken).
Note.pngNote:Chickens won't spawn automatically unless the map has a Navigation Mesh.
Use Normal Spawns in Deathmatch? (usenormalspawnsfordm) <boolean> (only in Counter-Strike: Global Offensive)
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) <boolean> (only in Counter-Strike: Global Offensive)
Set to Yes if you don't want the engine to generate info_deathmatch_spawns.
Bot Max Vision Distance (botmaxvisiondistance) <float> (only in Counter-Strike: Global Offensive)
Sets the maximum distance bots can see enemies. Default is -1, unlimited.
Fade Player Visibility Far Z (fadeplayervisibilityfarz) <boolean> (only in Counter-Strike: Global Offensive)
Fade player visibility beyond far z distance.

Inputs

FireWinCondition <integer choicesRedirectInput/integer>
Ends the round after 5 seconds with the reason you specify.
Tip.pngTip:(only in Counter-Strike: Global Offensive) You can also use game_round_end.
Valid conditions
Value Winner Reason
0 Terrorists Target_Bombed
1 Counter-terrorists VIP_Escaped
2 Terrorists VIP_Assassinated
3 Terrorists Terrorists_Escaped
4 Counter-terrorists CTs_PreventEscape
5 Counter-terrorists Escaping_Terrorists_Neutralized
6 Counter-terrorists Bomb_Defused
7 Counter-terrorists CTs_Win
8 Terrorists Terrorists_Win
9 Draw Round_Draw
10 Counter-terrorists All_Hostages_Rescued
11 Counter-terrorists Target_Saved
12 Terrorists Hostages_Not_Rescued
13 Counter-terrorists Terrorists_Not_Escaped
14 Terrorists VIP_Not_Escaped
15 Draw Game_Commencing
Note.pngNote:The reason is stored in the round_end GameEvent.
Confirm:This is accurate for Counter-Strike: Source; is Counter-Strike: Global Offensive different?