Cleanup is going to take awhile, so the site is back up but editing has been disabled.

Env terrainmorph

From HalfLife 2 Knowledge Base

Jump to: navigation, search

Contents

env_terrainmorph

Half-Life 2 Point Entity


description

Morphs terrain by pulling vertices along a normal.

Place this entity the desired distance from a terrain surface and set ANGLES to the normal along which you want to pull the surface's vertices. If you set the INSTANT spawnflag, the morph will take place instantly instead of over time.

properties

  • Name targetname(target_source)
    The name that other entities refer to this entity by.
  • Parent parentname(target_destination)
    The name of this entity's parent in the movement hierarchy. Entities with parents move with their parent.
  • Start Radius startradius(integer) - default: 500
    Radius of the effect when morphing begins. Only this value is usedif the effect is flagged to occur instantly.
  • Goal Radius goalradius(integer) - default: 100
    Radius of the effect at the end of morphing. The radius of this effect will change from Start Radius to Goal Radius over the duration of this effect. This value is ignored if the effect is flagged to occur instantly.
  • Duration duration(integer) - default: 3
    The morph will take place over this period of time (seconds). Ignored if flagged to occur instantly
  • Displacement Fraction fraction(integer) - default: 1
    If set to 1, the terrain surface will be pulled exactly to this entity's position. If set to 0.5, the surface will be pulled exactly half way to this entity's position. If set to 2, the surface will be pulled to an imaginary point twice as far away as this entity. (Any Displacement Fraction greater than 1.0 will result in clipping. The surface cannot be pulled beyond This entity's position and any vertices attemping will clip to this entity's position. You may use this feature to create mesas.)


spawn flags

  • 1: Instant - default: OFF


inputs

  • Kill(void)
    Removes this entity from the world.
  • KillHierarchy(void)
    Removes this entity and all its children from the world.
  • AddOutput(string)
    Adds an entity I/O connection to this entity. Format
  • FireUser1(void)
    Causes this entity's OnUser1 output to be fired.
  • FireUser2(void)
    Causes this entity's OnUser2 output to be fired.
  • FireUser3(void)
    Causes this entity's OnUser3 output to be fired.
  • FireUser4(void)
    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 it's parent. Entities must be parented before being sent this input. The parameter passed in should be the name of the attachment.
  • ClearParent(void)
    Removes this entity from the the movement hierarchy, leaving it free to move independently.
  • BeginMorph(void)
    Begin Morph.

outputs

  • OnUser1(void)
    Fired in response to FireUser1 input.
  • OnUser2(void)
    Fired in response to FireUser2 input.
  • OnUser3(void)
    Fired in response to FireUser3 input.
  • OnUser4(void)
    Fired in response to FireUser4 input.


related tutorials

Submit your tutorial for env_terrainmorph

Personal tools