env_mine

From Valve Developer Community
Jump to: navigation, search
Info.png
This entity is not in the FGD by default.
See below for instructions on making it available.
Black Mesa Level Creation
Mineimage.png
Class hierarchy
???
???
CBaseAnimating
CBaseEntity

env_mine is a point entity available in Black Mesa Black Mesa. This is Wikipedia icon Anti-Personnel Mine that was used by HECU to mine some areas where many headcrabs hide under sand. Attempt to touch or damage this entity will cause detonation. Not in original FGD due to presence of func_minefield, you still can add it by your hand (or just use Enhanced Black Mesa FGD).

Warning.pngWarning:You may need to use other entity as lighting origin, because env_mine usually placed underground.
Icon-Bug.pngBug:Never solid.
Icon-Bug.pngBug:Doesn't work with most item_ and weapon_ entities.
Icon-Bug.pngBug:Doesn't explode if another mine is detonated nearby.

Keyvalues

Name (targetname) <string>
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Note.pngNote:Other keyvalues are same as CBaseAnimating.

Inputs

Detonate <void>
Detonates the mine.
Note.pngNote:Other inputs and outputs are same as CBaseAnimating.

Dedicated ConVars

Cvar/CommandParameters or default valueDescriptorEffect
sk_mine_damage50arbitrary numberExplosion damage.
sk_mine_damage_radius128arbitrary numberExplosion damage radius.
sk_mine_bounds_xy24arbitrary numberSets bounds in which mine will explode along X and Y axis. Similar to bounding box.
sk_mine_bounds_z64arbitrary numberSets bounds in which mine will explode along Z axis. Similar to bounding box.