Env portal credits: Difference between revisions
Jump to navigation
Jump to search
m (Updated old entity format to {{this is a}}. This action was perfomed by a bot.) |
Ninjaofsauce (talk | contribs) (Added see also) |
||
| (7 intermediate revisions by 6 users not shown) | |||
| Line 1: | Line 1: | ||
{{this is a| | {{LanguageBar}} | ||
{{CD|CPortalCredits|file1=env_portal_credits.cpp}} | |||
{{this is a|logical entity|name=env_portal_credits|series=Portal}} This entity controls the rolling credits for the {{portalseries|4}}. All of the credits data, including the names and song lyrics, is read from the file {{code|preset=3|scripts/credits.txt}}. | |||
{{ | {{bug|If a save is reloaded during the {{portal|2}} credits, they will turn into regular {{hl2|2|nt=0}} style credits. {{portal2|2}} fixes this, but the credits will still restart and desync with the song.|hidetested=1}} | ||
| | |||
| | |||
| | |||
| | |||
}} | |||
== Keyvalues == | == Keyvalues == | ||
| Line 16: | Line 9: | ||
== Inputs == | == Inputs == | ||
{{ | {{I|RollCredits|Start the intro credits rolling.}} | ||
{{ | {{I|RollOutroCredits|Start the outro credits rolling.}} | ||
{{ | {{I|ShowLogo|Show the {{hl2|2|nt=0}} logo.}} | ||
{{ | {{I|RollPortalOutroCredits|Start the Portal greenscreen outro credits.}} | ||
{{I | {{I|SetLogoLength|Meant to be used with {{code|preset=2|ShowLogo}}, it sets the duration for the logo to stay on the screen. It will also show the {{hl2|2|nt=0}} logo on top of the {{ep1|2|nt=1}} logo.|nofgd=1}} | ||
== Outputs == | == Outputs == | ||
{{ | {{O|OnCreditsDone|Fired when the credits having finished rolling.}} | ||
== See Also == | |||
* [[Ending a Portal map]] | |||
* [[Level Transitions]] | |||
Latest revision as of 18:34, 30 November 2025
| CPortalCredits |
env_portal_credits is a logical entity available in
Portal series. This entity controls the rolling credits for the
Portal series. All of the credits data, including the names and song lyrics, is read from the file scripts/credits.txt.
Keyvalues
- Name (targetname) <string>
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentnameortarget).
Also displayed in Hammer's 2D views and Entity Report. - See also: Generic Keyvalues, Inputs and Outputs available to all entities
Inputs
- RollCredits
- Start the intro credits rolling.
- RollOutroCredits
- Start the outro credits rolling.
- ShowLogo
- Show the
HL2 logo.
- RollPortalOutroCredits
- Start the Portal greenscreen outro credits.
- SetLogoLength !FGD
- Meant to be used with
ShowLogo, it sets the duration for the logo to stay on the screen. It will also show the
HL2 logo on top of the
Episode One logo.
Outputs
- OnCreditsDone
- Fired when the credits having finished rolling.