This article's documentation is for the "GoldSrc" engine. Click here for more information.

Info player start (GoldSrc): Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Nesciuse moved page Info player start (GoldSrc)/en to Info player start (GoldSrc) without leaving a redirect: Move en subpage to basepage)
(-added class hierarchy, cleanup)
Line 1: Line 1:
{{LanguageBar|title = info_player_start}}
{{LanguageBar|title = info_player_start}}
{{Tabs|Info player start|goldsrc=1|source=1}}
{{Tabs|Info player start|goldsrc=1|source=1}}
[[File:info_player_start.png|300px|thumb]]
{{CD|CPointEntity|goldsrc=1}}
{{this is a|point entity|name=info_player_start|engine=GoldSrc}}
{{this is a|point entity|name=info_player_start|engine=GoldSrc}}
__NOTOC__
__NOTOC__
{{infotable
 
|info_player_start
|img=[[File:info_player_start.png|300px]]
|type=e0
|engine={{gldsrc}} {{src}} {{source2}}
|in=0
}}
==Entity description==
==Entity description==
An <code>info_player_start</code> is used to define where the player will spawn in a map in single player. Only one <code>info_player_start</code> can be used in a level. If more than one exists, the one placed first will be used. Unlike most point entities used for spawning, the <code>info_player_start</code> is not affected by gravity, meaning if the entity is placed mid-air in the editor it will be placed mid-air in the map, resulting in the player spawning and falling from it.
An <code>info_player_start</code> is used to define where the player will spawn in a map in single player. Only one <code>info_player_start</code> can be used in a level. If more than one exists, the one placed first will be used. Unlike most point entities used for spawning, the <code>info_player_start</code> is not affected by gravity, meaning if the entity is placed mid-air in the editor it will be placed mid-air in the map, resulting in the player spawning and falling from it.

Revision as of 13:36, 4 August 2024

English (en)Português do Brasil (pt-br)Translate (Translate)
Info player start.png
C++ Class hierarchy
CPointEntity
CBaseEntity
C++ effects.cpp

info_player_start is a point entity available in all GoldSrc GoldSrc games.


Entity description

An info_player_start is used to define where the player will spawn in a map in single player. Only one info_player_start can be used in a level. If more than one exists, the one placed first will be used. Unlike most point entities used for spawning, the info_player_start is not affected by gravity, meaning if the entity is placed mid-air in the editor it will be placed mid-air in the map, resulting in the player spawning and falling from it.

Key Values

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.

Flags

Not In Deathmatch : [2048]
Prevent this entity from attempting to spawn when deathmatch (multiplayer) is enabled.
Tip.pngTip:This is intercepted before the entity spawns (hardcoded in the engine), and as such prevents it from ever contributing to the edict limit. As such, it may be desirable to set this on entities that delete themselves in multiplayer anyway, such as monsters and info_null, to prevent them from contributing towards map spawn edict limit crashes on maps with lots of entities.