info_portal_score

From Source Entities
Jump to navigation Jump to search
Obsolete.png

This entity is obsolete. Using this is discouraged.

Code classes:

info_portal_score is a point entity present in P2.pngPortal 2. This entity would have been used in one or more cut gameplay concepts where two players would compete against each other for points. The entity no longer functions as it should and will crash the game.

Keyvalues[edit | edit source]

Game Time (GameTime) <float>
How long a game would last.
Display Countdown (DisplayCountdown) <boolean>
Displays a countdown of Game Time.
Game Description (GameDescription) <string>
Description of a game.
Rounds To Win (RoundsToWin) <integer>
How many rounds a player would need to win a game.

Inputs[edit | edit source]

StartGame
Starts a game. Crashes the game with a message about a missing UserMessage called MPVSGameStart.
ResetScore
Resets the scores of both players.
AddBlueScore <integer>
Adds the specified points to blue's score.
AddOrangeScore <integer>
Adds the specified points to orange's score.

Outputs[edit | edit source]

OnBlueWin
Fires when blue wins.
OnOrangeWin
Fires when orange wins.
OnTie
Fires when a tie occurs.
OnGameStart
Fires when the game starts.
OnGameEnd
Fires when the game ends.
OnRoundEnd
Fires when a round ends.
OnSuddenDeath
Fires when the game goes into sudden death.