WEAPON:CalcViewModelView
Vector, Angle WEAPON:CalcViewModelView( Entity ViewModel, Vector OldEyePos, Angle OldEyeAng, Vector EyePos, Angle EyeAng )
Description
Allows overriding the position and angle of the viewmodel. This hook only works if you haven't overridden GM:CalcViewModelView.
Arguments
Returns
Example
One way to change the viewmodel texture (skin) for your SWEP. Changing it from 0 to 1.
Remember to define the base path ($cdmaterials) for your model when e.g. using Crowbar to compile .smd to .mdl; or else you won't get any texture(s) applied. (the game won't know where to look) QC Commands
And remember to use $texturegroup for multiple skins.
Output: