Func minefield: Difference between revisions
Jump to navigation
Jump to search
Note:Mines can be spawned incorrectly on displacement surface, showing their barrels.
Bug:This entity can sometimes spawn multiple mines inside each other.
MyGamepedia (talk | contribs) (→Inputs) |
MyGamepedia (talk | contribs) No edit summary |
||
(3 intermediate revisions by 2 users not shown) | |||
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}}. | {{CDA|CFuncMineField|CBaseTrigger|CBaseToggle|CBaseEntity|}} | ||
{{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}}. | |||
{{note|Mines can be spawned incorrectly on displacement surface, showing their barrels.}} | {{note|Mines can be spawned incorrectly on displacement surface, showing their barrels.}} | ||
{{bug|This entity can sometimes spawn multiple mines inside each other.}} | {{bug|hidetested=1|This entity can sometimes spawn multiple mines inside each other.}} | ||
==Keyvalues== | ==Keyvalues== | ||
Line 7: | 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.}} | ||
==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.}} | ||
==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}} | ||
Latest revision as of 01:41, 27 May 2025
![]() |
---|
CFuncMineField |
func_minefield
is a brush entity available in 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.


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 <targetname > !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.