Space Engineers

Space Engineers

Not enough ratings
Medbay Checkpoint System
   
Award
Favorite
Favorited
Unfavorite
Type: Mod
Mod category: Script
File Size
Posted
Updated
549.698 KB
9 Jun, 2018 @ 9:00am
15 Nov, 2018 @ 9:54am
7 Change Notes ( view )

Subscribe to download
Medbay Checkpoint System

Description
This mod changes the respawn behavior in a way that it always forces the player to spawn at the nearest medbay possible.

So if there is a Medbay which is turned on, has power and is functional nearby the player gets teleported there immediatly after respawn. Medbays of enemies or neutrals are to be ignored.

Sadly it seems like I cannot filter the medbays in the respawn screen. So players can see every medbay but no matter which they choose, they will always be teleported to the nearest of their death locations.

This has a bit of a side effect. Usually you cannot spawn at a medbay which is not yet streamed from the server. So if a Player happens to be teleported real far away it may take a bit till the player can see everything and the area is loaded. Once I figured out how to filter the medbay list this issue will not be existent anymore since you can only select one medbay.

It should also work with modded medbays, but I havent tested that yet. Feedback on that is very welcome.
13 Comments
LordTylus  [author] 6 Feb, 2019 @ 9:01am 
Yeah indeed,

actually I am really happy about that. I mean the Mod API is fairly limited and I was not able to do it like the new update will do it.

So one mod less to take care off :-)
spiritplumber 5 Feb, 2019 @ 4:34pm 
Looks like this is going to go into vanilla! Good job
Splitsie 13 Dec, 2018 @ 4:15am 
Nice work, this seems like a really cool idea, I've wanted a way to prevent respawn teleporting and I think this will work nicely :)
LordTylus  [author] 15 Nov, 2018 @ 9:56am 
Hi, today I found the time to check the other mod out. It was fairly simple to determine which medbays need to be ignored.

I pushed an update I would be happy if you could verify for me if its also works fine on your server.
Darian Stephens 10 Nov, 2018 @ 10:16am 
That's extremely helpful. I had to remove Independent Survival from my server recently due to outcry about respawning in the planet's core, I'd love to be able to add it back safely.
LordTylus  [author] 10 Nov, 2018 @ 2:52am 
Ahh thats indeed a bit of info that is helpful.

I am only checking if the medbay has a place where the Player could respawn and if its enabled and what not to do so. If the Medbay is not meant to be respawned at the location it respawns you could be anywhere. for example at the centerof the planet.

So Ill check the other mod. Maybe I find some info there on how to ignore these medbays, or even filter them from the respawn list. I am not sure If I am able to do so right away but Ill definetly take a look at it.
Darian Stephens 9 Nov, 2018 @ 9:56pm 
I tracked some of the suit grids (Invisible ships that represent your suit's refinery, assembler, fuel and medbay), and it seemed that they either stopped following the player after death and fell in to the center of the planet, or just went to the center since the player was now null.
You can't normally respawn at a suit medbay, they just refuse to allow it. I don't know if that particular bit of info is useful, but any bit could help.
LordTylus  [author] 9 Nov, 2018 @ 9:34am 
Hello Darian, thank you for your report.

if there is a Medbay inside a planet and that Medbay is the closest to the location you died at, you will be teleported there. So that sounds working as intended.

However:

I wonder why there are Medbays inside a planet in the first place. It sounds like a bug in the Independent Survival Mod but since I dont know that mod, Ill check it out.

Does this behavior also occur if you die right next to a regular medbay, or only if you are quite far away from your regular medbays (like on the other side of the planet)?

I am not sure if I am able to generally blacklist these Medbays, but I would assume if you have a "Suit Medbay" with you that it should also be targeted by the mod to basically spawn you at that medbay as its on your suit and therefore closest to year death location.

So I would be very happy with a bit more information so I can figure out the cause and solution for the problem.
Darian Stephens 8 Nov, 2018 @ 9:17pm 
Do you suppose you could blacklist the Suit Medbay from the Independent Survival mod? There are a bunch of little medbays in the center of the planet after you die with it, and this mod sends you to them for some reason.
spiritplumber 25 Aug, 2018 @ 3:57am 
Thanks!