This article's documentation is for the "GoldSrc" engine. Click here for more information.

env_shake

From Valve Developer Community
Jump to navigation Jump to search
English (en)Translate (Translate)
Class hierarchy
CShake
CPointEntity
CBaseEntity
effects.cpp

env_shake is a point entity available in all GoldSrc GoldSrc games. it shakes the screens of players for some duration.

Key Values

Targetname:

Name (targetname) <string>
The targetname that other entities refer to this entity by.
Amplitude (0-16) (amplitude) <string>
How far away from the normal position the camera will wobble. Should be a range between 0 and 16.
Effect Radius (radius) <string>
The radius around this entity in which to affect players.
Duration (seconds) (duration) <string>
The length of time in which to shake the player's screens.
0.1 = jerk, 255.0 = rumble (frequency) <string>
How many times per second to change the direction of the camera wobble. 40 is generally enough; values higher are hardly distinguishable.

Flags

GlobalShake : [1]