GM:CalcViewModelView

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

Contents

Description

Allows overriding the position and angle of the viewmodel.

Arguments

Weapon wep

The weapon entity

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