Info coop spawn: Difference between revisions
Jump to navigation
Jump to search
m (→Keyvalues) |
No edit summary |
||
(11 intermediate revisions by 10 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{this is a|point entity|name=info_coop_spawn|game=Portal 2}} It defines the player spawn points for coop mode and can be enabled and disabled to control where players spawn for checkpoints or the like. | ||
If multiple spawn points for one player are active at the same time, the player can randomly spawn at any one of them, though this has little use for typical cooperative maps. | |||
==Keyvalues== | ==Keyvalues== | ||
{{KV|Initial State|choices}} | {{KV|Initial State|intn=Enabled|choices|Make a spawn start enabled or disabled. Valve uses this for all maps with multiple spawning areas so players don't have to go through puzzles they've already solved after they die.}} | ||
:* 0 : Disabled | :* 0 : Disabled | ||
:* 1 : Enabled | :* 1 : Enabled | ||
{{KV|Team|choices}} | {{KV|Team|intn=StartingTeam|choices|Which bot should be allowed to spawn here.}} | ||
:* 0 : Any | :* 0 : Any | ||
:* 2 : Red ''(P-Body)'' | :* 2 : Red ''(P-Body)'' | ||
:* 3 : Blue ''(Atlas)'' | :* 3 : Blue ''(Atlas)'' | ||
{{KV| | {{KV|Force gun on spawn|intn=ForceGunOnSpawn|boolean|Force the player to start with the portal gun.}} | ||
:{{note|Appears non-functional, players spawn with a portal gun by default. See [[weapon_portalgun#Co-op|here]] for how to disable it.}} | |||
{{KV Targetname}} | {{KV Targetname}} | ||
{{KV Angles}} | {{KV Angles}} | ||
==Inputs== | ==Inputs== | ||
{{ | {{I|Enable|Enable the spawn point to be used.}} | ||
{{ | {{I|SetAsActiveSpawn|Enable the spawn point to be used, disabling all other spawn points that do not share the same name.}} | ||
{{ | {{I|Disable|Disable the spawn point from being used.}} | ||
{{ | {{I|SetTeam|Set the team this spawn point is for. 0 and 1 are any team. 2 is red, 3 is blue|param=integer}} | ||
{{I Targetname}} | {{I Targetname}} | ||
==Outputs== | ==Outputs== | ||
{{O Targetname}} | {{O Targetname}} | ||
[[Category:player spawn entities]] |
Latest revision as of 21:13, 7 August 2025
info_coop_spawn
is a point entity available in Portal 2. It defines the player spawn points for coop mode and can be enabled and disabled to control where players spawn for checkpoints or the like.
If multiple spawn points for one player are active at the same time, the player can randomly spawn at any one of them, though this has little use for typical cooperative maps.
Keyvalues
- Initial State (Enabled) <choices>
- Make a spawn start enabled or disabled. Valve uses this for all maps with multiple spawning areas so players don't have to go through puzzles they've already solved after they die.
- 0 : Disabled
- 1 : Enabled
- Team (StartingTeam) <choices>
- Which bot should be allowed to spawn here.
- 0 : Any
- 2 : Red (P-Body)
- 3 : Blue (Atlas)
- Force gun on spawn (ForceGunOnSpawn) <boolean>
- Force the player to start with the portal gun.
Note:Appears non-functional, players spawn with a portal gun by default. See here for how to disable it.
- Name (targetname) <string>[ Edit ]
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentname
ortarget
).
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.
Inputs
- Enable
- Enable the spawn point to be used.
- SetAsActiveSpawn
- Enable the spawn point to be used, disabling all other spawn points that do not share the same name.
- Disable
- Disable the spawn point from being used.
- SetTeam <integer >
- Set the team this spawn point is for. 0 and 1 are any team. 2 is red, 3 is blue