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.
(Added cstrike.fgd page) |
SirYodaJedi (talk | contribs) (fix vanilla hammer compatibility) |
||
(11 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{for|the FGD from original {{cs|1}}|[[Counter-Strike.fgd]]}} | |||
[[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 == | ||
{{textfile|FGD}} | |||
< | {{codeblock|src=cstrike.fgd|lang=fgd|<!-- | ||
//====== Copyright © 1996-2005, Valve Corporation, All rights reserved. ======= | --><nowiki>//====== Copyright © 1996-2005, Valve Corporation, All rights reserved. ======= | ||
// | // | ||
// Purpose: Counter-Strike: Source game definition file (.fgd) | // Purpose: Counter-Strike: Source game definition file (.fgd) | ||
Line 10: | Line 10: | ||
//============================================================================= | //============================================================================= | ||
@include "base.fgd" | @include </nowiki>"[[Base.fgd/Counter-Strike:_Source|base.fgd]]"<nowiki> | ||
//------------------------------------------------------------------------- | //------------------------------------------------------------------------- | ||
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 191: | Line 193: | ||
] | ] | ||
@SolidClass base( | @SolidClass base(Trigger, TeamNum) = func_buyzone: // "Targetname" -> "Trigger" | ||
"Buy Zone. Players can buy equipment while standing in this zone, if the zone matches their current team.\n\n" + | "Buy Zone. Players can buy equipment while standing in this zone, if the zone matches their current team.\n\n" + | ||
"A single Buy Zone entity must be either terrorist or counter-terrorist, it cannot be both. Should have " + | "A single Buy Zone entity must be either terrorist or counter-terrorist, it cannot be both. Should have " + | ||
"the toolstrigger material applied to all sides" | "the toolstrigger material applied to all sides" | ||
[ | [ | ||
input TouchTest(void) : "Tests if the trigger is being touched and fires an output based on whether the value is true or false." | |||
output OnTouching(void) : "Fired when the TestTouch input is true (something is touching the trigger.)" | |||
output OnNotTouching(void) : "Fired when the TestTouch input is not true (nothing is touching the trigger.)" | |||
] | ] | ||
Line 214: | 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 300: | Line 311: | ||
[ | [ | ||
] | ] | ||
</ | </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).
