Counter-Strike: Source (fixed).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.
SirYodaJedi (talk | contribs) mNo edit summary |
SirYodaJedi (talk | contribs) (fix vanilla hammer compatibility) |
||
(7 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{for|{{cs| | {{for|the FGD from original {{cs|1}}|[[Counter-Strike.fgd]]}} | ||
[[FGD]] for {{css|4}}, containing fixed code for [[func_buyzone]] and [[func_bomb_target]]. ([[Counter Strike Source.fgd|click here to see original]]) | [[FGD]] for {{css|4}}, containing fixed code for [[func_buyzone]] and [[func_bomb_target]], and adding the missing {{code|ammo}} KV to weapons. ([[Counter-Strike: Source.fgd|click here to see original]]) | ||
== FGD == | == FGD == | ||
{{textfile|FGD}} | {{textfile|FGD}} | ||
Line 40: | Line 40: | ||
1 : "Start constrained" : 0 | 1 : "Start constrained" : 0 | ||
] | ] | ||
ammo(integer) : "Ammo" : : "Amount of reserve ammo to be added (default 0)" | |||
output OnPlayerUse(void) : "Fires when the player +uses this weapon" | output OnPlayerUse(void) : "Fires when the player +uses this weapon" | ||
Line 197: | Line 199: | ||
[ | [ | ||
input TouchTest(void) : "Tests if the trigger is being touched and fires an output based on whether the value is true or false." | input TouchTest(void) : "Tests if the trigger is being touched and fires an output based on whether the value is true or false." | ||
Line 221: | Line 221: | ||
output BombDefused(void): "Fires when a C4 is defused or if the BombDefused input is received; Bug: Is not fired by normal gameplay, only with the BombDefused input." | output BombDefused(void): "Fires when a C4 is defused or if the BombDefused input is received; Bug: Is not fired by normal gameplay, only with the BombDefused input." | ||
heistbomb( | heistbomb(choices) : "Heist Mode bomb target" : 0 : "This is a Bomb Target designed for the Heist game mode." = | ||
[ | |||
0 : "No" | |||
1 : "Yes" | |||
] | |||
bomb_mount_target(target_destination) : "Bomb Mount Target" | bomb_mount_target(target_destination) : "Bomb Mount Target" | ||
Line 308: | Line 312: | ||
] | ] | ||
</nowiki> }} | </nowiki> }} | ||
[[Category:Counter-Strike: Source]] | [[Category:Counter-Strike: Source]] | ||
[[Category:Source 1 FGDs]] |
Latest revision as of 08:32, 3 April 2025
For the FGD from original Counter-Strike, see Counter-Strike.fgd.
FGD for Counter-Strike: Source, containing fixed code for func_buyzone and func_bomb_target, and adding the missing ammo KV to weapons. (click here to see original)
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).
