Env physexplosion: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
	
| m (Reverted edit of LicnaMonro, changed back to last version by JeffLane) | m (Robot: fixing template case.) | ||
| Line 23: | Line 23: | ||
| * '''targetentityname''' | * '''targetentityname''' | ||
| : <target_destination> If specified, the explosion will only affect the matching entity. | : <target_destination> If specified, the explosion will only affect the matching entity. | ||
| * '''{{ | * '''{{EP1 add|inner_radius}} | ||
| : <float> If not zero, the LOS is calculated from a point intersecting this sphere. | : <float> If not zero, the LOS is calculated from a point intersecting this sphere. | ||
| ==Flags== | ==Flags== | ||
| * 1 : No Damage - Only Force | * 1 : No Damage - Only Force | ||
| : Don't make the object take damage from the explosion. | : Don't make the object take damage from the explosion. | ||
| * {{ | * {{EP1 add|2 : Push players}} | ||
| * {{ | * {{EP1 add|4 : Push radially - not as a sphere}} | ||
| * {{ | * {{EP1 add|8 : Test LOS before pushing}} | ||
| * {{ | * {{EP1 add|16 : Disorient player if pushed}} | ||
| ==Inputs== | ==Inputs== | ||
| Line 41: | Line 41: | ||
| ==Outputs== | ==Outputs== | ||
| * {{o targetname}} | * {{o targetname}} | ||
| * '''{{ | * '''{{EP1 add|OnPushedPlayer}} | ||
| : Fires when the player is pushed by the explosion. | : Fires when the player is pushed by the explosion. | ||
Revision as of 19:19, 19 January 2009
Template:Wrongtitle Template:Base point
Entity Description
Env_physexplosion applies a physical force to physics objects within its radius, anything from a gentle nudge to a big explosion, depending on its magnitude. The explosion itself is not visible; for visible explosions, use env_explosion.
If the No Damage - Only Force flag isn't set, the object will also take damage from the explosion. (Damage is applied to the object only - the explosion will never directly damage the player.)
env_physexplosions set to emit a fairly low force can be useful to get lights swinging or floating debris moving.
Availability
Template:In game Template:Game-base Template:In code
Keyvalues
- Template:Kv targetname
- Template:Kv parentname
- magnitude
- <float> Amount of physics force applied by the explosion.  Note:The magnitude value is clamped between 1 and 100.  If you require a bigger explosion than this, create multiple instances of the entity. Note:The magnitude value is clamped between 1 and 100.  If you require a bigger explosion than this, create multiple instances of the entity.
- radius
- <float> Clamp radius (0 = auto) If specified, the radius in which the explosion damages entities. If unspecified, the radius will be based on the magnitude.
- targetentityname
- <target_destination> If specified, the explosion will only affect the matching entity.
- inner_radius (in all games since  ) )
- <float> If not zero, the LOS is calculated from a point intersecting this sphere.
Flags
- 1 : No Damage - Only Force
- Don't make the object take damage from the explosion.
- 2 : Push players (in all games since  ) )
- 4 : Push radially - not as a sphere (in all games since  ) )
- 8 : Test LOS before pushing (in all games since  ) )
- 16 : Disorient player if pushed (in all games since  ) )
Inputs
- Trigger the explosion.
Outputs
- Template:O targetname
- OnPushedPlayer (in all games since  ) )
- Fires when the player is pushed by the explosion.
