Env instructor hint: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (typo)
(→‎Icons: Thanks, Friskers.)
Line 118: Line 118:
|-
|-
|}
|}
 
{{note|env_instructor_hint is not limited to icons listed above, please refer to '''scripts/mod_textures.txt''' located in the main pak01_dir.vpk for more icon options.}}
=== show key bindings ===
=== show key bindings ===
This is a special icon that requires setting entity property Bound Command. The following example sets Bound Command to "jump" (without quotations) with Caption set to "Bet you can't jump over me!" (without quotations).  
This is a special icon that requires setting entity property Bound Command. The following example sets Bound Command to "jump" (without quotations) with Caption set to "Bet you can't jump over me!" (without quotations).  

Revision as of 00:53, 11 March 2011

Template:L4d2 point

Entity Description

Env instructor hint.gif
Note.pngNote:env_instructor_hint currently cannot display more than one hint at the same time.

Keyvalues

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

Target Entity <targetname>
The entity to show this hint on top of. The entity used must exist on the client, info_target_instructor_hint can be parented to server only entities for this purpose.
Positioning <choices>
Either show at the position of the Target Entity. Or show the hint directly on the hud at a fixed position.
  • Follow the Target Entity
  • Show on the hud
Allow invisible target <choices>
Do we allow the hint to follow entities with nodraw set?
  • End immediately on nodraw
  • Yes
Caption <string>
The text of your hint.
Caption Color <color255 + int>
The color of the caption text
Force caption <choices>
Do we show the caption text even if the hint is occluded by a wall?
  • No
  • Show when occluded
Onscreen Icon <choices>
The icon to use when the hint is within the player's view.
Offscreen Icon <choices>
The icon to use when the hint is outside the player's view. (Cannot select "show key bindings")
Show offsreen <choices>
When the hint is offscreen, do we show an icon and arrow?
  • Show
  • Don't show
Bound Command
If using 'show key bindings' for the onscreen icon, this field should be the command we want to show bindings for
Icon Height Offset
A height offset from the target entity's origin to display the hint
Size Pulsing <choices>
The icon size can pulsate
  • No Pulse
  • Slow Pulse
  • Fast Pulse
  • Urgent Pulse
Alpha Pulsing <choices>
The icon alpha can pulsate
  • No Pulse
  • Slow Pulse
  • Fast Pulse
  • Urgent Pulse
Shaking <choices>
The icon can shake
  • No Shaking
  • Narrow Shake
  • Wide Shake
Timeout
The automatic timeout for the hint. 0 will persist until stopped with EndHint.
Display Range
The visible range of the hint. 0 will show it at any distance.
Show on First Sight <choices>
When the player first sees it, it will automatically show for them.
  • No
  • Yes

Icons

Icon Name Icon
icon_tip Hint 001 icon tip.jpg
icon_info Hint 002 icon info.jpg
icon_shield Hint 003 icon shield.jpg
icon_alert Hint 004 icon alert.jpg
icon_alert_red Hint 005 icon alert red.jpg
icon_tip (again) Hint 006 icon tip (again).jpg
icon_skull Hint 007 icon skull.jpg
icon_no Hint 008 icon no.jpg
icon_interact Hint 009 icon interact.jpg
icon_button Hint 010 icon button.jpg
icon_door Hint 011 icon door.jpg
icon_arrow_plain Hint 012 icon arrow plain.jpg
icon_arrow_plain_white_dn Hint 013 icon arrow plain white dn.jpg
icon_arrow_plain_white_up Hint 014 icon arrow plain white up.jpg
icon_arrow_up Hint 015 icon arrow up.jpg
icon_arrow_right Hint 016 icon arrow right.jpg
Note.pngNote:env_instructor_hint is not limited to icons listed above, please refer to scripts/mod_textures.txt located in the main pak01_dir.vpk for more icon options.

show key bindings

This is a special icon that requires setting entity property Bound Command. The following example sets Bound Command to "jump" (without quotations) with Caption set to "Bet you can't jump over me!" (without quotations).

Hint 017 show key bindings.jpg

In this case, "+jump" is bound to "SPACE", the space bar on the keyboard. More commands can be found in the Left 4 Dead 2 cfg folder. Open config.cfg in a text editor to review which commands are currently bound to the client.

Flags

There are currently no flags.

Inputs

  • EndHint
  • ShowHint

Outputs

See also