Combine mine

From Valve Developer Community
Revision as of 03:44, 16 September 2018 by Pinsplash (talk | contribs) (misc stuff)
Jump to navigation Jump to search
English (en)Русский (ru)Translate (Translate)
Combine Mine
Demonstration of the first bug. Once the mine has settled, it checks what is below it. Since there's a gap in the middle, the first thing the line encounters is the world.

Template:Hl2 point The Hopper Mine is an anti-personnel proximity mine that hops into the air towards the target before exploding, much like a bouncing betty. These mines are carried and deployed by Claw Scanners.

Note.pngNote:This entity may also use bounce_bomb or combine_bouncemine for the classname.
Note.pngNote:combine_mines are not considered actual NPCs (CAI_BaseNPC) by the game. They inherit from CBaseAnimating.
PlacementTip.gifPlacement Tip:Make sure your skybox is at least ~1024 units above the ground, or the mine may hit the skybox brushes and explode for no apparent reason if they are punted upward with the gravity gun.
Icon-Bug.pngBug:Mines determine if they are on solid ground by drawing a line down from their center and checking if the line hits an entity or world geometry first. This can lead to them falsely interpreting the player's head or certain physics objects (or combinations of them) as the ground, causing them to float in the air when the player/object moves. This can be fixed in code by changing the line distance from 1024 units to something much smaller like 8.  [todo tested in ?]
Icon-Bug.pngBug:If the player grabs a scanner while it holds a mine, the scanner will not drop it until the player lets go.  [todo tested in ?]
Note.pngNote:This entity is also in the code for Portal. Its functionality is not guaranteed.


C++ In code, it is represented by theCBounceBombclass, defined in thecombine_mine.cppfile.

Keyvalues

Bounce (bounce) ([todo internal name (i)]) <boolean>
Whether the mine should bounce up in the air before exploding. (Normally they do, to improve their damage on infantry, but things like very soft clamping surfaces and additional attachments, may make hopping look unrealistic.)
Lock Silently (LockSilently) ([todo internal name (i)]) <boolean>
Whether the mine plays a sound when its clamps close.
Start Disarmed (StartDisarmed) ([todo internal name (i)]) <boolean>
Whether the mine begins dormant.
Citizen modified (Modification) ([todo internal name (i)]) <integer>
'Normal' is default Combine behavior. 'Cavern' (used in This Vortal Coil) detonates earlier in its jump, and in Episode 2 has a different default skin.
Confirm:The skin can be added in games pre-Episode 2 as well.
Explosion Damage (ExplosionDamage) ([todo internal name (i)]) <integer> !FGD
Manually adjust damage from explosion.
Todo: When is this used? It doesn't appear in code.
Explosion Radius (ExplosionRadius) ([todo internal name (i)]) <integer> !FGD
Manually adjust range of explosion.
Todo: When is this used? It doesn't appear in code.
Explosion Delay (ExplosionDelay) ([todo internal name (i)]) <float> !FGD
Confirm:Seen in code, but doesn't appear to function?
Note.pngNote:Content moved to Rendering and studio model related KIO/Keyvalues for continuation of page history


Inputs

Disarm
Disarm this mine (open hooks and shut off) if not placed by player.
Note.pngNote:Content moved to Rendering and studio model related KIO/Inputs for continuation of page history


Outputs

OnPulledUp
Fired when this mine is uprooted with the gravity gun.
Note.pngNote:Content moved to Rendering and studio model related KIO/Outputs for continuation of page history