Jump to content

Useful FGD Modifications

From Empires Wiki
Revision as of 06:03, 21 March 2007 by Reginald2710 (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Home > Useful FGD Modifications


What is the FGD?

The FGD file contains definitions of all the entities used by the Hammer editor. It can be found under sourcemods/Empires/mapsrc/fgd/empires.fgd. The entities listed below behave exactly the same as they would in any other source mod, and as such their usage will not be covered in this guide. All code should be appended to the end of the file, unless otherwise stated.

Tip Tip: Before making any modifications it is advisable to create a backup of this file.
Note
All changes will be lost if a new version is installed.


Ladders (func_ladder)

@SolidClass = func_ladder : 
	"Ladder. Players will be able to freely along this brush, as if it was a ladder. If you are using a model prop " +
	"for the visual representation of the ladder in the map, apply the toolsinvisibleladder material to the " +
	"func_ladder brush."
[
]

Respawning Physics Props (prop_physics_respawnable)

@PointClass base(prop_physics) studioprop() sphere(fademindist) sphere(fademaxdist) = prop_physics_respawnable :
"This class is the same as prop_physics, except it respawns after it breaks"
[
RespawnTime(float) : "Respawn Time" : 60 : "Ammount in seconds this prop will respawn after it breaks."
]

Team-Based Filters (filter_activator_team)

@FilterClass base(BaseFilter) size(-8 -8 -8, 8 8 8) = filter_activator_team :
	"A filter that filters by the team of the activator."
[
	filterteam(choices) : "Filter Team Number" : 2 : "The team number to filter by.  If the filter mode is Allow, only entities whose "+
		"team number matches the given team will pass the filter. If the filter mode is Disallow, "+
		"all entities EXCEPT those whose team number matches the given team will pass the filter." =
	[
		2 : "Northern Faction"
		3 : "Brenodi Empire"
	]
]