From 41d4f19e785ed809428aa506dc63ec320cc6355f Mon Sep 17 00:00:00 2001 From: Remie Richards Date: Sun, 17 Jul 2016 14:58:05 +0100 Subject: [PATCH] allows vr sleepers to specify an outfit datum for the virtual human, defaulting to a coloured jumpsuit+shoes. --- code/modules/VR/vr_sleeper.dm | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/code/modules/VR/vr_sleeper.dm b/code/modules/VR/vr_sleeper.dm index 039ffc9a594..475bb64ec52 100644 --- a/code/modules/VR/vr_sleeper.dm +++ b/code/modules/VR/vr_sleeper.dm @@ -15,7 +15,7 @@ var/static/list/available_vr_spawnpoints var/vr_category = "default" //Specific category of spawn points to pick from var/allow_creating_vr_humans = TRUE //So you can have vr_sleepers that always spawn you as a specific person or 1 life/chance vr games - + var/outfit = /datum/outfit/vr_basic /obj/machinery/vr_sleeper/New() ..() @@ -162,6 +162,9 @@ vr_human.undershirt = H.undershirt vr_human.underwear = H.underwear vr_human.updateappearance(1,1,1) + if(outfit) + var/datum/outfit/O = new outfit() + O.equip(vr_human) if(transfer && H.mind) H.mind.transfer_to(vr_human) @@ -173,3 +176,9 @@ /obj/effect/landmark/vr_spawn //places you can spawn in VR, auto selected by the vr_sleeper during get_vr_spawnpoint() var/vr_category = "default" //So we can have specific sleepers, eg: "Basketball VR Sleeper", etc. + + +/datum/outfit/vr_basic + name = "basic vr" + uniform = /obj/item/clothing/under/color/random + shoes = /obj/item/clothing/shoes/sneakers/black