Info deathmatch spawn: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Added thumb, random spawns, spawn location priorities.)
(Moved table to CS:GO Gamemodes: Deathmatch.)
Line 1: Line 1:
[[Image:Info_deathmatch_spawn.png|200px|thumb|info_deathmatch_spawn in Hammer.]]
[[Image:Info_deathmatch_spawn.png|200px|thumb|info_deathmatch_spawn in Hammer.]]
{{Csgo point|info_deathmatch_spawn}}
{{Csgo point|info_deathmatch_spawn}}
In the Deathmatch [[CSGO_Game_Mode_Commands|gamemode]], [[player]]s spawn primarily at the origin of these entities.
In the [[CS:GO Gamemodes: Deathmatch|Deathmatch]] [[CSGO_Game_Mode_Commands|gamemode]], [[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.


{{Warning | The game generates this entity across the map automatically, except there is an [[info_map_parameters]] entity with the keyvalue <code>disableautogenerateddmspawns 1</code>. Generated [[info_deathmatch_spawn]]s are 16 units above the ground and have the [[angles]] <code>(0,0,0)</code>.}}
{{Warning | The game generates this entity across the map automatically, except there is an [[info_map_parameters]] entity with the keyvalue <code>disableautogenerateddmspawns 1</code>. Generated [[info_deathmatch_spawn]]s are 16 units above the ground and have the [[angles]] <code>(0,0,0)</code>.}}


{{Note | If there is an [[info_map_parameters]] entity with the keyvalue <code>usenormalspawnsfordm 1</code>, then this entity serves no purpose initially.}}
{{Note | If there is an [[info_map_parameters]] entity with the keyvalue <code>usenormalspawnsfordm 1</code>, then this entity serves no purpose initially.}}
A [[player]]'s spawn coordinate in the Deathmatch gamemode is chosen with the following priorities:
{| class="standard-table"
|+ [[Player]]s' respawn location priorities in Deathmatch
! Default
! "Use Normal Spawns in Deathmatch"
|-
|
# The origin of any enabled [[info_deathmatch_spawn]] that is not blocked by another player.
# The origin of any enabled [[info_player_terrorist]] or [[info_player_counterterrorist]] (matching the player's team) that is not blocked by another player.
# The origin of ''any'' [[info_deathmatch_spawn]].
# <code>(0,0,0)</code> ([[worldspawn]]).
|
# The origin of any enabled [[info_player_terrorist]] or [[info_player_counterterrorist]] (matching the player's team) that is not blocked by another player.
# The origin of ''any'' [[info_player_terrorist]] or [[info_player_counterterrorist]] (matching the player's team).
# <code>(0,0,0)</code> ([[worldspawn]]).
|}
{{Note | If there are more players than spawn points, it is possible that [[player]]s spawn inside each other or at disabled spawn points, especially at round start. A standard map should have between 16 and 32 spawn points.}}
{{Placement Tip | This entity should be placed at least 128 units away from each other and surrounding walls and 16 units off the ground to avoid [[player]]s being stuck inside the floor.}}


==Keyvalues==
==Keyvalues==

Revision as of 17:27, 12 April 2021

info_deathmatch_spawn in Hammer.

info_deathmatch_spawn is a point entity available in Counter-Strike: Global Offensive Counter-Strike: Global Offensive. In the Deathmatch gamemode, 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, except there is an info_map_parameters entity with the keyvalue disableautogenerateddmspawns 1. Generated info_deathmatch_spawns are 16 units above the ground and have the angles (0,0,0).
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.

Outputs