Env credits: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
m (clean up, added underlinked tag)
Line 1: Line 1:
{{Underlinked|date=January 2024}}
{{lang|Env credits}}
{{lang|Env credits}}
[[File:env_credits.png|left]]{{this is a|e0|engine=2|name=env_credits}} This entity is used to control the rolling [[credits]]. The text that will be displayed is determined inside the file <code>scripts/credits.txt</code>.
[[File:env_credits.png|left]]{{this is a|e0|engine=2|name=env_credits}} This entity is used to control the rolling [[credits]]. The text that will be displayed is determined inside the file <code>scripts/credits.txt</code>.
Line 22: Line 23:


==File format==
==File format==
{{stub|section=1}}


==Files==
==Files==
Line 28: Line 28:


[[Category:GUI Entities|env_credits]]
[[Category:GUI Entities|env_credits]]
[[Category:Plain text formats|credits.txt]]


[[Category:Plain text formats|credits.txt]]
 
{{stub|section=1}}

Revision as of 02:26, 6 January 2024

Underlinked - Logo.png
This article needs more Wikipedia icon links to other articles to help Wikipedia icon integrate it into the encyclopedia. Please help improve this article by adding links Wikipedia icon that are relevant to the context within the existing text.
January 2024
English (en)Русский (ru)中文 (zh)Translate (Translate)
Env credits.png

env_credits is an e0 available in all Template:2 games.Template:2 topicon

Warning.pngWarning:
  • The {{{engine}}} parameter is inconsistent with the name defined by the {{2}} template.
    If a parameter is consistent but you're still seeing this warning, it may be an issue with the template itself. Please discuss it on the template's talk page.

This entity is used to control the rolling credits. The text that will be displayed is determined inside the file scripts/credits.txt.

Note.pngNote:In Left 4 Dead seriesLeft 4 Dead series, this entity is drastically different and has nothing except one input; Start.
C++ In code, it is represented by theCCreditsclass, defined in theEnvMessage.cppfile.

Bugs/Limitations

Icon-Important.pngImportant:the Team Fortress 2 Team Fortress 2 will crash if an env_credits is attempted to be used without a registered scripts/credits.txt file.
Clarify: which games suffer from this other than Team Fortress 2 Team Fortress 2?

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

RollCredits
Start the intro credits rolling.
RollOutroCredits
Start the outro credits rolling.
ShowLogo
Show logo.
Start  (in all games since Left 4 Dead)
Start rolling credits.

Outputs

OnCreditsDone
Fired when the credits having finished rolling.

File format

Files

  1. scripts/credits.txt


Stub

This article or section is a stub. You can help by expanding it.