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

From Valve Developer Community
Jump to navigation Jump to search
Line 23: Line 23:
{{todo|english text}}
{{todo|english text}}
{| class="wikitable sortable"
{| class="wikitable sortable"
|+ <span style="color:#ddd">Valid conditions</span>
|+ <span style="color:{{mono|ddd">Valid conditions</span>
|-
|-
! Value !! Winner !! Localization string !! English text
! Value !! Winner !! Reason
|-
|-
| 0 || Terrorists || #Target_Bombed ||
| 0 || Terrorists || {{mono|Target_Bombed}}
|-
|-
| 1 || Counter-terrorists || #VIP_Escaped ||
| 1 || Counter-terrorists || {{mono|VIP_Escaped}}
|-
|-
| 2 || Terrorists || #VIP_Assassinated ||
| 2 || Terrorists || {{mono|VIP_Assassinated}}
|-
|-
| 3 || Terrorists || #Terrorists_Escaped ||
| 3 || Terrorists || {{mono|Terrorists_Escaped}}
|-
|-
| 4 || Counter-terrorists || #CTs_PreventEscape ||
| 4 || Counter-terrorists || {{mono|CTs_PreventEscape}}
|-
|-
| 5 || Counter-terrorists || #Escaping_Terrorists_Neutralized ||
| 5 || Counter-terrorists || {{mono|Escaping_Terrorists_Neutralized}}
|-
|-
| 6 || Counter-terrorists || #Bomb_Defused ||
| 6 || Counter-terrorists || {{mono|Bomb_Defused}}
|-
|-
| 7 || Counter-terrorists || #CTs_Win ||
| 7 || Counter-terrorists || {{mono|CTs_Win}}
|-
|-
| 8 || Terrorists || #Terrorists_Win ||
| 8 || Terrorists || {{mono|Terrorists_Win}}
|-
|-
| 9 || Draw || #Round_Draw ||
| 9 || Draw || {{mono|Round_Draw}}
|-
|-
| 10 || Counter-terrorists || #All_Hostages_Rescued ||
| 10 || Counter-terrorists || {{mono|All_Hostages_Rescued}}
|-
|-
| 11 || Counter-terrorists || #Target_Saved ||
| 11 || Counter-terrorists || {{mono|Target_Saved}}
|-
|-
| 12 || Terrorists || #Hostages_Not_Rescued ||
| 12 || Terrorists || {{mono|Hostages_Not_Rescued}}
|-
|-
| 13 || Counter-terrorists || #Terrorists_Not_Escaped ||
| 13 || Counter-terrorists || {{mono|Terrorists_Not_Escaped}}
|-
|-
| 14 || Terrorists || #VIP_Not_Escaped ||
| 14 || Terrorists || {{mono|VIP_Not_Escaped}}
|-
|-
| 15 || Draw || #Game_Commencing ||
| 15 || Draw || {{mono|Game_Commencing}}
|-
|-
|}
|}
{{note|The reason is stored in the [[Counter-Strike: Source/Scripting/Game Events#round_end|{{mono|round_end}} GameEvent]].}}
{{confirm|This is accurate for {{css}}; is {{csgo}} different?}}
{{confirm|This is accurate for {{css}}; is {{csgo}} different?}}

Revision as of 15:14, 13 April 2025

English (en)Translate (Translate)
edit
C++ Class hierarchy
CMapInfo
CPointEntity
CBaseEntity
C++ mapinfo.cpp

info_map_parameters is a point entity available in Counter-Strike: Source Counter-Strike: Source and Counter-Strike: Global Offensive Counter-Strike: Global Offensive.

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.

Icon-Important.pngImportant:This is a preserved entity in Counter-Strike: SourceLeft 4 DeadLeft 4 Dead 2Counter-Strike: Global Offensive.
If the game has round restart mechanics this entity may not behave as expected:
More info
  • On a new round entities with this classname will intentionally not reset. You can use logic_auto to emulate resetting it.
  • Killing it removes it forever, as it is not respawned on a new round.
  • It cannot be spawned with a point_template.
  • Parenting this with non-preserved entities may have undesirable effects.

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.
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. If this entity is absent, defaults to 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) <choices> (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) <choices> (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.
Todo: english text
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?