Garry's Mod Wiki

Garry's Mod Wiki

  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

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...