Talk:WEAPON/PostDrawViewModel

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
(Clarification given)
(I do not know how to wiki)
Line 1: Line 1:
 
Need clarification between this and {{HookFunction|WEAPON|ViewModelDrawn}}
 
Need clarification between this and {{HookFunction|WEAPON|ViewModelDrawn}}
  
SWEP:ViewModelDrawn is called immediately after the viewmodel has been drawn, and is a hook directly from the engine to the weapon. Next, GM:PostDrawViewModel is called which then calls SWEP:PostDrawViewModel if the gamemode implements it as such. ViewModelDrawn is a more reliable hook since it doesn't rely on the gamemode, but it is called before so any changes made in PostDrawViewModel will take priority.
+
:SWEP:ViewModelDrawn is called immediately after the viewmodel has been drawn, and is a hook directly from the engine to the weapon. Next, GM:PostDrawViewModel is called which then calls SWEP:PostDrawViewModel if the gamemode implements it as such. ViewModelDrawn is a more reliable hook since it doesn't rely on the gamemode, but it is called before so any changes made in PostDrawViewModel will take priority.
  
- code_gs 12:12, 5 September 2017 (UTC)
+
- :--[[User:code_gs|code_gs]] 12:12, 5 September 2017 (UTC)

Revision as of 12:13, 5 September 2017

Need clarification between this and WEAPON:ViewModelDrawn

SWEP:ViewModelDrawn is called immediately after the viewmodel has been drawn, and is a hook directly from the engine to the weapon. Next, GM:PostDrawViewModel is called which then calls SWEP:PostDrawViewModel if the gamemode implements it as such. ViewModelDrawn is a more reliable hook since it doesn't rely on the gamemode, but it is called before so any changes made in PostDrawViewModel will take priority.

- :--code_gs 12:12, 5 September 2017 (UTC)

Personal tools
Navigation