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

Env shake (GoldSrc): Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
m (Changed parameters of {{this is a}} to comply with the updated version. This action was performed by a bot.)
Line 1: Line 1:
{{tabs|env_shake|goldsrc = 1|source = 1|main = source}}  
{{tabs|env_shake|goldsrc = 1|source = 1|main = source}}  
{{This is a|name=env_shake|e0|engine=1}} it shakes the screens of [[player|players]] for some duration.
{{this is a|point entity|name=env_shake|engine=GoldSrc}} it shakes the screens of [[player|players]] for some duration.


==Key Values==
==Key Values==

Revision as of 21:05, 17 May 2024

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

Key Values

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]