本模组目前为使用目标系统的生物(如僵尸、蜘蛛,但不包括猪灵……)添加了轻量级的包围机制和“比利时式”AI。该系统具有以下特性:
-
当生物未处于主动攻击状态时,会尝试避开那些正在追击同一目标的其它生物。其结果是,一大群生物在追击目标时会自动散开分布。
-
除非准备发起攻击,否则生物会尽量保持在你的攻击范围之外。结合上述机制,当距离足够近时,生物开始围绕玩家形成包围圈以切断其退路。
-
少量生物被允许随时发动攻击,这些攻击由一个阶段管理器动态轮换,以防止对同一目标重复攻击。这在被包围时能维持多线压力,同时仍允许采用风筝等战术操作;与那种一旦陷入敌群便迅速死亡的集群式遭遇战不同。
-
远程生物会尝试以避免误伤友军的方式进行射击。
-
计算开销非常低。整个寻路目标逻辑仅一百余行代码。
此外,且可能更为重要的是,本模组允许你通过 JSON 自定义生物的进攻 AI。该过程与其他“自建行为”类模组类似,可以描述为为生物编写类似 Origins 能力或 Psi 法术的效果。有关如何编写生物 AI 的更多信息,请参阅 Wiki。
你可以在我的 Discord 服务器提交反馈。
对战斗包围圈、比利时式 AI、其扩展内容、狼群行为或鸟群 flocking 算法感兴趣的人,可以参考以下论文。
This mod currently adds a lightweight encirclement and Belgian AI to mobs that use the goals system (zombies, spiders, not piglins...). This system has the following specs:
-
Mobs will attempt to avoid other mobs chasing the same target when not actively attacking. The result of this is that a horde of mobs will automatically fan out while still chasing down a target.
-
Mobs will attempt to stay out of your attack range unless they are preparing to attack. Combined with the above mechanic, mobs will begin to encircle the player to cut off escapes once close enough.
-
A small handful of mobs are permitted to attack at any moment, shuffled dynamically by a stage manager to prevent repeated attacks from the same target. This keeps up pressure on multiple fronts when encircled, while still allowing tactical play beyond kiting, unlike in a congregation-styled encounter where falling into the mob group generally spells swift death.
-
Ranged mobs will attempt to shoot in such a way as to avoid friendly fire.
-
Pretty computationally cheap. The entire pathing goal is just over 100 lines.
In addition, and perhaps more importantly, this mod allows you to use Json to customize mob attack AI. The process works similarly to other "build-your-own-behavior" mods, and can be described as writing Origins powers or Psi spells for mobs. For more information regarding how to write mob AI, consult the wiki.
You can submit feedback on my Discord server.
Those interested in combat circles, Belgian AI, expansions on it, wolf pack behavior, or boid flocking can consult these papers.
评论 0
登录后参与评分
还没有评论,来抢沙发吧