Env tilt: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (→‎Entity description: condensed bug templates into one and added Portal 2 to the list of games)
(updates)
Line 1: Line 1:
{{base point|env_tilt|since=Left 4 Dead 2}}  
{{lang|Env tilt}}
{{obsolete}}
{{base point|env_tilt|since=Left 4 Dead 2}} It tilts the screens of players. It was never fully implemented and does not work correctly in any game.


==Entity description==
{{code class|CEnvTilt|EnvShake.cpp}}
It is an entity to control screen tilt on players. {{todo|Add a better description}}


{{bug|{{l4d2}} {{portal2}} {{csgo}} Does not work in Counter Strike: Global Offensive or Portal 2, and causes a crash in Left 4 Dead 2.}}
==Flags==
*1: GlobalTilt - Ignore radius and tilt all player screens.
*128: Ease in/out (?)


== Keyvalues ==
==Keyvalues==
{{KV|Effect Radius|float|The radius around this entity in which to affect players.}}
{{KV|Effect Radius (radius)|float|The radius around this entity in which to affect players.}}
{{KV|Duration (seconds)|float|The length of time in which to tilt the player's screens.}}
{{KV|Duration (seconds) (duration)|float|The length of time in which to tilt the player's screens.}}
{{KV|Tilt time (seconds)|float|How long it takes to reach full tilt.}}
{{KV|Tilt time (seconds) (tilttime)|float|How long it takes to reach full tilt.}}
{{KV Targetname}}
{{KV BaseEntity}}
{{KV Parentname}}
{{KV Angles}}


== Flags ==
==Inputs==
* 1 : GlobalTilt
* 128 : Ease in/out
 
== Inputs ==
{{IO|StartTilt|Start the tilt.}}
{{IO|StartTilt|Start the tilt.}}
{{IO|StopTilt|Stop the tilt.}}
{{IO|StopTilt|Stop the tilt.}}
{{I Targetname}}
{{I BaseEntity}}
{{I Parentname}}


== Outputs ==
==Outputs==
{{O Targetname}}
{{O BaseEntity}}

Revision as of 22:01, 2 October 2018

English (en)Translate (Translate)
Obsolete-notext.png
This entity is obsolete. Its use is discouraged. It may only exist/function in older engine branches.

Template:Base point It tilts the screens of players. It was never fully implemented and does not work correctly in any game.

C++ In code, it is represented by theCEnvTiltclass, defined in theEnvShake.cppfile.

Flags

  • 1: GlobalTilt - Ignore radius and tilt all player screens.
  • 128: Ease in/out (?)

Keyvalues

Effect Radius (radius) ([todo internal name (i)]) <float>
The radius around this entity in which to affect players.
Duration (seconds) (duration) ([todo internal name (i)]) <float>
The length of time in which to tilt the player's screens.
Tilt time (seconds) (tilttime) ([todo internal name (i)]) <float>
How long it takes to reach full tilt.


Inputs

StartTilt
Start the tilt.
StopTilt
Stop the tilt.


Outputs