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

Env shake

From HalfLife 2 Knowledge Base

Jump to: navigation, search

Contents

env_shake

Source(core) Point Entity


description

An entity to control screen shake on players.


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.
  • Amplitude (0-16) amplitude(float) - default: 4
    The amount of noise in the screen shake. Should be a range between 0 and 16.
  • Effect Radius radius(float) - default: 500
    The radius around this entity in which to affect players.
  • Duration (seconds) duration(float) - default: 1
    The length of time in which to shake the player's screens.
  • Frequency frequency(float) - default: 2.5
    The frequency used to apply the screen shake. Should be a value between 0 and 255, where 0.1 = jerk, and 255.0 = rumble.


spawn flags

  • 1: GlobalShake - default: OFF
  • 4: In Air - default: OFF
  • 8: Physics - default: ON
  • 16: Ropes - 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.
  • Amplitude(string)
    Set the amplitude (0-16)
  • Frequency(string)
    Set the frequence. Should be a value between 0 and 255, where 0.1 = jerk, and 255.0 = rumble.
  • StartShake(void)
    Start the shake.
  • StopShake(void)
    Stop the shake.

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_shake

Personal tools