Prop portal stats display: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Cleanup)
No edit summary
Line 1: Line 1:
{{portal point|prop_portal_stats_display}} This elevator prop can display the stats for a challenge map.
{{portal series point|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).
 
{{note|While implemented and mostly functional in Portal 2, this entity is no longer used for its challenge mode and is mostly obsolete.}}


== Keyvalues ==
== Keyvalues ==
{{KV Targetname}}
{{KV BaseEntity|base=1|l4d2=1}}
{{KV Angles}}
{{KV Parentname}}
{{KV Global}}


== Inputs ==
== Inputs ==
Line 11: Line 10:
{{IO|Disable|Turn off stats display}}
{{IO|Disable|Turn off stats display}}
{{IO|UpdateStats|Updates the stats to the player's current level stats}}
{{IO|UpdateStats|Updates the stats to the player's current level stats}}
{{IO|ResetPlayerStats|Resets the curret level stats of the player}}
{{IO|ResetPlayerStats|Resets the current level stats of the player}}
{{I Targetname}}
{{I BaseEntity|base=1|l4d2=1|portal2=1}}
{{I Parentname}}


== Outputs ==
== Outputs ==
Line 20: Line 18:
{{IO|OnMetSecondsObjective|Fired when enabled and player met the number of seconds.}}
{{IO|OnMetSecondsObjective|Fired when enabled and player met the number of seconds.}}
{{IO|OnFailedAllObjectives|Fired when enabled and player met no objectives.}}
{{IO|OnFailedAllObjectives|Fired when enabled and player met no objectives.}}
{{O Targetname}}
{{O BaseEntity}}

Revision as of 16:04, 23 August 2020

Template:Portal series point 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

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.