Trigger weapon dissolve: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
	 In code, it is represented by the
		
	
 (no longer works?)  | 
				 (It works as intended in Half-Life 2 and Episode One, but only on dropped weapons from trigger_weapon_strip.)  | 
				||
| Line 3: | Line 3: | ||
==Entity description==  | ==Entity description==  | ||
A [[brush entity]] [[trigger]] that dissolves   | 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.  | ||
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.  | |||
{{code class|CTriggerWeaponDissolve|hl2_dll\hl2_triggers.cpp}}  | {{code class|CTriggerWeaponDissolve|hl2_dll\hl2_triggers.cpp}}  | ||
Revision as of 02:12, 29 April 2022
Entity description
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.
CTriggerWeaponDissolveclass, defined in thehl2_dll\hl2_triggers.cppfile.
Keyvalues
- Emitter Name ([todo internal name (i)]) <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
 - Fires when one weapon is starting to dissolve in the trigger volume.
 
- OnChargingPhyscannon
 - Fires when the trigger begins to charge the physcannon.
 
 
 
 
 
 
  |