UTIL ViewPunch: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
Line 1: Line 1:
{{wrongtitle|UTIL_ViewPunch}}
{{DISPLAYTITLE:UTIL_ViewPunch}}
UTIL_ViewPunch is a [[UTIL]] provided in the Source code for punching the player's view.
UTIL_ViewPunch is a [[UTIL]] provided in the Source code for punching the player's view.



Latest revision as of 00:27, 5 December 2011

UTIL_ViewPunch is a UTIL provided in the Source code for punching the player's view.

Note.pngNote:This doesn't seem to be used directly. See ViewPunch instead.

Usage

//-----------------------------------------------------------------------------
// Purpose: Punches the view of all clients within radius.
//			If radius is 0, punches all clients.
// Input  : center - Center of punch, radius is measured from here.
//			radius - Radius of effect, 0 punches all clients.
//			bInAir - if this is false, then it will only punch players standing on the ground.
//-----------------------------------------------------------------------------
void UTIL_ViewPunch( const Vector &center, QAngle angPunch, float radius, bool bInAir )