Gives VR avatars a custom job, Fixes duplicate PDAs, new VR roleplay room (#8282)

This commit is contained in:
tacoguy7765093
2024-04-22 01:45:01 -05:00
committed by GitHub
parent 79c753a758
commit 9836ad8f59
6 changed files with 7067 additions and 4963 deletions

View File

@@ -39,3 +39,9 @@
if(istype(wallet))
wallet.owner_name = H.real_name
wallet.worth = 1000
/decl/hierarchy/outfit/noncrew/vr_avatar
pda_slot = null
id_slot = null
r_pocket = null
l_pocket = null

View File

@@ -63,3 +63,20 @@
return TRUE
else
return FALSE
/datum/job/vr_avatar //So VR avatars dont spawn with PDAs and flood the servers
title = JOB_VR
disallow_jobhop = TRUE
total_positions = 99
spawn_positions = 5
latejoin_only = 1
supervisors = "The VR world"
flag = NONCREW
departments = list(DEPARTMENT_NONCREW)
department_flag = OTHER
faction = "Station"
assignable = FALSE
account_allowed = 0
offmap_spawn = TRUE
outfit_type = /decl/hierarchy/outfit/noncrew/vr_avatar

View File

@@ -15,6 +15,7 @@
set category = "Ghost"
set desc = "Log into NanoTrasen's local virtual reality server."
/* Temp removal while I figure out how to reduce the respawn time to 1 minute
var/time_till_respawn = time_till_respawn()
if(time_till_respawn == -1) // Special case, never allowed to respawn
to_chat(usr, "<span class='warning'>Respawning is not allowed!</span>")
@@ -22,7 +23,7 @@
if(time_till_respawn) // Nonzero time to respawn
to_chat(usr, "<span class='warning'>You can't do that yet! You died too recently. You need to wait another [round(time_till_respawn/10/60, 0.1)] minutes.</span>")
return
*/
var/datum/data/record/record_found
record_found = find_general_record("name", client.prefs.real_name)
// Found their record, they were spawned previously. Remind them corpses cannot play games.
@@ -61,7 +62,7 @@
avatar.regenerate_icons()
avatar.update_transform()
job_master.EquipRank(avatar,"Visitor", 1, FALSE)
job_master.EquipRank(avatar,"VR Avatar", 1, FALSE)
add_verb(avatar,/mob/living/carbon/human/proc/fake_exit_vr) //CHOMPEdit
add_verb(avatar,/mob/living/carbon/human/proc/vr_transform_into_mob) //CHOMPEdit
add_verb(avatar,/mob/living/proc/set_size) //CHOMPEdit TGPanel // Introducing NeosVR