grenade_tripmine

From Valve Developer Community
(Redirected from Grenade tripmine)
Jump to navigation Jump to search
Source Engine ( General | Half-Life: Source | Black Mesa )
edit
Class hierarchy
CGrenade_Tripmine
CBlackMesaBaseDetonator
CBaseAnimating
CBaseEntity
Grenade tripmine.png

grenade_tripmine is a model entity available in Black Mesa Black Mesa. The grenade entity that is used by weapon_tripmine. This is an explosive that emits a laser when placed on a surface and it explodes when something touches its laser. Steam versions use console variables to configure this entity, the mod version provides exclusive inputs and outputs that are cut in Steam versions of the game.

Note.pngNote:Can't be placed on prop_physics in Steam versions of the game. Doesn't affect the other entities that you can use as a physics prop.
Note.pngNote:In the mod version, tripmine converts into pick up entity if wasn't activated and the surface moved away. In Steam versions, it explodes in such case.
Tip.pngTip:NPCs ignoring laser from this entity. You can use a brush entity with NPC Clip texture to fix this.
Icon-Bug.pngBug:
  • Teleporting this entity or moving it will not teleport/shift the beam end point (you can workaround it by changing beamteam origin).
  • Doesn't explode if you break func_breakable_surf.
  • Doesn't explode on activated conveyors (there is no such ability to limit the ability to place tripmines in certain areas).
  • It can be placed on skybox.
  • Explodes instantly if placed on a ragdoll (only in Black Mesa (mod)).
  • Doesn't gib ragdolls (not in Black Mesa (mod)).
  • Can't be triggered by debris and pickup entities (not in Black Mesa (mod)).
  • The beamteam will point at worldspawn for end position after level transition, also will not be removed if tripmine is removed.
  • The spriteteam will not be displayed after level transition, also will not be removed if tripmine is removed.
  • If the tripmine wasn't activated before level transition, it will never be activated.
  • Explodes after level transition (only in Black Mesa (mod)).

Beam and glow colors

The laser and sprite for the glow are beamteam and spriteteam entities (the mod version are using beam and env_sprite entities). They are using blue color for all tripmines in singleplayer and deathmatch mode, tripmines placed by client in team deathmatch are also using blue color (only on client side). Orange color used for tripmines, placed by scientists in team deathmatch, green for HECU soldiers. There are also gray color for tripmines with unassigned team in team deathmatch, usually used for pre-placed tripmines.

Tip.pngTip:You can change the color by using Color input and even use different colors for different tripmines, just spawn a group of tripmines earlier than others and fire this input after 4 seconds. This tip doesn't work in team deathmatch.

Triggering

Tripmines can be triggered by anything, except some specific collision groups (the reason why you can't trigger a tripmine with a pickup entity or debris in Steam version of the game). You can't trigger your teammates tripmine, although you still can trigger your own.

Collision

In Steam versions, tripmines can collide with everything when activated. This allows player to stay on them and even climb to skip some sections of your level. Trigger volumes doesn't work with this entity until it is activated. While As long as it's not solid, it doesn't care if anything is in the bounding box, so the player or any other object can stuck in tripmine after the timer finished. Tripmine can't be damaged until it is activated.


Tripmines doesn't provide any collision for players in the mod version.

Inputs

TripmineActivate  !FGD
Activate the tripmine turning on the laser. Fired by this entity after 3.40 seconds.
Detonate <void>
Detonates tripmine.
SetTimer <floatRedirectInput/float> (only in Black Mesa (mod))
Sets amount of time before detonate.
SetThrower <void> (only in Black Mesa (mod))
Fired by this entity when placed. Doesn't do anything.

Outputs

OnDetonate <void>
Fired by this entity when detonated.

Dedicated ConVars

Black Mesa Black Mesa: Definitive Edition

Cvar/Command Parameters or default value Descriptor Effect
sk_detenator_tripmine_health 1 Float Amount of health for tripmine. With 0 and below it will have endless amount of health, so it can be exploded with input or by laser triggering.
Tip.pngTip:Changes applies only for tripmine that was spawned after this change, so you can have tripmines with different health values.
sk_detenator_tripmine_plr_dmg_radius 300 Float Damage radius for player's tripmine.
sk_detenator_tripmine_npc_dmg 150 Float Damage scale for a tripmine that does not belong to the player.
sk_detenator_tripmine_npc_dmg_radius 300 Float Damage radius for a tripmine that does not belong to the player.
sk_detenator_tripmine_draw_bounds 0 Float Doesn't seems to affect anything.

Black Mesa (mod) Black Mesa (mod)

Cvar/Command Parameters or default value Descriptor Effect
sk_plr_dmg_grenade_tripmine 100 Float Amount of damage that tripmine will deal when exploded.
sk_npc_dmg_grenade_tripmine 0 Float Not used for anything. NPCs can't place tripmines. Tripmines placed in map editor or ent_create grenade_tripmine are using value from previous console variable for damage.

See Also