Precursor.fgd: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with "FGD for Precursor == FGD == {{textfile|fgd}} {{codeblock|src=pr.fgd|lang=fgd|<!--//============= Copyright © Andreas Wilcox, All rights reserved. ============== // // Pur...")
 
No edit summary
 
Line 2: Line 2:
== FGD ==
== FGD ==
{{textfile|fgd}}
{{textfile|fgd}}
{{codeblock|src=pr.fgd|lang=fgd|<!--//============= Copyright © Andreas Wilcox, All rights reserved. ==============
{{codeblock|src=pr.fgd|lang=fgd|<!--
--><nowiki>//============= Copyright © Andreas Wilcox, All rights reserved. ==============
//
//
// Purpose: Precursor game definition file (.fgd)  
// Purpose: Precursor game definition file (.fgd)  
Line 12: Line 13:
@PointClass base(Weapon) studio("models/weapons/w_smg1.mdl") = weapon_rifle : "Rifle" []
@PointClass base(Weapon) studio("models/weapons/w_smg1.mdl") = weapon_rifle : "Rifle" []
@PointClass base(Item) studio("models/items/boxmrounds.mdl") = item_box_rifle : "Box of ammo for the Precursor rifle" []
@PointClass base(Item) studio("models/items/boxmrounds.mdl") = item_box_rifle : "Box of ammo for the Precursor rifle" []
--><nowiki>
</nowiki>}}
</nowiki>}}
[[Category:Precursor]]
[[Category:Precursor]]
[[Category:Level Design]]
[[Category:Level Design]]
[[Category:FGD]]
[[Category:FGD]]

Latest revision as of 07:50, 19 August 2023

FGD for Precursor

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++ Notepad++ or Visual Studio Code 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).
Tip.pngTip: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.
pr.fgd
Forge Game Data
//============= Copyright © Andreas Wilcox, All rights reserved. ============== // // Purpose: Precursor game definition file (.fgd) // //============================================================================= @include "halflife2.fgd" @PointClass base(Weapon) studio("models/weapons/w_smg1.mdl") = weapon_rifle : "Rifle" [] @PointClass base(Item) studio("models/items/boxmrounds.mdl") = item_box_rifle : "Box of ammo for the Precursor rifle" []