env_viewpunch
		
		
		
		
		
		Jump to navigation
		Jump to search
		
 Note:Players in vehicle are unaffected.
Note:Players in vehicle are unaffected.
	
		
	
|  Class hierarchy | 
|---|
| CEnvViewPunch | 
|  effects.cpp | 
env_viewpunch  is a   logical entity  available in all  Source games. It applies a view punch according to the origin, radius, and angle. Generally, it moves the screen as if the player was "punched".
 Source games. It applies a view punch according to the origin, radius, and angle. Generally, it moves the screen as if the player was "punched".
 Note:Players in vehicle are unaffected.
Note:Players in vehicle are unaffected.Keyvalues
- Name (targetname) <string>[ Edit ]
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentnameortarget).
 Also displayed in Hammer's 2D views and Entity Report.See also: Generic Keyvalues, Inputs and Outputs available to all entities
- Punch angles (punchangle) <angle>
- The punch angles to apply.
- Effect Radius (radius) <float>
- The radius around this entity in which to affect players. (0 means all clients)
Flags
- Punch all players (ignore radius) : [1]
- Punch players in the air : [2]
Inputs
- ViewPunch
- Performs the view punch.
Convars
| Cvar/Command | Parameters or default value | Descriptor | Effect | 
|---|---|---|---|
| sv_suppress_viewpunch | 0 | bool | Whether the view punch should take effect | 

