Env viewpunch: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Robot: fixing template case.)
m (I figured I'd add a little elaboration, because I found this in Hammer and had no idea what the hell it meant by "view punch")
Line 3: Line 3:


== Entity description ==
== Entity description ==
Applies a view punch according to the origin, radius, and angle.
Applies a view punch according to the origin, radius, and angle. Generally, it moves the screen as if the player was "punched".


== Keyvalues ==
== Keyvalues ==

Revision as of 11:26, 5 March 2011

Template:Wrongtitle Template:Base point ep1

Entity description

Applies a view punch according to the origin, radius, and angle. Generally, it moves the screen as if the player was "punched".

Keyvalues

Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

  • radius
<float> The radius around this entity in which to affect players.
  • punchangle
<angle> The punch angles to apply.

Flags

  • 1 : Punch all players (ignore radius)
  • 2 : Punch players in the air

Inputs

  • ViewPunch
Perform the view punch.

Outputs