Garry's Mod Wiki

GM:PostDrawViewModel

  GM:PostDrawViewModel( Entity viewmodel, Player player, Weapon weapon )

Description

Called after view model is drawn.

The render FOV in this hook is different from the main view, as view models are usually rendered with a different FOV. Every render operation will only be accurate with the view model entity.

See GM:PreDrawViewModel for a hook that is called just before a view model is drawn.

For view model hands alternative, see GM:PostDrawPlayerHands.

This is a rendering hook which provides a 3d rendering context.

Arguments

1 Entity viewmodel
Players view model
2 Player player
The owner of the weapon/view model
3 Weapon weapon
The weapon the player is currently holding