Env hudhint: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (env_hudhint is removed from Garry's mod)
(-added class hierarchy, cleanup)
Line 1: Line 1:
{{lang|Env hudhint}}
{{lang|Env hudhint}}
[[File:Hudhint.png|right]]
__NOTOC__
{{CD|CEnvHudHint}}
{{base point|env_hudhint}} It is used to control the display of HUD hints, which show the player what key is bound to a particular command.
{{base point|env_hudhint}} It is used to control the display of HUD hints, which show the player what key is bound to a particular command.


{{note|In Left 4 Dead and later, the message will only show to the !activator unless it's singleplayer.}}
{{note|In Left 4 Dead and later, the message will only show to the !activator unless it's singleplayer.}}
{{note|In Garry's mod env_hudhint is removed.}}
{{note|In Garry's mod env_hudhint is removed.}}
[[File:Hudhint.png|right]]
==Flags==
==Flags==
*1: All Players {{removed|{{l4d}}}} - Show the message to everyone on the server (otherwise show to !activator only)
{{fl|1|All Players {{removed|{{l4d}}}}|Show the message to everyone on the server (otherwise show to !activator only)}}


==Keyvalues==
==Keyvalues==
{{KV|Hint Text (localized) (message)|string|This should be match a HUD hint entry in <code>hl2\resource\[[valve_english.txt]]</code> or its localized equivalent. Example: entering "<code>#Valve_Hint_Zoom</code>" (without the quotation marks) will display the following hint text: "%+zoom% ZOOM VIEW", with %+zoom% being the key currently bound to the zoom function.
{{KV|Hint Text (localized)|intn=message|string|This should be match a HUD hint entry in <code>hl2\resource\[[valve_english.txt]]</code> or its localized equivalent. Example: entering "<code>#Valve_Hint_Zoom</code>" (without the quotation marks) will display the following hint text: "%+zoom% ZOOM VIEW", with %+zoom% being the key currently bound to the zoom function.


{{warning|Entering raw text will not allow the message to be translated between user languages.}}}}
{{warning|Entering raw text will not allow the message to be translated between user languages.}}}}
{{KV BaseEntity|css=1}}
{{KV Targetname}}


==Inputs==
==Inputs==
{{IO|ShowHudHint|Shows the hint message.}}
{{IO|ShowHudHint|Shows the hint message.}}
{{IO|HideHudHint|Hides the hint message.}}
{{IO|HideHudHint|Hides the hint message.}}
{{I BaseEntity|prel4d=1}}
==Outputs==
{{O BaseEntity|l4d=1}}


==See Also==
==See Also==

Revision as of 03:30, 11 November 2022

English (en)中文 (zh)Translate (Translate)
C++ Class hierarchy
CEnvHudHint
CPointEntity
CBaseEntity

Template:Base point It is used to control the display of HUD hints, which show the player what key is bound to a particular command.

Note.pngNote:In Left 4 Dead and later, the message will only show to the !activator unless it's singleplayer.
Note.pngNote:In Garry's mod env_hudhint is removed.
Hudhint.png

Flags

All Players (removed since Left 4 Dead) : [1]
Show the message to everyone on the server (otherwise show to !activator only)

Keyvalues

Hint Text (localized) (message) <string>
This should be match a HUD hint entry in hl2\resource\valve_english.txt or its localized equivalent. Example: entering "#Valve_Hint_Zoom" (without the quotation marks) will display the following hint text: "%+zoom% ZOOM VIEW", with %+zoom% being the key currently bound to the zoom function.
Warning.pngWarning:Entering raw text will not allow the message to be translated between user languages.
Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Inputs

ShowHudHint
Shows the hint message.
HideHudHint
Hides the hint message.

See Also

  • env_message - A similar entity that displays other predefined messages on the screen.