Garry's Mod Wiki

Garry's Mod Wiki

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

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
4 number flags
The STUDIO_ flags for this render operation.

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...