Dont teleport home from the new cargoship. you cant play anymore. you are under the map then.
any fix for this ?
any fix for this ?
The following patch seems to work for me. Interesting that an admin can noclip and will float above the ship and stay locked to it as well. Anyway, this checks that the player is on the ship and will block teleport.
--- NTeleportation.cs 2018-10-06 07:16:55.447926426 -0500
+++ NTeleportation.cs.cargoship 2018-10-06 07:17:59.751919811 -0500
@@ -326,6 +326,7 @@
{"TPTargetBuildingBlocked", "You can't teleport in a building blocked zone!"},
{"TPTargetInsideBlock", "You can't teleport into a foundation!"},
{"TPSwimming", "You can't teleport while swimming!"},
+ {"TPCargoShip", "You can't teleport from the cargo ship!"},
{"TPCrafting", "You can't teleport while crafting!"},
{"TPBlockedItem", "You can't teleport while carrying: {0}!"},
{"TownTP", "You teleported to town!"},
@@ -2303,6 +2304,7 @@
private string CheckPlayer(BasePlayer player, bool build = false, bool craft = false)
{
+ var onship = player.GetComponentInParent<CargoShip>();
if (!player.IsAlive())
return "TPDead";
if (player.IsWounded())
@@ -2311,6 +2313,8 @@
return "TPBuildingBlocked";
if (player.IsSwimming())
return "TPSwimming";
+ if (onship)
+ return "TPCargoShip";
if (!craft && player.inventory.crafting.queue.Count > 0)
return "TPCrafting";
return null;