Garry's Mod Wiki

Revision Difference

GM:PostDrawViewModel#564711

<function name="PostDrawViewModel" parent="GM" type="hook"> <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 <page>GM:PreDrawViewModel</page> for a hook that is called just before a view model is drawn.⤶ ⤶ For view model hands alternative, see <page>GM:PostDrawPlayerHands</page>.⤶ <rendercontext hook="true" type="3D"></rendercontext> ⤶ <note>The 3D rendering context in this event is different from the main view. Every render operation will only be accurate with the view model entity.</note>⤶ </description>⤶ ⤶ </description>⤶ <realm>Client</realm> <args> <arg name="viewmodel" type="Entity">Players view model</arg> <arg name="player" type="Player">The owner of the weapon/view model</arg> <arg name="weapon" type="Weapon">The weapon the player is currently holding</arg> </args> </function>