mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-01-04 14:33:58 +00:00
Gives VR avatars a custom job, Fixes duplicate PDAs, new VR roleplay room (#8282)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user