Garry's Mod Wiki


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


Allows overriding the position and angle of the viewmodel.


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


1 Vector
New position
2 Angle
New angle

Page Links

Special Pages



Render Time: 35ms

DB GetPage 3
Generate Html 10
SaveChanges (1) 12
Render Body 0
Render Sidebar 7