Space Engineers

Space Engineers

Not enough ratings
Transponder for Whip's Turret Based Radar
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
160.042 KB
9 Jan, 2021 @ 5:09am
13 Sep, 2021 @ 2:51pm
3 Change Notes ( view )

Subscribe to download
Transponder for Whip's Turret Based Radar

Description
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://test-steamproxy.haloskins.io/sharedfiles/filedetails/?id=2197412752

License/reuse

This is literally <200 lines of code, use it for whatever just credit me I guess.
6 Comments
Vokun Vulon 4 May, 2024 @ 9:01am 
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  [author] 3 Apr, 2022 @ 11:14am 
@merchant zac Yeah should work fine, have you made sure you have an antenna on both grids?
Merchant Zac 2 Apr, 2022 @ 4:45pm 
does this still work because im having a hard time setting it up
Natomic  [author] 13 Sep, 2021 @ 2:55pm 
@Whiplash141 Thanks, I've updated the script
Whiplash141 13 Sep, 2021 @ 9:09am 
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 11 Feb, 2021 @ 7:26pm 
Nice :)