func_minefield

From Valve Developer Community
Jump to navigation Jump to search

func_minefield is a brush entity available in Black Mesa Black Mesa. This entity is trigger volume that also creates mines. The mines can be spawned on world geometry, func_detail and displacement, they ignore brush entities and point entities. The mines can be spawned randomly or depending on the uniform displacement properties. Spawned mines are not attached to trigger volume, each mine is indepeding env_mine entity. The trigger volume can be used as trigger_multiple. Most inputs, outputs and properties are same as trigger_multiple.

Represented by class CFuncMineField.

Note.pngNote:Mines can be spawned incorrectly on displacement surface, showing their barrels.
Icon-Bug.pngBug:This entity can sometimes spawn multiple mines inside each other.

Keyvalues

Mine Count (minecount) <integer>
The amount of mines to spawn.
Uniform Random Spread X (ranx) <float>
Uniform displacement of mines along this axis. Works only if Uniform displacement flag is checked.
Uniform Random Spread Y (rany) <float>
Uniform displacement of mines along this axis. Works only if Uniform displacement flag is checked.


Flags

Uniform displacement : [4096]
Activates the uniform displacement properties.
Quick Placement : [8192]
Overrides uniform displacement properties in random way.

Inputs

MineDetonated <targetnameRedirectInput/string> !FGD
Fires when a mine explodes. This input does nothing itself. Used for debugging. If a mine have a name - this input will use the mine name as parameter.