Portal.fgd: Difference between revisions
Jump to navigation
Jump to search
Tip:Select the beginning of the line (usually the "//" comment) by clicking it, scroll down then hold ⇧ Shift, and click at the end of the line to select all.
Deprecated (talk | contribs) m (Added to Portal category) |
SirYodaJedi (talk | contribs) No edit summary |
||
(8 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
This is the [[FGD]] from {{portal|4}}. This FGD file can be located here: {{path|Portal\bin\portal|fgd|icon=file}} | |||
///====== Copyright © 1996-2005, Valve Corporation, All rights reserved. ======= | ==FGD== | ||
{{TextFile|FGD}} | |||
{{codeblock|src=portal.fgd|lang=fgd|<nowiki>///====== Copyright © 1996-2005, Valve Corporation, All rights reserved. ======= | |||
// | // | ||
// Purpose: Portal game definition file (.fgd) | // Purpose: Portal game definition file (.fgd) | ||
Line 7: | Line 10: | ||
///============================================================================= | ///============================================================================= | ||
@include "halflife2.fgd" | @include "</nowiki>[[Half_Life_2.fgd|halflife2.fgd]]<nowiki>" | ||
///============================================================================= | ///============================================================================= | ||
Line 152: | Line 155: | ||
] | ] | ||
] | ] | ||
@SolidClass base(Targetname, Parentname) = func_portal_detector : "A region that fires an output if a portal is placed in it" | @SolidClass base(Targetname, Parentname) = func_portal_detector : "A region that fires an output if a portal is placed in it" | ||
Line 172: | Line 174: | ||
LinkageGroupID(integer) : "Portal pair ID that it detects" : 0 | LinkageGroupID(integer) : "Portal pair ID that it detects" : 0 | ||
] | ] | ||
@SolidClass base(Origin, Angles) = func_liquidportal : "A space that fills with portal liquid and teleports entities when done filling" | @SolidClass base(Origin, Angles) = func_liquidportal : "A space that fills with portal liquid and teleports entities when done filling" | ||
Line 193: | Line 194: | ||
// | // | ||
///============================================================================= | ///============================================================================= | ||
@PointClass base(Targetname, Angles) studio("models/portals/portal1.mdl") = prop_portal : "A portal" | @PointClass base(Targetname, Angles) studio("models/portals/portal1.mdl") = prop_portal : "A portal" | ||
Line 330: | Line 330: | ||
input Disable(void) : "Make slideshow invisible." | input Disable(void) : "Make slideshow invisible." | ||
] | ] | ||
///============================================================================= | ///============================================================================= | ||
Line 356: | Line 355: | ||
input Stop(float) : "Stops the effect at any point." | input Stop(float) : "Stops the effect at any point." | ||
] | ] | ||
///============================================================================= | ///============================================================================= | ||
Line 376: | Line 374: | ||
output OnCreditsDone(void) : "Fired when the credits having finished rolling." | output OnCreditsDone(void) : "Fired when the credits having finished rolling." | ||
] | ] | ||
///============================================================================= | ///============================================================================= | ||
Line 391: | Line 387: | ||
" be used." | " be used." | ||
] | ] | ||
</ | </nowiki>}} | ||
[[Category:Portal]] | [[Category:Portal]] | ||
[[Category:Source 1 FGDs]] | |||
[[Category:Valve FGDs]] |
Latest revision as of 18:45, 20 March 2025
This is the FGD from Portal. This FGD file can be located here:
Portal\bin\portal.fgd
FGD
- This is a FGD (Forge Game Data) file used to define all of the entities of a game for a map editor (such as Hammer).
To add a FGD file to the map editor, copy the following text into a text editor such as Windows Notepad,Notepad++ or
Visual Studio Code, and save it with "save as type" being "all files" and .fgd appended to the file name. Then open your map editor and add the FGD to your game configuration (Example for HL:S).
