Env credits: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
(updates)
Line 1: Line 1:
{{base point|env_credits}}
{{lang|Env credits}}
[[File:env_credits.png|left]]{{base point|env_credits}} This entity is used to control the rolling [[credits]]. The credits text that's displayed is determined inside the file <code>scripts/credits.txt</code> see that file for an example of how the script should be laid out.


==Entity description==
{{note|In {{l4ds}}, this entity is drastically different and has ''nothing'' except one input; <code>Start</code>.}}
[[File:env_credits.png|left|link=]]
This entity is used to control the rolling [[credits]]. The credits text that's displayed is determined inside credits.txt located in the scripts folder of the game/mod. See <code>source engine.gcf/hl2/scripts/credits.txt</code> for an example of how the script should be layed out.


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


== Keyvalues ==
==Keyvalues==
{{KV Targetname}}
{{KV BaseEntity|css=1}}


== Inputs ==
==Inputs==
{{IO|RollCredits|Start the intro credits rolling.}}
{{IO|RollCredits|Start the intro credits rolling.}}
{{IO|RollOutroCredits|Start the outro credits rolling.}}
{{IO|RollOutroCredits|Start the outro credits rolling.}}
{{IO|ShowLogo|Show the HL2 logo.}}
{{IO|ShowLogo|Show logo.}}
{{I Targetname}}
{{IO|Start|since=L4D|Start rolling credits.}}
{{I BaseEntity|prel4d=1}}


== Outputs ==
==Outputs==
{{IO|OnCreditsDone|Fired when the credits having finished rolling.}}
{{IO|OnCreditsDone|Fired when the credits having finished rolling.}}
{{O Targetname}}
{{O BaseEntity|l4d=1}}


[[Category:GUI Entities]]
[[Category:GUI Entities]]

Revision as of 10:43, 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.
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.