Space Engineers

Space Engineers

评价数不足
Froid's Fleet Threat Indicator v1.1
   
奖励
收藏
已收藏
取消收藏
标签: other_script
文件大小
发表于
更新日期
53.537 KB
2020 年 9 月 5 日 上午 6:03
2022 年 2 月 6 日 上午 4:19
7 项改动说明 ( 查看 )

订阅以下载
Froid's Fleet Threat Indicator v1.1

在 Sigmund Froid 的 1 个合集中
WeaponCore Ingame Scripts
13 件物品
描述
Hello it's Froid again! Today I bring you this new script using both WeaponCore's and Defense Shield's API. The purpose? This script will detect enemy grids around you and calculate the thread level of the entire fleet (the script will not distinguish between different enemy factions). However this script will only give an estimate of how the battle will end, specific weapon and shield configs won't be considered.

Features
  • Soundblocks with the tag "[Proximity]" will play the "Enemy detected" sound whenever the amount of detected hostiles increases.
  • Soundblocks with the tag "[Alarm]" will alert you about fleets with an higher threat level than 7 (configurable in script)
  • Soundblocks with the tag "[Ambient]" will play some battle music.
  • LCDs with the tag "[Threat-LCD]" will display a message depending on the relative threat.
  • LCDs with the tag "[Alarm-LCD]" will display the "Danger" texture if you encounter fleets with an higher threat level than 7 (configurable in script)
  • Lights with the tag "[Alarm-Light]" will turn red and blink. The script will save whether they've been on or off before and their color and reset them to those values.

Planned
  • Next two days: bug fixes.
  • Allied ships transmid their strength to calculate the threat level fleet vs fleet.
  • Better alignment on non-LCD-Block screens

Need help with the setup?
Give this a read: https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=2228900874

Feel free to submit ideas.

Bugs And Issues?
=======================
Leave a comment in the bugs discussion.

Want to learn how to use the WeaponCore PB API?
Check this out: https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=2178802013

My Workshop

Support Darkstar (Patreon)[www.patreon.com]


I have a github now:
https://github.com/SilicDev/WeaponCoreScripts
21 条留言
Titan Nya 2023 年 12 月 20 日 上午 10:35 
Well... Got some exceptions about input string, trying to figure out what is happening (commenting and decommenting part of the script and adding some echo (and making another one a comment as it seems to clutter the output) to figure out where the problem is...)
Problems found:
-line 230 to 233 make an exception (I don't have an LCD for it yet (well cockpit have) no check if no lcd present or something?
-line 368 Dictionary changed to IReadOnlyDictionary and this part is solved (thx to an update as github have last change listed 5 months ago)

Any chance to update or did you quit modding?
Sir Connery 2022 年 7 月 15 日 下午 5:26 
Wow. Is it possible to add Timer Block activations for specific threat levels instead of Soundblocks?
KPD 2021 年 10 月 27 日 上午 9:17 
Ah alright thank you!
Sigmund Froid  [作者] 2021 年 10 月 27 日 上午 8:21 
Depending on shield strength it adds to the relative threat.
KPD 2021 年 10 月 27 日 上午 7:42 
How does this config with the shields?
Sigmund Froid  [作者] 2021 年 7 月 23 日 上午 2:36 
Should be fixed now, sorry.
mppc2001 2021 年 7 月 22 日 上午 3:25 
Sadly not doing anything. Hope it gets updated.
jbo96 2021 年 5 月 31 日 上午 11:19 
@Sigmund Froid, Does this script still function? I cannot seem to get it to work. Thanks
sed_and_awk 2021 年 2 月 4 日 上午 10:52 
Is this still being updated? really want the fleet vs fleet part
Sigmund Froid  [作者] 2020 年 9 月 16 日 上午 12:51 
WeaponCore considers connected grids as one threat I believe, so it might be related to that. (Btw those connected grids will still be targetable which enables players to target rotor turrets directly)