Everything is in the title. I need that for a swep.
"Getting if the weapon selection HUD is displayed."
Based of that title, I have absolutley no idea what you want.
Don't think this is possible without some major hacks. GM/HUDShouldDraw is called for internal HUD elements so you could theoretically listen to it every frame to see if CHudWeaponSelection passes through indicating its visibility, however, since hook ordering is not guarenteed, your hook could be skipped if another addon hides the default weapon selection. The other option would be to check for slot# commands passing through GM/PlayerBindPress but that doesn't necessarily tell you if the weapon selector is visible or not.
Thanks for your anwser uhm i already tried the HUDShouldDraw hook but it passes through every frame even if not visible, sad.
Sorry, you need to Log In to post a reply to this thread.