Prop portal stats display: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
 
No edit summary
 
(15 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{wrongtitle|title=prop_portal_stats_display}}
{{LanguageBar}}
==Entity Description==
{{this is a|point entity|series=Portal|name=prop_portal_stats_display}} It is an elevator prop which displays stats for challenge maps when enabled. It will not function unless <code>sv_bonus_challenge</code> is set (which happens automatically in challenge mode).
This elevator prop can display the stats for a challenge map.
 
==Keyvalues==
{{note|While implemented and mostly functional in Portal 2, this entity is no longer used for its challenge mode and is mostly obsolete.}}
* {{kv targetname}}
 
* {{kv parentname}}
== Keyvalues ==
* {{kv globalname}}
{{KV Targetname}}
* {{kv angles}}
 
* {{kv enabledisable}}
== Inputs ==
==Inputs==
{{I|Enable|Turn on and display the current stats}}
* {{i targetname}}
{{I|Disable|Turn off stats display}}
* {{i parentname}}
{{I|UpdateStats|Updates the stats to the player's current level stats}}
* {{i enabledisable}}
{{I|ResetPlayerStats|Resets the current level stats of the player}}
*'''ResetPlayerStats'''
 
*'''UpdateStats'''
== Outputs ==
==Outputs==
{{O|OnMetPortalObjective|Fired when enabled and player met the number of portal placements.}}
* {{o targetname}}
{{O|OnMetStepsObjective|Fired when enabled and player met the number of foot steps.}}
[[Category:Portal Entities]]
{{O|OnMetSecondsObjective|Fired when enabled and player met the number of seconds.}}
{{O|OnFailedAllObjectives|Fired when enabled and player met no objectives.}}

Latest revision as of 14:11, 25 September 2024

English (en)Translate (Translate)

prop_portal_stats_display is a point entity available in Portal series Portal series. It is an elevator prop which displays stats for challenge maps when enabled. It will not function unless sv_bonus_challenge is set (which happens automatically in challenge mode).

Note.pngNote:While implemented and mostly functional in Portal 2, this entity is no longer used for its challenge mode and is mostly obsolete.

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

Inputs

Enable
Turn on and display the current stats
Disable
Turn off stats display
UpdateStats
Updates the stats to the player's current level stats
ResetPlayerStats
Resets the current level stats of the player

Outputs

OnMetPortalObjective
Fired when enabled and player met the number of portal placements.
OnMetStepsObjective
Fired when enabled and player met the number of foot steps.
OnMetSecondsObjective
Fired when enabled and player met the number of seconds.
OnFailedAllObjectives
Fired when enabled and player met no objectives.