trigger_weaponfire

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

trigger_weaponfire is a brush 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, this is the only way to set right skin for crossbow bolts in multiplayer (for some reason crossbow bolts in multiplayer use the green skin texture when they should use the red skin).