asw_env_shake

From Source Entities
Jump to navigation Jump to search

Code classes:

Env shake.png

asw_env_shake is a point entity present in Asw.pngAlien Swarm. It shakes the screens of players and can also jostle objects nearby. For unclear reasons, the regular env_shake does not work in Alien Swarm, and instead of fixing it the devs decided to make a completely different entity to replace it.

ConVars/Commands[edit | edit source]

ConVar/CommandParameters or default valueParameter TypeEffect
asw_shakeCreates a generic screen shake effect.

Flags[edit | edit source]

  • 1: GlobalShake - Useless flag, all it does is set Effect Radius to 0.
  • 4: In Air - Shake players even if they're airborne.
  • 8: Physics - Shake physics objects (that the player/players can see)
  • 16: Ropes - Shakes ropes as well
  • 32 (Not in FGD): DON'T shake view (for shaking ropes or physics only)

Keyvalues[edit | edit source]

Amplitude (amplitude) <float>
How far away from the normal position the camera will wobble. Maximum value is 16.
Effect Radius (radius) <float>
How far away from the entity the shaking will apply. If this is set to 0, the shake applies over the entire map.
Duration (duration) <float>
How many seconds the shaking will last.
Frequency (frequency) <float>
How many times per second to change the direction of the camera wobble. Values become mostly indistinguishable above 40.

Inputs[edit | edit source]

StartShake
Starts the shake.
StopShake
Stops the shake.
Amplitude <float>
Sets Amplitude.
Frequency <float>
Sets Frequency.