Func minefield: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (→‎Inputs: Substituted IO templates)
No edit summary
Line 1: Line 1:
{{this is a|brush entity|name=func_minefield|game=Black Mesa}} This entity is trigger volume that also creates mines. The mines can be spawned on world geometry, {{ent|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 {{ent|env_mine}} entity. The trigger volume can be used as {{ent|trigger_multiple}}.
{{this is a|brush entity|name=func_minefield|game=Black Mesa}} This entity is trigger volume that also creates mines. The mines can be spawned on world geometry, {{ent|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 {{ent|env_mine}} entity. The trigger volume can be used as {{ent|trigger_multiple}}. Most inputs, outputs and properties are same as {{ent|trigger_multiple}}.


Represented by class <code>CFuncMineField</code>.
Represented by class <code>CFuncMineField</code>.
Line 9: Line 9:
{{KV|Uniform Random Spread X|intn=ranx|float|Uniform displacement of mines along this axis. Works only if <code>Uniform displacement</code> flag is checked.}}
{{KV|Uniform Random Spread X|intn=ranx|float|Uniform displacement of mines along this axis. Works only if <code>Uniform displacement</code> flag is checked.}}
{{KV|Uniform Random Spread Y|intn=rany|float|Uniform displacement of mines along this axis. Works only if <code>Uniform displacement</code> flag is checked.}}
{{KV|Uniform Random Spread Y|intn=rany|float|Uniform displacement of mines along this axis. Works only if <code>Uniform displacement</code> flag is checked.}}
{{KV BaseTrigger}}
 
{{KV BaseEntityPoint}}


==Flags==
==Flags==
{{Fl|4096|Uniform displacement|Activates the uniform displacement properties.}}
{{Fl|4096|Uniform displacement|Activates the uniform displacement properties.}}
{{Fl|8192|Quick Placement|Overrides uniform displacement properties in random way.}}
{{Fl|8192|Quick Placement|Overrides uniform displacement properties in random way.}}
{{Fl|1|Clients (Players/Bots)|}}
{{Fl|2|NPCs|}}
{{Fl|4|Passes entities with classname [[func_pushable]]}}
{{Fl|8|Physics Objects}}
{{Fl|16|Only player ally NPCs}}
{{Fl|32|Only clients in vehicles}}
{{Fl|64|Everything (not including physics debris)}}
{{Fl|512|Only clients *not* in vehicles}}
{{Fl|1024|Physics debris}}
{{Fl|2048|Only NPCs in vehicles (respects player ally flag)}}


==Inputs==
==Inputs==
{{I|MineDetonated|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.|param=targetname|nofgd=1}}
{{I|MineDetonated|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.|param=targetname|nofgd=1}}
{{I BaseTrigger}}
==Outputs==
{{O BaseTrigger}}

Revision as of 10:07, 21 May 2025

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.