Env credits: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(updates)
(Crash bug added, needs to be verified if its not TF2 only)
Line 3: Line 3:


{{note|In {{l4ds}}, this entity is drastically different and has ''nothing'' except one input; <code>Start</code>.}}
{{note|In {{l4ds}}, this entity is drastically different and has ''nothing'' except one input; <code>Start</code>.}}
{{bug|The game will crash if an env_credits is attempted to be used without a registered <code>scripts/credits.txt</code> file.}}
:{{todo|Which games suffer from this other than {{tf2}}?}}


{{code class|CCredits|EnvMessage.cpp}}
{{code class|CCredits|EnvMessage.cpp}}

Revision as of 12:14, 23 September 2018

English (en)Русский (ru)中文 (zh)Translate (Translate)
Env credits.png

Template:Base point This entity is used to control the rolling credits. The credits text that's displayed is determined inside the file scripts/credits.txt see that file for an example of how the script should be laid out.

Note.pngNote:In Left 4 Dead seriesLeft 4 Dead series, this entity is drastically different and has nothing except one input; Start.
Icon-Bug.pngBug:The game will crash if an env_credits is attempted to be used without a registered scripts/credits.txt file.  [todo tested in ?]
Todo: Which games suffer from this other than Team Fortress 2?
C++ In code, it is represented by theCCreditsclass, defined in theEnvMessage.cppfile.

Keyvalues

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.