Talk:WEAPON/PostDrawViewModel

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
(I do not know how to wiki)
m (Ok now I definitely got it)
 
Line 3: Line 3:
 
: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.
  
- :--[[User:code_gs|code_gs]] 12:12, 5 September 2017 (UTC)
+
:--[[User:code_gs|code_gs]] 12:12, 5 September 2017 (UTC)

Latest revision as of 12:14, 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