Npc tripmine: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
m (Classifying as model entity)
 
(5 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{TabsBar}}
{{TabsBar}}
{{stub}}
{{stub}}
{{Ent not in fgd|nolink=1|smalltext=}}
{{CD|CTripmineGrenade|file1=1}}
{{CD|CTripmineGrenade|file1=1}}
{{This is a|entity|name=npc_tripmine|game=Half-Life 2: Deathmatch}} Entity that is spawned when using {{ent|weapon_slam}} on a wall.
[[File:Npc tripmine-example.jpg|thumb|right]]
{{This is a|model entity|name=npc_tripmine|game=Half-Life 2: Deathmatch}} Entity that is spawned when using {{ent|weapon_slam}} on a wall. This entity automatically creates its red beam using {{ent|beam}} entity and its explosion using {{ent|env_explosion}}.


{{Note|Tripmines in {{Half-Life 2|2}} maps are created as combination of 2 func_breakables, trigger_once, env_beam, info_target and env_explosion}}
{{Note|Tripmines in {{Half-Life 2|2}} maps are created as combination of 2 func_breakables, trigger_once, env_beam, info_target and env_explosion}}
== Convars ==
{{varcom|start}}
{{varcom|sk_plr_dmg_tripmine|0||m_flDamage is set to this}}
{{varcom|sk_tripmine_radius|0||m_DmgRadius is set to this but value 200 seems to always be used}}
{{varcom|sk_npc_dmg_tripmine|0||unused}}
{{varcom|end}}
== See also ==
* {{ent|weapon_slam}}
* {{ent|npc_satchel}} - created when using weapon_slam not on a wall

Latest revision as of 04:33, 19 May 2025

Source Engine ( General | Half-Life: Source | Black Mesa )
edit

Stub

This article or section is a stub. You can help by expanding it.

Icon-NotInFGD.png
This entity is not in the FGD by default.
C++ Class hierarchy
CTripmineGrenade
CBaseGrenade
CBaseProjectile
CBaseAnimating
CBaseEntity
C++ grenade_tripmine.cpp
Npc tripmine-example.jpg

npc_tripmine is a model entity available in Half-Life 2: Deathmatch Half-Life 2: Deathmatch. Entity that is spawned when using weapon_slam on a wall. This entity automatically creates its red beam using beam entity and its explosion using env_explosion.

Note.pngNote:Tripmines in Half-Life 2 Half-Life 2 maps are created as combination of 2 func_breakables, trigger_once, env_beam, info_target and env_explosion

Convars

Cvar/Command Parameters or default value Descriptor Effect
sk_plr_dmg_tripmine 0 m_flDamage is set to this
sk_tripmine_radius 0 m_DmgRadius is set to this but value 200 seems to always be used
sk_npc_dmg_tripmine 0 unused

See also