This article's documentation is for anything that uses the Source engine. Click here for more information.

Info player start: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Removed note about rotating the player spawn since that info is already included in the entity description.)
m (→‎Keyvalues: Maybe saying "tilt" is more informative. Good thing we call this a Warning and not a Bug since this could be (sort of) intentional. What else should setting a roll value other than 0 do? Nothing? Nah.)
 
(42 intermediate revisions by 15 users not shown)
Line 1: Line 1:
{{Entity also in GoldSrc}}
{{LanguageBar}}
[[File: info_player_start.png | right | 300px]]
{{TabsBar|main=Info player start}}
{{base point|info_player_start}}
[[File:info_player_start.png|300px|right|thumb|models/editor/playerstart.mdl]]
__TOC__
{{CD|CPointEntity|file1=subs.cpp}}
{{clr}}
{{This is a|point entity|name=info_player_start}} It indicates the position and facing direction at which the player will spawn. If there isn't at least one spawn entity, most mods will usually spawn the player at <code>(0, 0, 0)</code> ({{ent|worldspawn}}).
 
{{note|In multiplayer games, this entity is usually unused. See below for other player spawn entities.}}
==Entity Description==
{{Tip|The FGD helper model is approximately the same height as the player in-game. It can be used as a reference if you forget the actual size of the player.}}
It indicates the position and facing direction at which the player will spawn. If there isn't at least one spawn entity, most mods will usually spawn the player at 0, 0, 0.
 
{{note|While normally a problem, any number of <code>info_player_start</code> entities can be placed in a map when working in [[Hammer Cordon Usage|cordoned]] areas (see [[Hammer Cordon Usage#Localized starting points|Localized starting points]] for more information).}}


== Keyvalues ==
== Keyvalues ==
{{KV Angles}}
{{KV Angles|Orientation the player will face when spawned. {{Warning|Setting a Roll value other than 0 will tilt the initial camera angle, and can't be reset by the player without using cheats. {{todotest|Source SDK, {{hl2}}, {{portal2}}}}}}}}


== Flags ==
== Flags ==
* Master (Has priority if multiple <code>info_player_start</code> entities exist)
{{fl|1|Master|Has priority if multiple <code>info_player_start</code> entities exist}}


== See also ==
== See also ==
* {{HL2}} [[info_player_combine]], [[info_player_rebel]], [[info_player_deathmatch]]
* {{ent|info_player_deathmatch}}
* {{CSS}}{{csgo}} [[info_player_counterterrorist]], [[info_player_terrorist]]
* {{HL2dm}} {{ent|info_player_rebel}}, {{ent|info_player_combine}}
* {{DODS}} [[info_player_allies]], [[info_player_axis]]
* {{Bms}} {{ent|info_player_scientist}}, {{ent|info_player_marine}}, {{ent|info_observer_menu}}
* {{Tf2}} [[info_player_teamspawn]]
* {{CSS}}{{csgo}} {{ent|info_player_counterterrorist}}, {{ent|info_player_terrorist}}
* {{l4ds}} [[info_survivor_position]]
* {{DODS}} {{ent|info_player_allies}}, {{ent|info_player_axis}}
* {{Portal2}} [[info_coop_spawn]]
* {{Tf2}} {{ent|info_player_teamspawn}}
* [[game_player_equip]]
* {{l4ds}} {{ent|info_survivor_position}}
* {{Portal2}} {{ent|info_coop_spawn}}
* {{src}} {{ent|game_player_equip}}


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

Latest revision as of 08:47, 20 August 2025

English (en)한국어 (ko)中文 (zh)Translate (Translate)
edit
models/editor/playerstart.mdl
C++ Class hierarchy
CPointEntity
CBaseEntity
C++ subs.cpp

info_player_start is a point entity available in all Source Source games. It indicates the position and facing direction at which the player will spawn. If there isn't at least one spawn entity, most mods will usually spawn the player at (0, 0, 0) (worldspawn).

Note.pngNote:In multiplayer games, this entity is usually unused. See below for other player spawn entities.
Tip.pngTip:The FGD helper model is approximately the same height as the player in-game. It can be used as a reference if you forget the actual size of the player.

Keyvalues

Pitch Yaw Roll (Y Z X) (angles) <QAngle>
Orientation the player will face when spawned.
Warning.pngWarning:Setting a Roll value other than 0 will tilt the initial camera angle, and can't be reset by the player without using cheats.  (tested in: Source SDK, Half-Life 2, Portal 2)

Flags

Master : [1]
Has priority if multiple info_player_start entities exist

See also