敌方锁定
Enemy Lock-On 是一款客户端侧的 Fabric 模组,其灵感来源于动作游戏中的锁定系统,添加了平滑且高度可配置的实体锁定瞄准功能。
锁定附近的实体,以完整的渲染速度平滑追踪它们,在目标之间循环切换,自动补偿弹道下坠,或启用持续搜索附近敌人的持久锁定模式。
锁定瞄准
默认情况下,按下 < 键即可激活普通瞄准模式。
激活后,Enemy Lock-On 会根据配置的 检测半径(Detection Radius) 和 最大目标距离(Maximum Target Distance),在你的准星周围寻找有效的实体。
目标会根据你当前的视角方向进行优先级排序,这允许你刻意选择想要锁定的目标,而不是总是选择恰好最近的实体。
当普通瞄准处于激活状态时,底部 HUD 上方会显示 Targetting entity。
持久锁定
Enemy Lock-On 还包含一种持久锁定模式。
默认情况下,按下 ALT + < 键可切换 持久锁定(Persistent Lock-On)。
启用时:
- 最近的合法实体将被自动锁定。
- 如果当前目标死亡或变得无效,可以自动获取另一个附近的合法实体。
- 如果附近当前没有合法实体,持久锁定将保持启用状态并继续搜索。
- 当该模式处于活动状态时,HUD 会显示
Targetting lock-on: ON。
持久锁定也可以通过配置菜单完全启用或禁用。
目标循环
锁定某个实体后,你可以手动在附近的有效目标之间循环切换。
LEFT Arrow → 上一个目标
RIGHT Arrow → 下一个目标
目标的顺序是根据它们与玩家的实际 3D 距离 排列的。
循环会在两个方向上环绕,并继续遵守你的瞄准规则,包括:
- 最大目标距离
- 实体类型过滤器
- 视线遮挡
- 已死亡、已移除或其他无效的实体
循环控制也可以通过 Minecraft 的正常按键绑定设置进行修改。
锁定标记
被锁定的实体将在其 击打盒的中心 处标记一个小方块。
此标记代表 Enemy Lock-On 追踪的主要点。
在获取目标时:
- 目标标记平滑淡入。
- 正常的 Minecraft 准星平滑淡出。
- 摄像机开始追踪实体的中心。
当被锁定的实体死亡时:
- 标记淡出。
- 标记在消失过程中逐渐变为 红色。
- 正常准星重新淡入。
如果在之后获取了另一个目标,新标记将淡入,同时准星再次淡出。
平滑摄像机追踪
Enemy Lock-On 的瞄准并不局限于 Minecraft 正常的 20 TPS 游戏刻速率。
摄像机追踪使用客户端的 渲染帧 进行更新,允许在更高的帧率下保持流畅的移动,并使摄像机的行为更接近自然的鼠标移动。
实体运动也在游戏刻之间进行插值处理,防止移动的目标看起来像是在明显的 20 TPS 步骤中更新。
提供几种可配置的平滑方法:
- Instant(即时)
- Linear(线性)
- Easing - Sine(缓动 - 正弦)
- Easing - Quadratic(缓动 - 二次方)
- Easing - Cubic(缓动 - 三次方)
- Smoothstep
- Smootherstep
- Exponential(指数)
- Damped Spring(阻尼弹簧)
平滑强度(Smoothing Strength) 设置控制摄像机追随目标的激进程度。
3D 目标检测
检测在整个 3D 空间 中进行。
检测半径考虑了以下位置的实体:
- 你的左侧或右侧
- 你的上方或下方
- 准星周围的对角角度
这意味着垂直瞄准的行为方式与水平瞄准相同,而不是有效地使用扁平化的检测区域。
检测半径
控制实体在被忽略为潜在目标之前,距离你的准星方向有多远。
默认检测半径为 24。
较小的值需要更精确的瞄准,而较大的值则更容易获取附近的实体。
最大目标距离
控制实体在被认为不再是有效目标之前,距离有多远。
默认最大目标距离为 24 格。
弓与弩的补偿
Enemy Lock-On 在使用弓和弩时,可以自动补偿弹道下坠。
这两个选项默认均为 启用,并且可以独立配置。
当选中支持的武器时,模组会考虑:
- 到目标的距离
- 你与目标之间的高度差
- 弹丸重力
- 弹丸阻力
然后,摄像机将在必要时自动向上瞄准,以便远程射击能够补偿箭矢的下落。
目标越远,可以应用的仰角就越大。
弓的补偿是基于 满充能的弓 设计的,而弩则使用其相应的弹丸行为。
即使弹道补偿导致摄像机略微高于实体中心瞄准,方形目标标记仍保持在实体的实际中心。
目标类型
每个主要目标类别都可以独立启用或禁用:
- 敌对生物(Hostile Mobs)
- 玩家(Players)
- 被动生物(Passive Mobs)
这使得 Enemy Lock-On 可以配置为专注于战斗的瞄准或更广泛的实体追踪。
视线要求
当启用 Require Line of Sight(需要视线) 时,在当前无法被玩家看到的实体将在目标选择时被忽略。
这也适用于在目标之间循环或自动搜索其他实体时。
自动重新锁定
当启用 Auto Retarget(自动重新锁定) 时,失去当前目标不会立即结束普通锁定。
如果目标死亡或以其他方式变得无效,Enemy Lock-On 会搜索另一个合适的附近实体,并在可能时将锁定转移过去。
当禁用自动重新锁定时,失去当前目标将直接结束普通瞄准。
持久锁定单独运行,即使当前没有有效的目标,它也可以保持活动状态。
自适应 HUD
敌对锁定(Enemy Lock-On)将目标锁定状态直接显示在 Minecraft 底部 HUD 的上方。
该状态水平居中,并自动兼容占用屏幕相同底部区域的模组化 HUD 元素。
普通锁定显示:
Targetting entity
持久锁定显示:
Targetting lock-on: ON
当相应的锁定模式被禁用时,消息将消失。
配置
在游戏中默认按 O 键打开敌对锁定(Enemy Lock-On)设置。
配置菜单包含以下选项:
- 平滑方法
- 平滑强度
- 检测半径
- 最大目标距离
- 自动重新锁定
- 需要视线
- 敌对生物锁定
- 玩家锁定
- 被动生物锁定
- 弓箭瞄准补偿
- 弩箭瞄准补偿
- 持久锁定
你还可以通过 Minecraft 正常的按键绑定设置更改敌对锁定(Enemy Lock-On)的控制方式。
如果安装了 Mod Menu,你可以在模组界面直接从敌对锁定(Enemy Lock-On)中点击 Configure 按钮,无需进入世界即可打开配置菜单。
配置会在游戏会话之间保存。
Enemy Lock-On
Enemy Lock-On is a client-side Fabric mod that adds smooth, highly configurable entity lock-on targeting inspired by lock-on systems found in action games.
Lock onto nearby entities, smoothly track them at full render speed, cycle between targets, automatically compensate for projectile drop, or enable a persistent targeting mode that continuously searches for nearby enemies.
Lock-On
Press < by default to activate normal targeting.
When activated, Enemy Lock-On searches for a valid entity around your crosshair using the configured Detection Radius and Maximum Target Distance.
Targets are prioritized around your current view direction, allowing you to deliberately choose what you want to lock onto rather than always selecting whichever entity happens to be closest.
While normal targeting is active, Targetting entity is displayed above the bottom HUD.
Persistent Lock-On
Enemy Lock-On also includes a persistent targeting mode.
Press ALT + < by default to toggle Persistent Lock-On.
While enabled:
- The nearest valid entity is automatically targeted.
- If the current target dies or becomes invalid, another valid nearby entity can automatically be acquired.
- If no valid entities are currently nearby, Persistent Lock-On remains enabled and continues searching.
- The HUD displays
Targetting lock-on: ON while the mode is active.
Persistent Lock-On can also be completely enabled or disabled through the configuration menu.
Target Cycling
While locked onto an entity, you can manually cycle through nearby valid targets.
LEFT Arrow → previous target
RIGHT Arrow → next target
Targets are ordered by their actual 3D distance from the player.
Cycling wraps around in both directions and continues respecting your targeting rules, including:
- Maximum Target Distance
- Entity-type filters
- Line of Sight
- Dead, removed, or otherwise invalid entities
The cycling controls can also be changed through Minecraft's normal keybind settings.
Lock-On Marker
Locked entities are marked with a small square directly at the center of their hitbox.
This marker represents the primary point Enemy Lock-On tracks.
When acquiring a target:
- The target marker smoothly fades in.
- The normal Minecraft crosshair smoothly fades out.
- The camera begins tracking the entity's center.
When the targeted entity dies:
- The marker fades out.
- The marker gradually transitions to red as it disappears.
- The normal crosshair fades back in.
If another target is acquired afterward, the new marker fades in while the crosshair fades out again.
Smooth Camera Tracking
Enemy Lock-On's targeting is not limited to Minecraft's normal 20 TPS game-tick rate.
Camera tracking updates using the client's rendered frames, allowing movement to remain fluid at higher frame rates and making the camera behave much closer to natural mouse movement.
Entity movement is also interpolated between game ticks, preventing moving targets from appearing to update in noticeable 20 TPS steps.
Several configurable smoothing methods are available:
- Instant
- Linear
- Easing - Sine
- Easing - Quadratic
- Easing - Cubic
- Smoothstep
- Smootherstep
- Exponential
- Damped Spring
The Smoothing Strength setting controls how aggressively the camera follows the target.
3D Target Detection
Detection works across full 3D space.
The Detection Radius accounts for targets:
- To your left or right
- Above or below you
- At diagonal angles around your crosshair
This means vertical targeting behaves the same way as horizontal targeting instead of effectively using a flattened detection area.
Detection Radius
Controls how far away from your crosshair direction an entity can be before it is ignored as a potential target.
The default Detection Radius is 24.
A smaller value requires more precise aiming, while a larger value makes acquiring nearby targets easier.
Maximum Target Distance
Controls how far away an entity can be before it is no longer considered a valid target.
The default Maximum Target Distance is 24 blocks.
Bow & Crossbow Compensation
Enemy Lock-On can automatically compensate for projectile drop when using bows and crossbows.
Both options are enabled by default and can be configured independently.
When a supported weapon is selected, the mod considers:
- Distance to the target
- Height difference between you and the target
- Projectile gravity
- Projectile drag
The camera then automatically aims higher when necessary so long-range shots can compensate for arrow drop.
The farther away the target is, the more elevation can be applied.
Bow compensation is designed around a fully charged bow, while crossbows use their appropriate projectile behavior.
The square target marker remains attached to the entity's actual center even when projectile compensation causes the camera to aim slightly above it.
Target Types
Each major target category can be enabled or disabled independently:
- Hostile Mobs
- Players
- Passive Mobs
This allows Enemy Lock-On to be configured for combat-focused targeting or broader entity tracking.
Line of Sight
When Require Line of Sight is enabled, entities that cannot currently be seen by the player are ignored during target selection.
This also applies when cycling between targets or automatically searching for another entity.
Automatic Retargeting
When Auto Retarget is enabled, losing the current target does not immediately end normal lock-on.
If the target dies or otherwise becomes invalid, Enemy Lock-On searches for another suitable nearby entity and transfers the lock when possible.
When Auto Retarget is disabled, losing the current target ends normal targeting instead.
Persistent Lock-On behaves separately and can remain active even when no valid targets currently exist.
Adaptive HUD
Enemy Lock-On displays its targeting status directly above Minecraft's bottom HUD.
The status is horizontally centered and automatically accounts for compatible modded HUD elements that occupy the same bottom section of the screen.
Normal lock-on displays:
Targetting entity
Persistent Lock-On displays:
Targetting lock-on: ON
The message disappears when the corresponding targeting mode is disabled.
Configuration
Press O by default to open the Enemy Lock-On settings while in-game.
The configuration menu includes options for:
- Smoothing Method
- Smoothing Strength
- Detection Radius
- Maximum Target Distance
- Auto Retarget
- Require Line of Sight
- Hostile Mob Targeting
- Player Targeting
- Passive Mob Targeting
- Bow Aim Compensation
- Crossbow Aim Compensation
- Persistent Lock-On
Enemy Lock-On's controls can also be changed through Minecraft's normal keybind settings.
If Mod Menu is installed, Enemy Lock-On provides a Configure button directly from the Mods screen, allowing the configuration menu to be opened without entering a world.
Configuration is saved between game sessions.
评论 0
登录后参与评分
还没有评论,来抢沙发吧