Space Engineers

Space Engineers

评价数不足
Transponder for Whip's Turret Based Radar
   
奖励
收藏
已收藏
取消收藏
标签: other_script
文件大小
发表于
更新日期
160.042 KB
2021 年 1 月 9 日 上午 5:09
2021 年 9 月 13 日 下午 2:51
3 项改动说明 ( 查看 )

订阅以下载
Transponder for Whip's Turret Based Radar

描述
About

This script will broadcast information about the grid it is placed on.
It uses the same "network" as Whip's TBR script and is basically just the friendly
broadcasting bit of TBR. This can be used to prevent friendly fire for scripts that support it (e.g. Whip's AI Slaving script).

Why not just use Whips Turret Based Radar instead?

This script exists because I didn't want to load a large and complex script on all of my grids simply to stop them being torn asunder by friendly fire. Whip's TBR is awesome but I'm a fan of not paying for what I don't use.

Config

Currently this script has two config options: alligence, and grid type.

The alligence option affects what type of target you are seen as by the radar. The following are valid values:

  • 0: Neutral
  • 1: Enemy
  • 2: Friendly

The grid type option is implicitly set to the current type of grid (large or small) but can be explicitly overriden by setting "large grid = true/false"

After changing the CustomData, you will need to recompile.

Thanks

Thanks to Whip for writing clean, readable code

Similar scripts

Whip’s Turret Based Radar WC Addon: https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=2197412752

License/reuse

This is literally <200 lines of code, use it for whatever just credit me I guess.
6 条留言
Vokun Vulon 2024 年 5 月 4 日 上午 9:01 
I'm looking for something to pair with this that will solve the FF problem, but we use weaponcore, and I know how to string their turrets together directly via the weaponcore turret settings, so we don't need a whole turret slaving script, I also am unsure if Whips turret slaving script requires turrets to be slaved to the program for them not to fire upon friendlies.
Could you point me in the direction of a script that literally just says "I'm a friendly vessel, dont shoot through me!" and thats it?
I'd rather not use Whips just for the function of not blasting holes thru my own ships, we don't want the slave function, just anti-friendly-fire.
Natomic  [作者] 2022 年 4 月 3 日 上午 11:14 
@merchant zac Yeah should work fine, have you made sure you have an antenna on both grids?
Merchant Zac 2022 年 4 月 2 日 下午 4:45 
does this still work because im having a hard time setting it up
Natomic  [作者] 2021 年 9 月 13 日 下午 2:55 
@Whiplash141 Thanks, I've updated the script
Whiplash141 2021 年 9 月 13 日 上午 9:09 
As a heads up, the broadcast flags have expanded a bit:

Neutral = 0
Enemy = 1
Friendly = 2
Locked = 4
LargeGrid = 8
SmallGrid = 16

You can simply add the relevant values together to combine the flags.

Example: Large grid enemy would be 1+8=9.

The radar script is still backwards compatible with the old flags, just if you want your ship type to be correctly displayed, you'll need to add the large/small grid flag to what you broadcast :)
Whiplash141 2021 年 2 月 11 日 下午 7:26 
Nice :)