env_viewpunch
Jump to navigation
Jump to search
Code classes:
CEnvViewPunch
CPointEntity
CBaseEntity
(all ents)
env_viewpunch
is a point entity present in all Source games. It moves the player's view as if they were punched. (Example: In when zombies use their swipe attack.)
Flags[edit | edit source]
- 1: Punch all players (ignore radius)
- 2: Punch players in the air
Keyvalues[edit | edit source]
- Punch angles
(punchangle)
<angle>
- The angle to nudge the camera to.
- Effect Radius
(radius)
<float>
- The radius around this entity in which to affect players.
Inputs[edit | edit source]
- ViewPunch
- Performs the view punch.