Garry's Mod Wiki

Revision Difference

HUD_Element_List#566180

<cat>Dev.Ref</cat> <title>Base HUD Element List</title> This is a list of all the HUD elements that you can block with <page>GM:HUDShouldDraw</page>. These elements are known to work in Garry's Mod. The hook will always be called for those elements unless stated otherwise. Name | Description | -----|------------| | CHudAmmo | Primary ammo counter. | | CHudBattery | The armor meter. This is only called if players armor is above 0. | | CHudChat | The default chat box, escape menu, and console. | | CHudCrosshair | The default SWEP and HL2 weapon crosshair, including <page>WEAPON:DoDrawCrosshair</page> | | CHudCloseCaption | Close captions | | CHudDamageIndicator | The damage indicator from Half-Life 2, active only when visible. | | CHudHistoryResource | The weapon and ammo pickup indicator. | | CHudDeathNotice | The death notice panel.<br/><br/>This will not do anything in Garry's Mod because the kill feed is painted in Lua. | | CHudGeiger | Geiger counter from Half-Life 2. Only active when the sound plays. Hiding this stops the sound. | | CHudGMod | The <page>Global.GetHUDPanel</page>. Hiding this will hide anything rendered with <page>GM:HUDPaint</page>, <page>GM:HUDPaintBackground</page> and <page>GM:HUDDrawScoreBoard</page> | | CHudHealth | The health meter. | | CHudHintDisplay | The key hint display? Disabled in Garry's Mod by default | | CHudMenu | A generic menu on the left side of the screen with simple 1/2/3/etc key inputs. Typically used in other Source games as map voting, etc. Unused in Garry's Mod. | | CHudMessage | Possibly handles the `Half-Life 2` title on HUD on relevant maps, as well as the text from `game_text` entity. | | CHudPoisonDamageIndicator | The "Neurotoxin Detected" HUD above Health when you get hit by a poison headcrab. | | CHudSecondaryAmmo | Secondary ammo counter ( SMG1 grenades, AR2 energy balls ) | | CHudSquadStatus | Citizen Squad status HUD from Half-Life 2. Only called if citizens follow you. | | CHudTrain | Possibly the controls HUD for controllable func_tracktrain. | | CHudVehicle | Crosshair for jeep and airboat when gun is mounted. | | CHudWeapon | Handles creation/updating colors of `CHudCrosshair`. Does **not** control the visibility of the crosshair after it has been created. See <page>Player:CrosshairDisable</page>. | | CHudWeaponSelection | The weapon selection panel.<br/><br/>Hiding this will also disable capability to switch weapons for the client. | | CHudZoom | Suit zoom from Half-Life 2.<br/><br/>Only called if visible ( +zoom bind ). Hiding this **does not** prevent zooming. | | NetGraph | The netgraph. Only works if **net_graph** convar is above 0 | | CHUDQuickInfo | Health and ammo near crosshair. Only works if **hud_quickinfo** convar is above 0 | | NetGraph | The netgraph. Only works if `net_graph` convar is above 0 | | CHUDQuickInfo | Health and ammo near crosshair. Only works if `hud_quickinfo` convar is above 0 | | CHudSuitPower | HEV Suit power. | These elements work, but the hook will not be called for these.⤶ ⤶ Name | Description |⤶ -----|------------|⤶ | CHudCredits | Half-Life 2 credits overlay panel from the end of the game. This does work in Garry's Mod but will not be called with GM:HUDShouldDraw |⤶ These elements are confirmed to be not working in Garry's Mod. The hook will not be called for these elements. Name | Description | -----|------------| | CTargetID | The text when you aim at a player. Disabled in Garry's Mod because this is painted in Lua; see <page>GM:HUDDrawTargetID</page> instead. | | CHudHistoryResource | HL2 item pickup history. Disabled in Garry's Mod because this is painted in Lua; see <page>GM:HUDItemPickedUp</page> instead.<br/>This is still called when you pick up health/suit power/etc. | | CHudLocator | Jalopy HUD radar/locator from Half-Life 2: Episode 2. | | CHudFlashlight | Flashlight HUD from Half-Life 2: Episode 2. | ⤶ ⤶ | CHudFilmDemo | Removed in Garry's Mod. |⤶ | CHudHDRDemo | Lost Coast HDR Demonstration HUD element, removed in Garry's Mod. |⤶ | CHudHintKeyDisplay | Half-Life 2 Input hints/reminders, removed in Garry's Mod. |⤶ | CHudVote | Removed in Garry's Mod. |⤶ | CHudControlPointIcons | TF2 Control Point gamemode HUD? Removed in Garry's Mod. |⤶ | CHudCapturePanel | TF2 Control Point gamemode HUD? Removed in Garry's Mod. |⤶ | CHudBonusProgress | Portal 1 or some other bonus map progress tracker HUD? Removed in Garry's Mod. |⤶ | CReplayReminderPanel | TF2 replay feature related? Removed in Garry's Mod. |⤶ | CHudVguiScreenCursor | Removed in Garry's Mod. |⤶ | CHudCommentary | Developer commentary panel as seen in Half-Life 2 and other Source Engine games. Removed in Garry's Mod. |⤶ | CAchievementNotificationPanel | Achievement notifications. Removed in Garry's Mod. |⤶ | CHudPosture | Removed in Garry's Mod. |⤶ | CTeamPlayHud | Removed in Garry's Mod. |⤶ | CMapOverview | Removed in Garry's Mod. |⤶ These elements are unknown whether they work or not in Garry's Mod. Name | Description | -----|------------| | CAchievementNotificationPanel | Achievement notifications | | CHudAnimationInfo | Displays information about HUD elements, activated by the console command cl_animationinfo. | | CHUDAutoAim | |⤶ | CHudBonusProgress | |⤶ | CHudCapturePanel | |⤶ | CHudCommentary | Developer commentary panel as seen in Half-Life 2 and other Source Engine games. |⤶ | CHudControlPointIcons | |⤶ | CHudCredits | Half-Life 2 credits overlay panel from the end of the game. This does work in Garry's Mod but will not be called with GM:HUDShouldDraw |⤶ | CHudVguiScreenCursor | |⤶ | CHudAnimationInfo | Displays information about HUD elements, activated by the console command `cl_animationinfo`. | | CHUDAutoAim | `hud_draw_fixed_reticle 1` | | CHudVoiceSelfStatus | Shows when the local player uses microphone voice chat. | | CHudVoiceStatus | Shows when other players use microphone voice chat. Set mp_show_voice_icons 0 to disable icons | | CHudVote | | | CMapOverview | | | CPDumpPanel | Panel that appears when using cl_pdump |⤶ | CReplayReminderPanel | |⤶ | CTeamPlayHud | |⤶ | CHudFilmDemo | |⤶ | CHudGameMessage | |⤶ | CHudHDRDemo | Lost Coast HDR Demonstration HUD element |⤶ | CHudHintKeyDisplay | |⤶ | CHudPosture | |⤶ | CHudVoiceStatus | Shows when other players use microphone voice chat. Set `mp_show_voice_icons 0` to disable icons | | CPDumpPanel | Panel that appears when using `cl_pdump` | | CHudGameMessage | Related to the `logic_game_message` entity. |