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

Page Links


Special Pages


Wikis

?

Render Time: 43ms

DB GetPage 3
Generate Html 18
SaveChanges (1) 8
Render Body 0
Render Sidebar 12