Trigger weapon dissolve: Difference between revisions
Jump to navigation
Jump to search

Bug:The game will crash if a weapon targeted for dissolving by this entity is removed by other means. [todo tested in ?]
mNo edit summary |
(→Keyvalues: intn) |
||
(5 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{LanguageBar}} | ||
{{entity|trigger_weapon_dissolve| | {{CD|CTriggerWeaponDissolve|file1=hl2_dll\hl2_triggers.cpp}} | ||
{{this is a|brush entity|name=trigger_weapon_dissolve|game=Half-Life 2 series}} | |||
A [[brush entity]] [[trigger]] that dissolves weapons forcefully dropped by [[trigger_weapon_strip]] within its volume. It is used by the Confiscation Field in both Half-Life 2 and [[Episode One]] to dissolve all the player's weapons except the [[weapon_physcannon|Gravity Gun]], supercharging it instead. | A [[brush entity]] [[trigger]] that dissolves weapons forcefully dropped by [[trigger_weapon_strip]] within its volume. It is used by the Confiscation Field in both Half-Life 2 and [[Episode One]] to dissolve all the player's weapons except the [[weapon_physcannon|Gravity Gun]], supercharging it instead. | ||
Line 11: | Line 10: | ||
{{bug|The game will crash if a weapon targeted for dissolving by this entity is removed by other means.}} | {{bug|The game will crash if a weapon targeted for dissolving by this entity is removed by other means.}} | ||
==Keyvalues== | ==Keyvalues== | ||
{{KV|Emitter Name|target_destination|Name of a single or multiple entities to use as the basis for the emitted effects.}} | {{KV Targetname}} | ||
{{KV | {{KV|Emitter Name|intn=emittername|target_destination|Name of a single or multiple entities to use as the basis for the emitted effects.}} | ||
{{KV BaseTrigger}} | |||
==Flags== | ==Flags== | ||
{{Fl | {{Fl BaseTrigger}} | ||
==Inputs== | ==Inputs== | ||
{{ | {{I|StopSound|Stops all sounds.}} | ||
{{I | {{I BaseTrigger}} | ||
==Outputs== | ==Outputs== | ||
{{ | {{O|OnDissolveWeapon|ac-is-this=1|Fires when one weapon is starting to dissolve in the trigger volume.}} | ||
{{ | {{O|OnChargingPhyscannon|ac-is-this=1|Fires when the trigger begins to charge the physcannon.}} | ||
{{O | {{O BaseTrigger}} | ||
{{sensor brush}} |
Latest revision as of 18:58, 1 June 2025


![]() |
---|
CTriggerWeaponDissolve |
![]() |
trigger_weapon_dissolve
is a brush entity available in Half-Life 2 series.
A brush entity trigger that dissolves weapons forcefully dropped by trigger_weapon_strip within its volume. It is used by the Confiscation Field in both Half-Life 2 and Episode One to dissolve all the player's weapons except the Gravity Gun, supercharging it instead.
For proper functionality, both brush entities must be used.
This entity in Half-Life 2: Deathmatch cannot start it's supercharging sequence of the Gravity Gun, as the gun removes itself even when dropped by trigger_weapon_strip.

Keyvalues
- Name (targetname) <string>[ Edit ]
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentname
ortarget
).
Also displayed in Hammer's 2D views and Entity Report.See also: Generic Keyvalues, Inputs and Outputs available to all entities
- Emitter Name (emittername) <targetname>
- Name of a single or multiple entities to use as the basis for the emitted effects.
|
Flags
|
Inputs
- StopSound
- Stops all sounds.
|
Outputs
- OnDissolveWeapon
- !activator = !caller = this entity
Fires when one weapon is starting to dissolve in the trigger volume.
- OnChargingPhyscannon
- !activator = !caller = this entity
Fires when the trigger begins to charge the physcannon.
|