Garry's Mod Wiki

GM:CalcViewModelView

  Vector, Angle GM:CalcViewModelView( Weapon wep, Entity vm, Vector oldPos, Angle oldAng, Vector pos, Angle ang )

Description

Allows overriding the position and angle of the viewmodel.

Arguments

1 Weapon wep
The weapon entity
2 Entity vm
The viewmodel entity
3 Vector oldPos
Original position (before viewmodel bobbing and swaying)
4 Angle oldAng
Original angle (before viewmodel bobbing and swaying)
5 Vector pos
Current position
6 Angle ang
Current angle

Returns

1 Vector
New position
2 Angle
New angle