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
(Created page with "{{tabs|env_shake|goldsrc = 1|source = 1|main = source}} {{This is a|name=env_shake|e0|engine=1}} it shakes the screens of players for some duration. ==Key Values=...")
 
(-added class hierarchy)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{tabs|env_shake|goldsrc = 1|source = 1|main = source}}  
{{LanguageBar}}
{{This is a|name=env_shake|e0|engine=1}} it shakes the screens of [[player|players]] for some duration.
{{TabsBar|main=gs|base=env_shake}}
{{CD|CShake|goldsrc=1}}
{{This is a|point entity|name=env_shake|engine=GoldSrc}} it shakes the screens of [[player|players]] for some duration.


==Key Values==
==Key Values==
{{hl1_kv_targetname}}
{{KV|Amplitude (0-16)|intn=amplitude|string|How far away from the normal position the camera will wobble. Should be a range between 0 and 16.}}
{{KV|Amplitude (0-16)|intn=amplitude|string|How far away from the normal position the camera will wobble. Should be a range between 0 and 16.}}
{{KV|Effect Radius|intn=radius|string|The radius around this entity in which to affect players.}}
{{KV|Effect Radius|intn=radius|string|The radius around this entity in which to affect players.}}

Latest revision as of 01:58, 22 September 2024

English (en)Translate (Translate)
C++ Class hierarchy
CShake
CPointEntity
CBaseEntity
C++ 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

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]