cg小白兔 发表于 2024-4-24 12:50:05

NPC Eyes Sight System - PRO. NPCs can see shadows! 1.3.1适配UE5.3










Update 1.3
+ Added the function of enabling the NPCEyesSight component.
+ Added the function of updating parameters in runtime.
+ Added the function of getting parameters.
Update 1.2:
+ Client-side calculations are now disabled by default. This can be enabled in the BP_NPCEyesSightProComponent.
Update 1.1.0 - Now you can also use static meshes in regular actors. For example, doors or windows.
Update 1.0.1 - small fix.

System for the best stealth games!
This system uses points on the actor's skeletal mesh to pinpoint the actor. For example, the entire character can be behind a wall but part of his hand will look out from around the corner, then the NPC Eyes System will find him. This system works very realistically and will always find a character where PawnSensing can't handle it. You can add as many points as you want anywhere for your project's needs. If an NPC turns its head, this system also follows its gaze. You can adjust the range and viewing angle.

In the PRO version, NPCs can now see the shadow of their opponents. For shadows, any points on the skeletal mesh are still used. Now in the PRO version, you can enable the option and NPCs will be able to see the target only if it is currently illuminated by a color source. This also works for all points on the skeletal mesh. Everything is very easy to use. You can assign a different reaction if the NPC sees a shadow or your character.

All code is written in C ++ and works in the background thread for the best performance.
NPC Eyes Sight System - Simple version.

Technical Details
Features:
Works in the background thread for the best performance.
This system uses points on the actor's skeletal mesh to pinpoint the actor.
NPCs can now see the shadow of their opponents
You can assign a different reaction if the NPC sees a shadow or your character.
All code is written in C ++
Doesn't require knowledge of C ++
Code Modules:
NPCEyesSightProComponent(Type: Runtime)
NPCEyesPointsPro(Type: Runtime)
Number of Blueprints: 2 component and 4 BP for demo.
Number of C++ Classes: 2
Network Replicated: Yes
Supported Development Platforms: Win64
Supported Target Build Platforms: Win64
Documentation: Link , Discord
Example Project: Included
Important/Additional Notes: None


更新 1.3
+ 增加了启用 NPCEyesSight 组件的功能。
+ 添加了在运行时更新参数的功能。
+ 添加了获取参数的功能。
更新 1.2:
+ 现在默认禁用客户端计算。这可在 BP_NPCEyesSightProComponent 中启用。
更新 1.1.0 - 现在您还可以在常规角色中使用静态网格。例如,门或窗。
更新 1.0.1 - 小修复。

最佳隐形游戏系统!
该系统使用演员骨骼网格上的点来精确定位演员。例如,整个角色可以在墙后面,但他的部分手会从墙角向外看,这时 NPC 眼睛系统就会发现他。该系统工作起来非常逼真,总是能在 PawnSensing 无法处理的地方找到角色。您可以根据项目需要在任何地方添加任意点。如果 NPC 转过头来,该系统也会跟踪其目光。您可以调整范围和观察角度。

在专业版中,NPC 现在可以看到对手的影子。对于阴影,仍然使用骨骼网格上的任何点。现在,在专业版中,您可以启用该选项,只有当目标当前被彩色光源照亮时,NPC 才能看到目标。这也适用于骨骼网格上的所有点。一切都非常简单易用。如果 NPC 看到影子或你的角色,你可以指定不同的反应。

所有代码均使用 C ++ 编写,并在后台线程中运行,以获得最佳性能。
NPC 视觉系统 - 简易版。

技术细节
特点
在后台线程中运行,以获得最佳效果。
该系统使用演员骨骼网格上的点来精确定位演员。
NPC 现在可以看到对手的影子
如果 NPC 看到影子或你的角色,你可以指定不同的反应。
所有代码均用 C ++ 编写
不需要 C++ 知识
代码模块:
NPCEyesSightProComponent(Type: Runtime)
NPCEyesPointsPro(Type: Runtime)
蓝图数量: 2 个组件和 4 个用于演示的 BP。
C++ 类数量:2
网络复制: 是
支持的开发平台:Win64 Win64
支持的目标构建平台:Win64 Win64
文档 链接 , Discord
示例项目: 已包含
重要/附加说明: 无




页: [1]
查看完整版本: NPC Eyes Sight System - PRO. NPCs can see shadows! 1.3.1适配UE5.3