Skip to content

Commit e419d22

Browse files
committed
Credits entity tweaks
1 parent 91f9689 commit e419d22

File tree

2 files changed

+20
-6
lines changed

2 files changed

+20
-6
lines changed

fgd/point/env/env_credits.fgd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
@PointClass base(BaseEntityPoint)
22
iconsprite("editor/ts2do/env_credits.vmt")
3+
appliesto(HL2, EP1, EP2, P1, Mesa, complete) // Technically exists in all games, but only works in these
34
= env_credits: "The entity that controls the rolling credits, loaded from 'scripts/credits.txt'."
45
[
56
CreditsFile[MBase](string) : "Custom Credits File" : : "Allows a custom credits file to be loaded instead of the default 'scripts/credits.txt'."

fgd/point/env/env_portal_credits.fgd

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,25 @@
66
[
77

88
// Inputs
9-
input RollCredits(void) : "Start the intro credits rolling."
10-
input RollOutroCredits(void) : "Start the outro credits rolling."
11-
input ShowLogo(void) : "Show the HL2 logo."
12-
input SetLogoLength(float) : "How long the logo shows."
13-
input RollPortalOutroCredits(void) : "Start the Portal greenscreen outro credits."
9+
input RollCredits[P1](void) : "Start the intro credits rolling."
10+
input RollOutroCredits[P1](void) : "Start the outro credits rolling."
11+
input ShowLogo[P1](void) : "Show the HL2 logo."
12+
input SetLogoLength[P1](float) : "Sets the amount of time the logo is displayed. Default is 5.0."
13+
input RollPortalOutroCredits(void) : "Start the Portal outro credits."
14+
15+
// P2 made these all do the same thing
16+
input RollCredits[+P2, +complete](void) : "Functionally identical to RollPortalOutroCredits."
17+
input RollOutroCredits[+P2, +complete](void) : "Functionally identical to RollPortalOutroCredits."
18+
input ShowLogo[+P2, +complete](void) : "Functionally identical to RollPortalOutroCredits."
19+
input SetLogoLength[+P2, +complete](float) : "No effect, but technically exists."
1420

1521
// Outputs
16-
output OnCreditsDone(void) : "Fired when the credits having finished rolling."
22+
output OnCreditsDone[P1](void) : "Fired when HL2-style outro credits having finished rolling. Not fired by Portal-style credits."
23+
output OnCreditsDone[+P2, +complete](void) : "Doesn't fire, but technically exists."
24+
25+
@resources
26+
[
27+
// Credits are in this script file.
28+
file "scripts/credits.txt"
29+
]
1730
]

0 commit comments

Comments
 (0)