This article relates to the game "Half-Life 2: Deathmatch". Click here for more information.
This article's documentation is for anything that uses the Source engine. Click here for more information.

Info player deathmatch: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(more of the same)
(-added class hierarchy)
 
(47 intermediate revisions by 19 users not shown)
Line 1: Line 1:
{{wrongtitle|title=info_player_deathmatch}}
{{LanguageBar}}
{{HL2DM topicon}}
{{TabsBar|main=gs|base=info_player_deathmatch}}
{{Ent not in fgd|none|except={{hldms}}{{hl2dm}}{{bms}}{{p2ce}}}}
{{CD|CBaseDMStart|file1=1}}
{{This is a|point entity|name=info_player_deathmatch}}[[File:info_player_start.png|right|300px]]


This entity will take effect only in non-team deathmatch games played in Half-Life 2 Deathmatch. They represent spawn points for players in a non-team game.
== Entity description ==
Represents a spawn point of a player during a free-for-all deathmatch game.
{{warning|In {{hl2dm|4}} point does not disable if a physics prop is blocking it, which can cause a player to get stuck in physics props. Fixed in {{Bms|4}}. {{confirm| Isn't fixed in {{P2ce|4}} ?}}}}
{{bug|In {{Bms|4}} player can respawn at any moment during a multiplayer game if press <code>Choose team</code> button and use <code>Auto distribution</code> button. With this players get a huge advantage over other players during a multiplayer game, such as avoiding death or spawning at a required point. Can be fixed with plugins only.|hidetested=1}}
{{important|If there are no available spawns, players will spawn at the map center.}}
{{tip|It is usually recommended to place player spawn entities a few units above the ground so that players don't spawn inside the floor.}}
{{note|In {{hl2dm|4}}, if no {{ent|info_player_rebel}} or {{ent|info_player_combine}} entities are present, the respective teams will spawn from {{ent|info_player_deathmatch}} instead. The same is true for {{bms|4}} if no
{{ent|info_player_scientist}} or {{ent|info_player_marine}} entities are present.}}
 
== Keyvalues ==
{{KV Targetname}}
{{KV Angles}}
{{KV|List of items to spawn the player with.|intn=itemstogive|string|Comma-delimited list of items that player will receive if spawning at this point.
:{{important|Items must be separated by commas with no spaces. For example, to give a player three [[item_battery (BMS)|batteries]], a [[weapon_gluon (BMS)|gluon gun]], and a [[item_grenade_mp5 (BMS)|grenade for the MP5]], put {{code|item_battery,item_battery,item_battery,weapon_gluon,item_grenade_mp5}}.}}
:{{note|Players always get [[item_suit]].}}
:{{note|If nothing is specified here, then players will get [[item_weapon_crowbar (BMS)|item_weapon_crowbar]], [[item_weapon_glock (BMS)|item_weapon_glock]] with full ammo and 3 [[item_weapon_frag (BMS)|item_weapon_frag]].}}
:{{bug|Players with no weapons will T-pose, even though <code>_noweapon</code> animations exist.|hidetested=1}}
:{{bug|Players using [[weapon_headcrab (BMS)|weapon_headcrab]] will T-pose.|hidetested=1}}
:{{bug|Items can be picked up not only by player that appears at spawn point.{{clarify}} {{confirm|Can be fixed with plugins ?}}|hidetested=1}}
|only={{bms}}|hidetested=1}}
 
== Inputs ==
{{I|Enable|param=void|Enable this spawnpoint|only=BMS}}
{{note|Also fires when a player or any other object stops blocking a given point.}}
{{I|Disable|param=void|Disable this spawnpoint|only=BMS}}
{{note|Also fires when a player or any other object starts blocking a given point.}}
 
== See also ==
* {{ent|info_deathmatch_spawn}} - Equivalent entity in {{csgo}}
* {{ent|info_player_combine}} - spawn point for [[combine]] team in {{hl2dm}} multiplayer.
* {{ent|info_player_rebel}} - spawn point for [[npc_citizen|rebel]] team in {{hl2dm}} multiplayer.
* {{ent|info_player_start}} - general singleplayer spawn point.
* {{ent|info_player_scientist}} - spawn point for [[npc_human_scientist|scientist]] team in {{bms}} multiplayer.
* {{ent|info_player_marine}} - spawn point for [[HECU]] team in {{bms}} multiplayer.
* {{ent|info_observer_menu}} - spawn point for spectators in {{bms}} multiplayer.
* {{ent|game_player_equip}} - gives weapons to players.
 
[[Category:Player spawn entities]]

Latest revision as of 06:36, 14 April 2025

English (en)Translate (Translate)

Icon-NotInFGD.png
This entity is not in the FGD by default, except in Half-Life Deathmatch: SourceHalf-Life 2: DeathmatchBlack MesaPortal 2: Community Edition.
See below for instructions on making it available.
C++ Class hierarchy
CBaseDMStart
CPointEntity
CBaseEntity
C++ subs.cpp

info_player_deathmatch is a point entity available in all Source Source games.

Info player start.png

Entity description

Represents a spawn point of a player during a free-for-all deathmatch game.

Warning.pngWarning:In Half-Life 2: Deathmatch Half-Life 2: Deathmatch point does not disable if a physics prop is blocking it, which can cause a player to get stuck in physics props. Fixed in Black Mesa Black Mesa.
Confirm: Isn't fixed in Portal 2: Community Edition Portal 2: Community Edition ?
Icon-Bug.pngBug:In Black Mesa Black Mesa player can respawn at any moment during a multiplayer game if press Choose team button and use Auto distribution button. With this players get a huge advantage over other players during a multiplayer game, such as avoiding death or spawning at a required point. Can be fixed with plugins only.
Icon-Important.pngImportant:If there are no available spawns, players will spawn at the map center.
Tip.pngTip:It is usually recommended to place player spawn entities a few units above the ground so that players don't spawn inside the floor.
Note.pngNote:In Half-Life 2: Deathmatch Half-Life 2: Deathmatch, if no info_player_rebel or info_player_combine entities are present, the respective teams will spawn from info_player_deathmatch instead. The same is true for Black Mesa Black Mesa if no info_player_scientist or info_player_marine entities are present.

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.
List of items to spawn the player with. (itemstogive) <string> (only in Black Mesa)
Comma-delimited list of items that player will receive if spawning at this point.
Icon-Important.pngImportant:Items must be separated by commas with no spaces. For example, to give a player three batteries, a gluon gun, and a grenade for the MP5, put item_battery,item_battery,item_battery,weapon_gluon,item_grenade_mp5.
Note.pngNote:Players always get item_suit.
Note.pngNote:If nothing is specified here, then players will get item_weapon_crowbar, item_weapon_glock with full ammo and 3 item_weapon_frag.
Icon-Bug.pngBug:Players with no weapons will T-pose, even though _noweapon animations exist.
Icon-Bug.pngBug:Players using weapon_headcrab will T-pose.
Icon-Bug.pngBug:Items can be picked up not only by player that appears at spawn point.[Clarify]
Confirm:Can be fixed with plugins ?

Inputs

Enable <void> (only in Black Mesa)
Enable this spawnpoint
Note.pngNote:Also fires when a player or any other object stops blocking a given point.
Disable <void> (only in Black Mesa)
Disable this spawnpoint
Note.pngNote:Also fires when a player or any other object starts blocking a given point.

See also