Counter-Strike.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.
No edit summary |
(Updated design.) |
||
(14 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{Subpage| {{cs|1}} }} | ||
Custom version of {{Code|[[halflife-cs.fgd]]}} with some improvements. Supported by both {{cs|4|nt=0}} and {{cscz|4}} (does not have any Condition Zero-exclusive entities). | |||
] | |||
== FGD == | |||
{{textFile|fgd}} | |||
{{codeblock|src=halflife-cs.fgd|lang=fgd|<nowiki> | |||
< | |||
// ------------------------------------------------------------------------------ | // ------------------------------------------------------------------------------ | ||
// Counter-Strike game definition file (.fgd) | // Counter-Strike game definition file (.fgd) | ||
Line 3,295: | Line 1,701: | ||
] | ] | ||
@PointClass sprite() base(Targetname, Angles, RenderFields) size(-4 -4 -4, 4 4 4) = env_sprite : " | // EDIT 28 May 2023 - add `studio()` so that MDLs can show up in JACK | ||
// env_sprite CAN be used for MDL or BSP models, and doesn't disappear at the start of a new round | |||
@PointClass sprite() base(Targetname, Angles, RenderFields) size(-4 -4 -4, 4 4 4) studio() = env_sprite : "Sprite (or Model)" | |||
[ | [ | ||
framerate(string) : "Framerate" : "10.0" | framerate(string) : "Framerate" : "10.0" | ||
model(sprite) : "Sprite Name" : "sprites/glow01.spr" | model(sprite) : "Sprite/Model Name" : "sprites/glow01.spr" | ||
scale(integer) : "Scale" : 1 | scale(integer) : "Scale" : 1 | ||
spawnflags(flags) = | spawnflags(flags) = | ||
Line 4,969: | Line 3,377: | ||
//* _minlight(integer) : "_minlight" : "0" | //* _minlight(integer) : "_minlight" : "0" | ||
] | ] | ||
</nowiki>}} | |||
</ | |||
[[Category:Custom FGDs]] | [[Category:Custom FGDs]] | ||
[[Category: | [[Category:GoldSrc FGDs]] | ||
[[Category:Counter-Strike]] |
Latest revision as of 05:24, 11 September 2024
Custom version of halflife-cs.fgd with some improvements. Supported by both Counter-Strike 1.6 and
Counter-Strike: Condition Zero (does not have any Condition Zero-exclusive entities).
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).
