Info Player Deathmatch

info_player_deathmatch is a map function that defines a spawn point in a map. There can be several active at the same time, of which a player spawning in on server connect or respawn after dying the desired spawn point is picked at random.

Usually a targetname isn't required for this entity, however if the entity is set to be inactive, or be deleted later, a targetname should be set to allow it to be triggered or killtargeted.

The entity can also trigger a target entity if a player spawns in it, which requires the "target" attribute to be set along with the appropriate flag (see: Flags).

Attributes

 * Origin- "origin" "x y z": Sets the exact point to which to spawn players in. The height z should always be above the ground, about +32 units. If Rappel Spawn is enabled, the height z should be adjusted to the point where players should begin rappeling down.
 * Angle- "angles" "p y r": Sets the angle in degrees which to have the players face when spawned. Only the middle value should be changed, typically in 90 degree increments. The first and last value should be 0.
 * New Player Targetname- "netname" " ": If set, every player spawning here will get this string as their targetname.
 * Rappel speed- "frags" "v": If the spawnflag Rappel Spawn is set, this keyvalue defines the speed at which players rappel down. The value v is in units per second.

Flags
"spawnflags" "s"
 * Start off- s=2: The spawn will be inactive and players will be unable to spawn here, requiring the entity to be triggered to activate it. In this case a targetname has to be set for the entity, which wouldn't be necessary otherwise.
 * Rappel Spawn- s=4: Players will spawn in a rappelling down effect.
 * Filter player targetname- s=8: If set, only players having their targetname match the 'Filter player targetname'-value (see below), can spawn here.
 * Invert filter- s=16: If set along with 'Filter player targetname'-flag, only players having a different targetname than set by 'Filter player targetname'-value (see below), can spawn here.
 * Trigger on spawn- s=32: If set, the info_player_deathmatch will trigger its target whenever a player respawns at its position. This requires the "target" attribute to be used.