Garry's Mod Wiki

Garry's Mod Wiki

  WEAPON:PostDrawViewModel( Entity vm, Weapon weapon, Player ply, number flags )

Description

Called after the view model has been drawn while the weapon in use.

This hook relies on default implementation of GM:PostDrawViewModel. If it appears to not work, it may have been overwritten/broken by the currently active gamemode or other addons.

WEAPON:ViewModelDrawn is an alternative hook which is always called before GM:PostDrawViewModel.

See also WEAPON:PreDrawViewModel.

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

Arguments

1 Entity vm
This is the view model entity after it is drawn
2 Weapon weapon
This is the weapon that is from the view model (same as self)
3 Player ply
The owner of the view model
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...