asw_env_shake
Jump to navigation
Jump to search
Code classes:
CASWEnvShake
CPointEntity
CBaseEntity
(all ents)
asw_env_shake
is a point entity present in Alien 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/Command | Parameters or default value | Parameter Type | Effect |
---|---|---|---|
asw_shake |
| Creates 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.