Env mine: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Setting bug notice hidetested=1 param on page where the bug might not need tested in param specified)
No edit summary
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{CDA|CEnv_Mine|CBaseAnimating|CBaseEntity|}}
{{ent not in fgd|none}}
{{ent not in fgd|none}}
{{back |Black Mesa Level Creation}}
[[File:mineimage.png|250px|right]]
[[File:mineimage.png|250px|right]]
{{this is a|point entity|name=env_mine|game=Black Mesa}} This is {{WP|Anti-Personnel Mine}} that was used by [[HECU]] to mine some areas where many [[npc_headcrab|headcrabs]] hide under sand. Attempt to touch or damage this entity will cause detonation. Not in original [[FGD]] due to presence of {{ent|func_minefield}}, you still can add it by your hand (or just use [https://github.com/MyGamepedia/Enhanced-Black-Mesa-FGD/ Enhanced Black Mesa FGD]).
{{this is a|model entity|name=env_mine|game=Black Mesa}} This is {{WP|Anti-Personnel Mine}} that was used by [[HECU]] to mine some areas where many [[npc_headcrab|headcrabs]] hide under sand. Attempt to touch or damage this entity will cause detonation. Not in original [[FGD]] due to presence of {{ent|func_minefield}}, you still can add it by your hand (or just use [https://github.com/MyGamepedia/Enhanced-Black-Mesa-FGD/ Enhanced Black Mesa FGD]).


Represented by class <code>CEnv_Mine</code>.
{{warning|You may need to use other entity as [[lighting origin]], because {{ent|env_mine}} usually placed underground.}}
{{warning|You may need to use other entity as [[lighting origin]], because {{ent|env_mine}} usually placed underground.}}
{{bug|hidetested=1|Never solid.}}
{{bug|hidetested=1|Never solid, which means bullets will crate decals through it, will not crate sparks with metal sound.}}
{{bug|hidetested=1|Doesn't work with most '''item_''' and '''weapon_''' entities.}}
{{bug|hidetested=1|Can't be exploded with most '''item_''' and '''weapon_''' entities.}}
{{bug|hidetested=1|Doesn't explode if another mine is detonated nearby.}}
{{bug|hidetested=1|Doesn't explode if another mine is detonated nearby.}}
==Keyvalues==
{{KV Targetname}}
{{note|Other keyvalues are same as [[CBaseAnimating]].}}


== Inputs ==
== Inputs ==
{{I|Detonate|param=void|Detonates the mine.}}
{{I|Detonate|param=void|Detonates the mine.}}
{{note|Other inputs and outputs are same as [[CBaseAnimating]].}}


==Dedicated [[ConVars]]==
==Dedicated [[ConVars]]==
{{varcom|start}}
{{varcom|start}}
{{varcom|sk_mine_damage|50|arbitrary number|Explosion damage.}}
{{varcom|sk_mine_damage|50|[[Float]]|Explosion damage.}}
{{varcom|sk_mine_damage_radius|128|arbitrary number|Explosion damage radius.}}
{{varcom|sk_mine_damage_radius|128|Float|Explosion damage radius.}}
{{varcom|sk_mine_bounds_xy|24|arbitrary number|Sets bounds in which mine will explode along X and Y axis. Similar to [[bounding box]].}}
{{varcom|sk_mine_bounds_xy|24|Float|Sets bounds in which mine will explode along X and Y axis. Similar to [[bounding box]].}}
{{varcom|sk_mine_bounds_z|64|arbitrary number|Sets bounds in which mine will explode along Z axis. Similar to [[bounding box]].}}
{{varcom|sk_mine_bounds_z|64|Float|Sets bounds in which mine will explode along Z axis. Similar to [[bounding box]].}}
{{varcom|end}}
{{varcom|end}}

Latest revision as of 23:58, 26 May 2025

C++ Class hierarchy
CEnv_Mine
CBaseAnimating
CBaseEntity
Icon-NotInFGD.png
This entity is not in the FGD by default.
See below for instructions on making it available.
Mineimage.png

env_mine is a model 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, which means bullets will crate decals through it, will not crate sparks with metal sound.
Icon-Bug.pngBug:Can't be exploded with most item_ and weapon_ entities.
Icon-Bug.pngBug:Doesn't explode if another mine is detonated nearby.

Inputs

Detonate <void>
Detonates the mine.

Dedicated ConVars

Cvar/Command Parameters or default value Descriptor Effect
sk_mine_damage 50 Float Explosion damage.
sk_mine_damage_radius 128 Float Explosion damage radius.
sk_mine_bounds_xy 24 Float Sets bounds in which mine will explode along X and Y axis. Similar to bounding box.
sk_mine_bounds_z 64 Float Sets bounds in which mine will explode along Z axis. Similar to bounding box.