WEAPON:CalcViewModelView

From Garry's Mod
Jump to: navigation, search
 WEAPON:CalcViewModelView( )

Contents

Description

Allows overriding the position and angle of the viewmodel. This hook only works if you haven't overridden GM:CalcViewModelView.

Arguments

Entity vm

The viewmodel entity

Arguments

Vector oldPos

Original position (before viewmodel bobbing and swaying)

Arguments

Angle oldAng

Original angle (before viewmodel bobbing and swaying)

Arguments

Vector pos

Current position

Arguments

Angle ang

Current angle

Returns

Vector

New position

Returns

Angle

New angle
Personal tools
Navigation