Grenade tripmine (Black Mesa): Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
Note:This entity inherits all keyvalues, inputs, outputs and flags from CBaseAnimating and CBaseEntity classes.
	
	
		
	
MyGamepedia (talk | contribs)  (Doesn't match the quality of articles about other explosives, hope to start working on this one tomorrow.)  | 
				MyGamepedia (talk | contribs)   (Added cvars.)  | 
				||
| Line 3: | Line 3: | ||
{{this is a|point entity|name=grenade_tripmine|game=Black Mesa}} This is an explosive that emits a blue laser when placed on a surface and it explodes when something touches its blue laser.  | {{this is a|point entity|name=grenade_tripmine|game=Black Mesa}} This is an explosive that emits a blue laser when placed on a surface and it explodes when something touches its blue laser.  | ||
{{note|This entity inherits all [[keyvalues]], [[inputs]], [[outputs]] and [[flags]] from [[CBaseAnimating]] and [[CBaseEntity]] classes.}}  | {{note|This entity inherits all [[keyvalues]], [[inputs]], [[outputs]] and [[flags]] from [[CBaseAnimating]] and [[CBaseEntity]] classes.}}  | ||
==Dedicated [[ConVars]]==  | |||
{{Bms|4|nt=2}}  | |||
{{varcom|start}}  | |||
{{varcom|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|Changes applies only for tripmine that was spawned after this change, so you can have tripmines with different health values.}}  | |||
}}  | |||
{{varcom|sk_detenator_tripmine_plr_dmg_radius|300|Float|Damage radius for player's tripmine.}}  | |||
{{varcom|sk_detenator_tripmine_npc_dmg|150|Float|Damage scale for a tripmine that does not belong to the player.}}  | |||
{{varcom|sk_detenator_tripmine_npc_dmg_radius|300|Float|Damage radius for a tripmine that does not belong to the player.}}  | |||
{{varcom|sk_detenator_tripmine_draw_bounds|0|Float|Doesn't seems to affect anything.}}  | |||
{{varcom|end}}  | |||
{{Bms12|4}} (the mod version)  | |||
{{varcom|start}}  | |||
{{varcom|sk_plr_dmg_grenade_tripmine|100|Float|Amount of damage that tripmine will deal when exploded.}}  | |||
{{varcom|sk_npc_dmg_grenade_tripmine|0|Float|Not used for anything. NPCs can't place tripmines. Tripmines placed in map editor or {{command|ent_create|grenade_tripmine}} are using value from previous console variable for damage.}}  | |||
{{varcom|end}}  | |||
== Inputs ==  | == Inputs ==  | ||
{{IO|TripmineActivate|Activate the tripmine turning on the blue laser|nofgd=1}}  | {{IO|TripmineActivate|Activate the tripmine turning on the blue laser|nofgd=1}}  | ||
{{I BaseGrenade}}  | {{I BaseGrenade}}  | ||
== Outputs ==  | == Outputs ==  | ||
{{O BaseGrenade}}  | {{O BaseGrenade}}  | ||
Revision as of 08:39, 21 April 2025
| ??? | 
grenade_tripmine  is a   point entity  available in 
 Black Mesa. This is an explosive that emits a blue laser when placed on a surface and it explodes when something touches its blue laser.
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. | 
	
Inputs
- TripmineActivate !FGD
 - Activate the tripmine turning on the blue laser
 
BaseGrenade:
- Detonate
 - Fire to make the grenade explode.
 
Outputs
BaseGrenade:
- OnDetonate
 - Grenade has just exploded.