info_deathmatch_spawn

From Valve Developer Community
Jump to navigation Jump to search
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. These spawn points are used if mp_randomspawn is not 0, for example in CS:GO/CS2 Deathmatch Deathmatch and sometimes in CS:GO Guardian Guardian.

Icon-Important.pngImportant:The game auto-generates these deathmatch spawns by default, so mappers don't need to include this entity to support deathmatch. Generated info_deathmatch_spawns are 16 units above the ground, they have the angles (0,0,0) and their creation can be blocked using func_block_dm_spawns volumes.

To avoid random spawns and dictate the deathmatch spawn points in a map, mappers must both place this entity in the map and turn off the auto-generated spawns with an info_map_parameters entity using the keyvalue disableautogenerateddmspawns 1. If there is an info_map_parameters entity with the keyvalue usenormalspawnsfordm 1, then placing this entity in your map serves no purpose.

Keyvalues

Name (targetname) <string>
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.