RimWorld

RimWorld

Not enough ratings
Highlight Enemies
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.4, 1.5
File Size
Posted
Updated
1.468 MB
1 Nov, 2023 @ 3:28am
21 Apr @ 5:17am
17 Change Notes ( view )

Subscribe to download
Highlight Enemies

Description
Add a toggle button to highlight enemies with skull marks when enabled, arts modified from flaticon website (trying not to use link here)
Special thanks to @Fiendix for advices

When there are new enemies to mark, please toggle it off and on again.

This is due to a performance issue that I could not have a fast enough way to check all enemy targets in the current map in WorldComponentTick, so not able to make it dynamically.

Any idea to solve this problem is appreciated!


添加一个切换按钮,启用时以骷髅标记高亮敌人,图标修改自flaticon网站
特别感谢@Fiendix 给出的图标建议

当新的敌人出现时,需要重新打开一次。

这是因为我还没有找到一个比较高效的办法检查地图上的敌对单位,非常期待有人提出可行的方案来解决这个问题。目标是当功能打开的时候能够一直显示敌对单位,包括新进入地图的单位和发狂的单位等等。

------------------------

2024-02-08 Update:
通过线程提高了性能,现在可以一直打开不关闭而很少影响主线程性能。并且不再检测地图上所有物品,而是检测所有可攻击物品以及具有攻击点数的建筑,所以不再会高亮显示墙,沙袋,等等防御建筑。

Improved performance using thread, now we are able to keep it up all the time and have minor impact on main thread performance. It will no longer scan everything on the map, but instead every IAttackTarget, and every building not belong to the colony. So it will not highlight walls, sandbags, etc.


17 Comments
Pos 5  [author] 21 Apr @ 8:53am 
@晓山alreShan 应该不会。。。
晓山alreShan 21 Apr @ 8:28am 
阿巴阿巴,我还在1.4,会更新1.4的部分吗:steamsad:
晓山alreShan 21 Apr @ 3:37am 
@Pos 5
芜湖————欢呼雀跃:steamhappy:
Pos 5  [author] 21 Apr @ 1:59am 
@晓山alreShan 添加了模组设置:1. 是否默认标记敌人 2. 是否标记隐形敌人 3. 是否标记迷雾中的敌人
Pos 5  [author] 14 Apr @ 9:49am 
@晓山alreShan 最近可能修复不了,要过一阵子,而且现在工坊上传模组更新非常的困难,天天超时
晓山alreShan 14 Apr @ 7:11am 
这个模组实在是方便,让我爱不释手:steamthumbsup:,希望能在QoL上更进一步。:waxquail:
晓山alreShan 14 Apr @ 7:11am 
关于QoL的一些建议:
1.{
还是想要 “是否自动打开功能” 的配置选项,或者 “是否显示迷雾中的敌人” 的选项。
进新地图或者加载存档的时候 会自动打开,而且因为会高亮迷雾中的敌人,不小心就会看到。
我喜欢玩 CECAI 5000 ,喜欢战斗,对我来说因为这个问题,有时候会少了战斗的突然和未知所带来的乐趣。
虽然用 TD find libmark that pawn ,也能达到这个模组的效果,但是就没有这个模组一键切换方便。
}
2. 希望能添加 标记透明度 的配置选项
晓山alreShan 30 Mar @ 2:31am 
@Pos 5 确认修复
Pos 5  [author] 29 Mar @ 3:49am 
@晓山alreShan 现在好了吗
晓山alreShan 29 Mar @ 1:37am 
赞赏!:D ,模组很好用,从虫子尸体海里面找倒地虫子真的是太方便了。:steamthumbsup: