Env instructor hint
< Zh
Jump to navigation
Jump to search

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)]) <字符串 >
- 如果使用了 show key bindings 设置,那么Onscreen Icon or Offscreen Icon, 则显示你想要显示的按键图标, 参见key_listboundkeys 查看支持的按键。
- Icon Height Offset (hint_icon_offset) ([todo internal name (i)]) <浮点型 >
- 以Target Entity'坐标为原点,设置高度偏移的值,那么提示会显示在坐标点+偏移的高度位置。
- Size Pulsing (hint_pulseoption) ([todo internal name (i)]) <choices>
- 图标效果,图标收缩的速度。
- 0: No Pulse/无
- 1: Slow Pulse/缓慢
- 2: Fast Pulse/快速
- 3: Urgent Pulse/非常快,紧急!
- Alpha Pulsing (hint_alphaoption) ([todo internal name (i)]) <choices>
- 图标会变透明和可见的速度。
- 0: No Pulse/无
- 1: Slow Pulse/缓慢
- 2: Fast Pulse/快速
- 3: Urgent Pulse/非常快,紧急!
- Shaking (hint_shakeoption) ([todo internal name (i)]) <choices>
- 图标会抖动。
- 0: No Shaking/不抖动
- 1: Narrow Shake/较窄的抖动
- 2: Wide Shake/较宽的抖动
- Show on First Sight (hint_auto_start) ([todo internal name (i)]) <布尔型 >
- 当玩家的LOS(视线)第一次看见时,会自动显示给所有人。
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.
- 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>
- 关闭图标?
only.
- 0: No
- 1: Yes
- Only Local Player (hint_local_player_only) ([todo internal name (i)]) <布尔型 > (存在于自
以来)
- 只显示给第一个加入服务器或者创建服务器的玩家。(异形从群之后的游戏。)
- Template:注意
- 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).

This article has been marked as a candidate for speedy deletion for the following reason:
Administrators / Moderators - Remember to check if anything links here and the page history before deleting.
The redirect page got deleted, therefore this page should too.
If you object to this decision, then please discuss why here (If you make a discussion section also create this redirect page). If this page doesn't meet the criteria for speedy deletion, then please remove this notice, but do not remove it from pages that you have created yourselfAdministrators / Moderators - Remember to check if anything links here and the page history before deleting.
输入
- ShowHint <目标名 >
- 开始显示提示. 如果参数填写了一个实体的名称,则只向此实体显示提示。


- EndHint
- 停止显示提示。
Base:
- AddContext <字符串 >
- 添加到实体的 Response Contexts/响应上下文列表。格式是
<key>:<value>
。
语法:
- ClearContext
- 从此实体的列表中删除所有上下文。
- ClearParent
- 从移动层次结构中删除该实体,使其可以自由移动。
- FireUser1 to FireUser4
- 触发相应的
OnUser
输出;详见 User Inputs and Outputs。
- Kill
- 从这个世界中删除此实体。
- KillHierarchy
- 功能类似
Kill
,尽管此实体与其父实体都被删除了,但比Kill
快一点。
- RemoveContext
- 从实体列表删除一个上下文。名字应与现有上下文进行匹配。
- SetParent <字符串 >
- 跟随此实体移动,详见 实体层级(依赖关系)。
- SetParentAttachmentMaintainOffset <字符串 >
- 同上,但没有传送。在接收到输入时,实体保持其相对于附件的位置。
- DispatchResponse <字符串 > 不存在于FGD!
- 向实体发送一个上下文。 详见 Response
和 Concept
.
- DispatchEffect <字符串 > (被移除于
以来) 不存在于FGD!
- 在实体的原点坐标设置一个特定效果;参见 List of Client Effects
。自从
求生之路后由粒子系统取代。
- RunScriptCode <字符串 > (存在于自
以来)
- 在接收输入的实体范围内执行一串 VScript 源代码。通过控制台触发时可能需要字符串引用。
修复:使用文本编辑器手动删除带有字符串的参数。
- SetLocalOrigin <coordinates > (存在于自
以来) 不存在于FGD!
- 将此实体设置到地图中的某个位置。如果此实体是某实体父级,那么它的子级也会随着移动。
输出
Base/基础:
- OnUser1 to OnUser4
- 这些输出将分别响应于
FireUser1
到FireUser4
输入。 详见 User Inputs and Outputs。
中文支持
百度网盘:https://pan.baidu.com/s/1q8ndRsErtm_fy0bIFZFo4g 提取码: hcit,大小:10.3KB