trigger_weaponfire

From Valve Developer Community
Jump to navigation Jump to search
C++ Class hierarchy
CTriggerWeaponFire
↳CBaseTrigger
↳CBaseToggle
↳CBaseEntity

trigger_weaponfire is a trigger entity available in Black Mesa Black Mesa. It is a volume that fires outputs when an entity with grenade_ prefix (grenade_mp5_contact, grenade_bolt, grenade_hornet, etc.) enters or leaves it. This is the only trigger entity which can be triggered by these entities (most other doesn't work). Original FGD also provides all the flags from trigger_multiple entity, but none of them will work with this entity. This entity is very useful for cases, when you need to fire outputs when specified grenade touches trigger. This entity is also useful when you need to do something with specified grenade entity, for example.

Icon-Bug.pngBug:Filters doesn't seem to work with this entity, tested with filter_activator_class.