Transfer valve and VR sleeper

This commit is contained in:
Artur
2020-06-09 11:05:54 +03:00
parent 33c5dfb28e
commit 19949b842b
4 changed files with 62 additions and 22 deletions
-2
View File
@@ -113,12 +113,10 @@
to_chat(occupant, "<span class='warning'>The virtual world does not support the creation of new virtual avatars, aborting transfer</span>")
else
to_chat(vr_mob, "<span class='notice'>Transfer successful! You are now playing as [vr_mob] in VR!</span>")
M.ui_close(M) //The UI can get stuck open while in VR, which can be annoying
. = TRUE
if("delete_avatar")
if(!occupant || usr == occupant)
if(vr_mob)
SStgui.try_update_ui(occupant, src)
cleanup_vr_mob()
else
to_chat(usr, "<span class='warning'>The VR Sleeper's safeties prevent you from doing that.</span>")