Zh/Env instructor hint: Difference between revisions
< Zh
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 59: | Line 59: | ||
==键值== | ==键值== | ||
{{KV|Target Entity (hint_target)| | {{KV|Target Entity (hint_target)|目标实体名称|显示此实体提示的目标实体。 此实体必须是在客户端上复制的实体否则提示永远不会显示。实体info_target_instructor_hint 是专门用于解决此问题的,允许放在空处或者绑定到其他实体上,以至于在此实体的方位上显示提示。 | ||
{{注意|如果一个{{ent|info_target}}实体被使用, 必须检查标签always transmit to the client是否被勾选。}}}} | |||
{{ | {{KV|Positioning (hint_static)|choices|要么将提示显示在'''Target Entity'''位置, 要么显示在[[HUD]] 位置(玩家屏幕上): | ||
{{KV|Positioning (hint_static)|choices| | :*0: Follow the '''Target Entity'''./显示在 '''Target Entity''' | ||
:*0: Follow the '''Target Entity'''. | :*1: Show on the HUD/显示在HUD上.}} | ||
:*1: Show on the HUD.}} | {{KV|Allow invisible target (hint_allow_nodraw_target)|choices|是否允许提示跟随设置了nodraw的实体? {{confirm|{{ent|EF_NODRAW}}?}}(非nodraw贴图指的是一种效果属性,可以阻止服务器向客户端传递此实体的任何数据,但不会删除此实体,也就代表客户端无法接受此实体的信息) | ||
{{KV|Allow invisible target (hint_allow_nodraw_target)|choices| | :*0: End immediately on nodraw/当目标实体被nodraw则不跟随 | ||
:*0: End immediately on nodraw | :*1: Yes/跟随}} | ||
:*1: Yes}} | {{KV|Caption (hint_caption)|字符串|提示的文本,最多100个字符。不支持中文。如果您需要中文,需要通过vscript脚本实现,请看下方的中文支持条目。}} | ||
{{KV|Caption (hint_caption)| | {{KV|Caption Color (hint_color)|color255|提示文本的颜色。}} | ||
{{KV|Caption Color (hint_color)|color255| | {{KV|Activator Caption (hint_activator_caption)|color255|since=AS|提示文本的颜色,由{{ent|!activator}}看见的。(在异形从群之后的游戏。)}} | ||
{{KV|Activator Caption (hint_activator_caption)|color255|since=AS| | {{KV|Force caption (hint_forcecaption)|choices|被墙体盖住是否还显示提示?(是否可以无视墙体显示提示?) | ||
{{KV|Force caption (hint_forcecaption)|choices| | :*0: No/不显示 | ||
:*0: No | :*1: Show when occluded/无视墙体显示}} | ||
:*1: Show when occluded}} | {{KV|Onscreen Icon (hint_icon_onscreen)|choices|提示的图标。}} | ||
{{KV|Onscreen Icon (hint_icon_onscreen)|choices| | {{KV|Offscreen Icon (hint_icon_offscreen)|choices|玩家视野之外采用的图标,应该是即将看不见的时候采用的图标?}} | ||
{{KV|Offscreen Icon (hint_icon_offscreen)|choices| | {{KV|Show offscreen (hint_nooffscreen)|choices|当图标在视野之外,是否还显示图标和箭头? | ||
{{KV|Show offscreen (hint_nooffscreen)|choices| | :*0: Show/显示 | ||
:*0: Show | :*1: Don't show/不显示}} | ||
:*1: Don't show}} | |||
{{KV|Bound Command (hint_binding)|string|If using the '''show key bindings''' setting for the '''Onscreen Icon''' or '''Offscreen Icon''', this field should be the command we want to show bindings for. Use {{ent|key_listboundkeys}} to see all bound keys.}} | {{KV|Bound Command (hint_binding)|string|If using the '''show key bindings''' setting for the '''Onscreen Icon''' or '''Offscreen Icon''', this field should be the command we want to show bindings for. Use {{ent|key_listboundkeys}} to see all bound keys.}} | ||
{{KV|Icon Height Offset (hint_icon_offset)|float|A height offset from the '''Target Entity''''s origin to display the hint.}} | {{KV|Icon Height Offset (hint_icon_offset)|float|A height offset from the '''Target Entity''''s origin to display the hint.}} |
Revision as of 07:13, 14 October 2019

env_instructor_hint
是一个存在于所有的 起源 游戏自从 Template:Name=Left 4 Dead 2 以来的点实体。 用于指示/提示玩家做一些事情,例如不要攻击队友!
待完善: This template is currently using deprecated suf or {{Lang}}-based translations. Please use the main {{Code class}} instead, which uses {{Autolang}}.
在源代码中,它由 class
CEnvInstructorHint
代表,定义于 env_instructor_hint.cpp
。
图标
键值
- Target Entity (hint_target) ([todo internal name (i)]) <目标实体名称 >
- 显示此实体提示的目标实体。 此实体必须是在客户端上复制的实体否则提示永远不会显示。实体info_target_instructor_hint 是专门用于解决此问题的,允许放在空处或者绑定到其他实体上,以至于在此实体的方位上显示提示。
- Positioning (hint_static) ([todo internal name (i)]) <choices>
- 要么将提示显示在Target Entity位置, 要么显示在HUD 位置(玩家屏幕上):
- 0: Follow the Target Entity./显示在 Target Entity
- 1: Show on the HUD/显示在HUD上.
- Allow invisible target (hint_allow_nodraw_target) ([todo internal name (i)]) <choices>
- 是否允许提示跟随设置了nodraw的实体? (非nodraw贴图指的是一种效果属性,可以阻止服务器向客户端传递此实体的任何数据,但不会删除此实体,也就代表客户端无法接受此实体的信息)
证实:EF_NODRAW?
- 0: End immediately on nodraw/当目标实体被nodraw则不跟随
- 1: Yes/跟随
- Caption (hint_caption) ([todo internal name (i)]) <字符串 >
- 提示的文本,最多100个字符。不支持中文。如果您需要中文,需要通过vscript脚本实现,请看下方的中文支持条目。
- Activator Caption (hint_activator_caption) ([todo internal name (i)]) <color255 > (存在于自
以来)
- 提示文本的颜色,由!activator看见的。(在异形从群之后的游戏。)
- Force caption (hint_forcecaption) ([todo internal name (i)]) <choices>
- 被墙体盖住是否还显示提示?(是否可以无视墙体显示提示?)
- 0: No/不显示
- 1: Show when occluded/无视墙体显示
- Onscreen Icon (hint_icon_onscreen) ([todo internal name (i)]) <choices>
- 提示的图标。
- Offscreen Icon (hint_icon_offscreen) ([todo internal name (i)]) <choices>
- 玩家视野之外采用的图标,应该是即将看不见的时候采用的图标?
- Show offscreen (hint_nooffscreen) ([todo internal name (i)]) <choices>
- 当图标在视野之外,是否还显示图标和箭头?
- 0: Show/显示
- 1: Don't show/不显示
- Bound Command (hint_binding) ([todo internal name (i)]) <字符串 >
- If using the show key bindings setting for the Onscreen Icon or Offscreen Icon, this field should be the command we want to show bindings for. Use key_listboundkeys to see all bound keys.
- Icon Height Offset (hint_icon_offset) ([todo internal name (i)]) <浮点型 >
- A height offset from the Target Entity's origin to display the hint.
- Size Pulsing (hint_pulseoption) ([todo internal name (i)]) <choices>
- Speed for which the icon should grow and shrink, as a way to nag the player about the object.
- 0: No Pulse
- 1: Slow Pulse
- 2: Fast Pulse
- 3: Urgent Pulse
- Alpha Pulsing (hint_alphaoption) ([todo internal name (i)]) <choices>
- Speed for which icon will become more or less transparent.
- 0: No Pulse
- 1: Slow Pulse
- 2: Fast Pulse
- 3: Urgent Pulse
- Shaking (hint_shakeoption) ([todo internal name (i)]) <choices>
- The icon can shake.
- 0: No Shaking
- 1: Narrow Shake
- 2: Wide Shake
- Timeout (hint_timeout) ([todo internal name (i)]) <整数 >
- The automatic timeout for the hint. 0 will persist until stopped with
EndHint
.
- Display Range (hint_range) ([todo internal name (i)]) <浮点型 >
- The visible range of the hint. 0 will show it at any distance.
- Show on First Sight (hint_auto_start) ([todo internal name (i)]) <布尔值 >
- When the player first has LOS to the target, it will automatically show for them.
only.
- Lesson Name (hint_name) ([todo internal name (i)]) <字符串 >
- Hints with the same lesson name use a common base and are treated as instances the same lesson type.
only.
- Display Limit (hint_display_limit) ([todo internal name (i)]) <整数 >
- The number of times a hint can be seen. 0 means unlimited.
only.
- Instance Type (hint_instance_type) ([todo internal name (i)]) <choices>
- How many instances of a single lesson type can be open or active at the same time.
only.
- 0: Multiple
- 1: Single Open (Prevents new hints from opening.)
- 2: Fixed Replace (Ends other hints when a new one is shown.)
- 3: Single Active (Hides other hints when a new one is shown.)
- Suppress rest before moving (hint_suppress_rest) ([todo internal name (i)]) <choices>
- Suppress the initial icon display in center of screen?
only.
- 0: No
- 1: Yes
- Only Local Player (hint_local_player_only) ([todo internal name (i)]) <布尔值 > (存在于自
以来)
- Shows the hint only to the first player to join/create the server.
注意:This keyvalue appears to have not been coded into the FGD correctly. You must put 0 for "No" and 1 for "Yes".
- Gamepad Bound Command (hint_gamepad_binding) ([todo internal name (i)]) <字符串 > (存在于自
以来)
- If using the show key bindings setting for the Onscreen Icon or Offscreen Icon, this field should be the command we want to show bindings for, when the user is using a console/non-keyboard controller of some kind (or PS3/X360).
Inputs
- ShowHint <目标名 >
- Start showing this hint. If an entity targetname is passed as the parameter, the hint is shown only to that entity.


- EndHint
- Stop showing the hint if it hasn't already timed out.
Outputs
中文支持
百度网盘:https://pan.baidu.com/s/1q8ndRsErtm_fy0bIFZFo4g 提取码: hcit,大小:10.3KB