AutoReferee

AutoReferee

9.1k Downloads

If unable to teleport to a death point (artp -d)

itsmartin opened this issue ยท 2 comments

commented

Sometimes on typing /artp -d gives "cannot teleport to location, invalid or unsafe". I'm not clear on what criteria are used to determine unsafeness, but it's frustrating to get no clue of where a death occurred.

Suggest either: output the unsafe coords as part of the message, or teleport the spectator to the nearest safe location. (E.g, for a void death, simply move it up to y=0 so the spectator can see where they fell out).

commented

"Unsafe" is a bit hard to explain. Teleportation always tries to place you somewhere with a line of sight to the object/location. Unsafe means that it couldn't find a location to put you that both (a) can see the thing you are teleporting to and (b) is far enough away to not interfere. If a player has encased themselves in a 1x2x1 box, you don't want to teleport to them, since you will either (a) not be able to see them or (b) end up right on top of them. This is all because my teleportation code is a bit naive.

I will definitely add coords to the message. I'll try to improve some of the teleportation code so that it makes some sane compromises when it comes to "unsafe" locations.

commented

Hmm, I would think in the case of -d, it might make sense to move to the actual death point, rather than somewhere looking at it.