Env credits: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		

Note:In 
 use env_outtro_stats. This entity is drastically different and has nothing except one input; 
Important:the 
 Team Fortress 2 will crash if an env_credits is attempted to be used without a registered 
		
	
Thunder4ik (talk | contribs) m (clean up, added underlinked tag)  | 
				 (position irrelevant so it's logical entity)  | 
				||
| (14 intermediate revisions by 7 users not shown) | |||
| Line 1: | Line 1: | ||
{{  | {{stub|section=1}}  | ||
{{  | {{LanguageBar}}  | ||
{{CD|CCredits|file1=EnvMessage.cpp}}  | |||
{{This is a|logical entity|engine=Source|name=env_credits|sprite=1}} 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>.  | |||
{{note|In {{l4ds}}  | {{note|In {{l4ds}} use {{ent|env_outtro_stats}}. This entity is drastically different and has ''nothing'' except one input; <code>Start</code>.}}  | ||
== Bugs/Limitations ==  | == Bugs/Limitations ==  | ||
| Line 14: | Line 14: | ||
==Inputs==  | ==Inputs==  | ||
{{  | {{I|RollCredits|Start the intro credits rolling.  | ||
{{  | :{{note|Replaced with {{ent|env_introcredits}} entity in {{bms|4}}.  | ||
{{  | }}|not={{bms}}}}  | ||
{{  | {{I|RollOutroCredits|Start the outro credits rolling.|not={{bms}}}}  | ||
{{I|ShowLogo|Show logo.}}  | |||
{{I|Start|since=L4D|Start rolling credits.}}  | |||
{{I|SetLogoLength|param=float|Sets the amount of time the logo is displayed. Default is 5.0.}}  | |||
{{I|RollEndCredits|Start the end credits rolling.|only={{bms}}}}  | |||
{{I|RollJokeOutroCredits|Start a joke version of the outro credits rolling quickly past.|only={{hdtf}}}}  | |||
==Outputs==  | ==Outputs==  | ||
{{  | {{O|OnCreditsDone|Fired when the credits having finished rolling.}}  | ||
==File format==  | ==File format==  | ||
{{Empty section|date=January 2024}}  | |||
==Files==  | ==Files==  | ||
| Line 30: | Line 36: | ||
[[Category:Plain text formats|credits.txt]]  | [[Category:Plain text formats|credits.txt]]  | ||
==See also==  | |||
{{  | * {{ent|env_message}}  | ||
* {{ent|env_hudhint}}  | |||
* {{ent|point_message}}  | |||
* {{ent|game_text}}  | |||
* {{ent|env_introcredits}}  | |||
Latest revision as of 03:21, 29 April 2025
| CCredits | 

env_credits  is a   logical entity  available in all 
 Source games. This entity is used to control the rolling credits. The text that will be displayed is determined inside the file scripts/credits.txt.
Start.
Bugs/Limitations
scripts/credits.txt file. Clarify: which games suffer from this other than 
 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. 
parentnameortarget).
Also displayed in Hammer's 2D views and Entity Report.See also: Generic Keyvalues, Inputs and Outputs available to all entities 
Inputs
- RollCredits   (not in 
) - Start the intro credits rolling.
 
Note:Replaced with env_introcredits entity in 
 Black Mesa.
- ShowLogo
 - Show logo.
 
- Start   (in all games since 
) - Start rolling credits.
 
- SetLogoLength <float>
 - Sets the amount of time the logo is displayed. Default is 5.0.
 
Outputs
- OnCreditsDone
 - Fired when the credits having finished rolling.
 
File format
Files
scripts/credits.txt