Info deathmatch spawn: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with "{{DISPLAYTITLE:info_deathmatch_spawn}} {{csgo point|info_deathmatch_spawn}} == Entity description== This entity marks a deathmatch spawn point. This is the entity that populates...")
 
mNo edit summary
 
(11 intermediate revisions by 9 users not shown)
Line 1: Line 1:
{{DISPLAYTITLE:info_deathmatch_spawn}}
{{LanguageBar}}
{{csgo point|info_deathmatch_spawn}}
[[File:Info_deathmatch_spawn.png|200px|thumb|info_deathmatch_spawn in [[Hammer]].]]
{{back|CS:GO Gamemodes: Deathmatch}}{{tabsBar|main=s2|base=info_deathmatch_spawn}}
{{This is a|point entity|name=info_deathmatch_spawn|game=Counter-Strike: Global Offensive}}
In the {{csgo mode|Dm}} [[game mode]], [[player]]s spawn primarily at the origin of these entities. See [[CS:GO Gamemodes: Deathmatch#Map Requirements]] for the player spawning mechanism in Deathmatch and for placement tips of this entity.


== Entity description==
{{Warning|The game generates this entity across the map automatically, unless there is an [[Info_map_parameters/Counter-Strike_series|info_map_parameters]] entity with the keyvalue <code>disableautogenerateddmspawns 1</code>. Generated [[info_deathmatch_spawn]]s are 16 units above the ground, they have the [[angles]] <code>(0,0,0)</code> and they are never inside the [[AABB]] of a [[func_block_dm_spawns]] entity.}}
This entity marks a deathmatch spawn point. This is the entity that populates the map when mp_random_spawn is used.
Manually adding them to the map will guarantee that these spawn points are included in the set. A standard map should have between 16 and 32 spawn points.
Should be placed at least 128 units away from each other and surrounding walls.


== Keyvalues ==
{{Note|If there is an [[Info_map_parameters/Counter-Strike_series|info_map_parameters]] entity with the keyvalue <code>usenormalspawnsfordm 1</code>, then this entity serves no purpose initially.}}
 
==Keyvalues==
{{KV Targetname}}
{{KV Targetname}}
{{KV Angles}}
{{KV Angles}}
{{KV|Enabled by default?|bool}}
{{KV|Enabled by default?|bool|intn=enabled|Makes entity active and ready to spawn a player the moment the map loads.}}


==Inputs==
==Inputs==
{{I Targetname}}
{{I|SetEnabled|Sets this spawn point as enabled.|param=void}}
{{IO|SetEnabled|Sets this spawn point as enabled.|param=void}}
{{I|SetDisabled|Sets this spawn point as disabled.|param=void}}
{{IO|SetDisabled|Sets this spawn point as disabled.|param=void}}
{{I|ToggleEnabled|Toggle the enabled/disabled state of this spawn point.|param=void}}
{{IO|ToggleEnabled|Toggle the enabled/disabled state of this spawn point.|param=void}}
 
==Outputs==
{{O Targetname}}
 
== See also ==
* [[info_player_counterterrorist]]
* [[info_player_terrorist]]


[[Category:Player spawn entities]]
[[Category:Player spawn entities]]

Latest revision as of 11:03, 13 April 2025

English (en)Translate (Translate)
info_deathmatch_spawn in Hammer.
CS:GO Gamemodes: Deathmatch

info_deathmatch_spawn is a point entity available in Counter-Strike: Global Offensive Counter-Strike: Global Offensive. In the CS:GO/CS2 Deathmatch Deathmatch game mode, players spawn primarily at the origin of these entities. See CS:GO Gamemodes: Deathmatch#Map Requirements for the player spawning mechanism in Deathmatch and for placement tips of this entity.

Warning.pngWarning:The game generates this entity across the map automatically, unless there is an info_map_parameters entity with the keyvalue disableautogenerateddmspawns 1. Generated info_deathmatch_spawns are 16 units above the ground, they have the angles (0,0,0) and they are never inside the AABB of a func_block_dm_spawns entity.
Note.pngNote:If there is an info_map_parameters entity with the keyvalue usenormalspawnsfordm 1, then this entity serves no purpose initially.

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.
Enabled by default? (enabled) <boolean>
Makes entity active and ready to spawn a player the moment the map loads.

Inputs

SetEnabled <void>
Sets this spawn point as enabled.
SetDisabled <void>
Sets this spawn point as disabled.
ToggleEnabled <void>
Toggle the enabled/disabled state of this spawn point.