Grenade tripmine (Black Mesa): Difference between revisions
MyGamepedia (talk | contribs) No edit summary |
MyGamepedia (talk | contribs) No edit summary |
||
Line 12: | Line 12: | ||
* Explodes instantly if placed on a [[prop_ragdoll|ragdoll]] {{only|{{bms12}}}}. | * Explodes instantly if placed on a [[prop_ragdoll|ragdoll]] {{only|{{bms12}}}}. | ||
* Doesn't explode on activated [[func_conveyor_bms|conveyors]] (there is no such ability to limit the ability to place tripmines in certain areas). | * Doesn't explode on activated [[func_conveyor_bms|conveyors]] (there is no such ability to limit the ability to place tripmines in certain areas). | ||
* Doesn't gib ragolls. | * Doesn't gib ragolls {{only|{{bms}}}}. | ||
|hidetested=1}} | |hidetested=1}} | ||
Revision as of 12:25, 8 May 2025
grenade_tripmine
is a point entity available in 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. Other inputs and outputs are same as CBaseAnimating.
Represented by class CGrenade_Tripmine
.




- Teleporting this entity or moving it will not teleport/shift the beam end point.
- Doesn't explode if you break func_breakable_surf.
- Explodes instantly if placed on a ragdoll (only in
).
- Doesn't explode on activated conveyors (there is no such ability to limit the ability to place tripmines in certain areas).
- Doesn't gib ragolls (only in
).
Beam and glow colors
The laser and sprite for the glow are beamteam and spriteteam 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.

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). 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.14 seconds.
- Detonate <void>
- Detonates tripmine.
- SetTimer <float > (only in
)
- Sets amount of time before detonate.
Outputs
- OnDetonate <void>
- Fired by this entity when detonated.
Dedicated ConVars
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.
![]() |
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) (the mod version)
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
- weapon_tripmine - the weapon tripmine entity
- item_weapon_tripmine - the pickup tripmine entity