Env ar2explosion: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(raw; needs cleanup)
 
No edit summary
 
(26 intermediate revisions by 15 users not shown)
Line 1: Line 1:
{{cleanup}}
{{Underlinked|date=January 2024}}
env_ar2explosion
{{LanguageBar}}
{{CD|CEnvAR2Explosion|file1=ar2_explosion.cpp}}
{{this is a|point entity|game=Half-Life 2 series|game1=Garry's Mod}}{{Todo|Confirm that this exists in more games.}} Creates a big, volume-filling brown cloud, but does not cause damage or emit sound. Despite the name it appears to have nothing to do with the [[weapon_ar2|AR2]].
[[File:Env_ar2explosion.gif|thumb]]


AR2 explosion visual effect. Big, volume-filling brown cloud. Does not cause damage or emit sound.
This entity creates 11 others as well:
*One is an {{ent|ar2explosion}} (removed after dust clears).
*The other 10 are {{ent|env_sprite}}s (remain after dust clears but are reused or replaced every time the explosion is set off).


KEYS
{{stray ent|{{as}} {{portal2}}}}


Name targetname <target_source> The name that other entities refer to this entity by.
==Keyvalues==
{{KV Targetname}}
{{KV|Particle Material|intn=material|material|The material to use for each particle in the explosion.}}


Parent parentname <target_destination> The name of this entity's parent in the movement hierarchy. Entities with parents move with their parent.
==Inputs==
 
{{I|Explode|Make the explosion effect.}}
Particle Material material <material> The material to use for each particle in the explosion.
 
 
INPUTS
 
Kill Removes this entity from the world.
 
KillHierarchy Removes this entity and all its children from the world.
 
AddOutput <string> Adds an entity I/O connection to this entity. Format: <output name> <targetname>:<inputname>:<parameter>:<delay>:<max times to fire (-1 == infinite)>. Very dangerous, use with care.
 
FireUser1 Causes this entity's OnUser1 output to be fired.
 
FireUser2 Causes this entity's OnUser2 output to be fired.
 
FireUser3 Causes this entity's OnUser3 output to be fired.
 
FireUser4 Causes this entity's OnUser4 output to be fired.
 
SetParent <string> Changes the entity's parent in the movement hierarchy.
 
SetParentAttachment <string> Change this entity to attach to a specific attachment point on its parent. Entities must be parented before being sent this input. The parameter passed in should be the name of the attachment.
 
ClearParent Removes this entity from the the movement hierarchy, leaving it free to move independently.
 
Explode Make the explosion effect.
 
 
OUTPUTS
 
OnUser1 Fired in response to FireUser1 input.
 
OnUser2 Fired in response to FireUser2 input.
 
OnUser3 Fired in response to FireUser3 input.
 
OnUser4 Fired in response to FireUser4 input.

Latest revision as of 08:55, 15 May 2025

Underlinked - Logo.png
This article needs more Wikipedia icon links to other articles to help Wikipedia icon integrate it into the encyclopedia. Please help improve this article by adding links Wikipedia icon that are relevant to the context within the existing text.
January 2024
English (en)Translate (Translate)
C++ Class hierarchy
CEnvAR2Explosion
CPointEntity
CBaseEntity
C++ ar2_explosion.cpp

This is a point entity available in Half-Life 2 series Half-Life 2 series and Garry's Mod Garry's Mod.

Todo: Confirm that this exists in more games.

Creates a big, volume-filling brown cloud, but does not cause damage or emit sound. Despite the name it appears to have nothing to do with the AR2.

Env ar2explosion.gif

This entity creates 11 others as well:

  • One is an ar2explosion (removed after dust clears).
  • The other 10 are env_sprites (remain after dust clears but are reused or replaced every time the explosion is set off).
Note.pngNote:This entity is also in the code for Alien Swarm Portal 2. Its functionality is not guaranteed.


Keyvalues

Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Particle Material (material) <material>
The material to use for each particle in the explosion.

Inputs

Explode
Make the explosion effect.