From 3dcd9cf38230e10703d624b5281b7911d907fa68 Mon Sep 17 00:00:00 2001 From: skull132 Date: Mon, 25 Aug 2014 21:28:38 +0300 Subject: [PATCH] Duty Officers Adds a preset for Duty Officers of Central Command. --- code/game/objects/items/devices/PDA/PDA.dm | 5 +++ .../objects/items/weapons/storage/lockbox.dm | 15 +++++++++ code/modules/admin/verbs/debug.dm | 32 +++++++++++++++++-- 3 files changed, 50 insertions(+), 2 deletions(-) diff --git a/code/game/objects/items/devices/PDA/PDA.dm b/code/game/objects/items/devices/PDA/PDA.dm index 1af5587f..6b6c45ab 100644 --- a/code/game/objects/items/devices/PDA/PDA.dm +++ b/code/game/objects/items/devices/PDA/PDA.dm @@ -193,6 +193,11 @@ var/global/list/obj/item/device/pda/PDAs = list() default_cartridge = /obj/item/weapon/cartridge/medical icon_state = "pda-gene" +/obj/item/device/pda/central + default_cartridge = /obj/item/weapon/cartridge/captain + icon_state = "pda-h" + detonate = 0 + // Special AI/pAI PDAs that cannot explode. /obj/item/device/pda/ai diff --git a/code/game/objects/items/weapons/storage/lockbox.dm b/code/game/objects/items/weapons/storage/lockbox.dm index 6cbaa45c..61d791ac 100644 --- a/code/game/objects/items/weapons/storage/lockbox.dm +++ b/code/game/objects/items/weapons/storage/lockbox.dm @@ -86,3 +86,18 @@ New() ..() new /obj/item/weapon/grenade/flashbang/clusterbang(src) + +/obj/item/weapon/storage/lockbox/dutyofficer + name = "silver lockbox" + desc = "A silver lockbox with a NanoTrasen symbol etched onto it." + req_access = list(access_cent_general) + storage_slots = 6 + + New() + ..() + new /obj/item/weapon/implantcase/loyalty(src) + new /obj/item/weapon/implantcase/loyalty(src) + new /obj/item/weapon/implantcase/loyalty(src) + new /obj/item/weapon/implanter/loyalty(src) + new /obj/item/clothing/tie/holster/waist(src) + new /obj/item/weapon/gun/energy/gun/pistol(src) \ No newline at end of file diff --git a/code/modules/admin/verbs/debug.dm b/code/modules/admin/verbs/debug.dm index f2f29c39..1dce2e15 100644 --- a/code/modules/admin/verbs/debug.dm +++ b/code/modules/admin/verbs/debug.dm @@ -558,6 +558,7 @@ But you can call procs that are of type /mob/living/carbon/human/proc/ for that "ert sub officer", "ert commander", "nanotrasen representative", + "central command duty officer", "nanotrasen officer", "nanotrasen captain", "shadowling" @@ -774,6 +775,33 @@ But you can call procs that are of type /mob/living/carbon/human/proc/ for that W.registered_name = M.real_name M.equip_if_possible(W, slot_wear_id) + if("central command duty officer") + M.equip_if_possible(new /obj/item/clothing/under/rank/centcom/officer(M), slot_w_uniform) + M.equip_if_possible(new /obj/item/clothing/shoes/centcom(M), slot_shoes) + M.equip_if_possible(new /obj/item/clothing/gloves/white(M), slot_gloves) + M.equip_if_possible(new /obj/item/device/radio/headset/ert(M), slot_l_ear) + M.equip_if_possible(new /obj/item/clothing/glasses/sunglasses/sechud(M), slot_glasses) + M.equip_if_possible(new /obj/item/clothing/head/beret/centcom/officer(M), slot_head) + M.equip_if_possible(new /obj/item/weapon/melee/telebaton(M), slot_l_store) + M.equip_if_possible(new /obj/item/weapon/storage/lockbox/dutyofficer(M), slot_l_hand) + + var/obj/item/device/pda/central/pda = new(M) + pda.owner = M.real_name + pda.ownjob = "Central Command Duty Officer" + pda.name = "PDA-[M.real_name] ([pda.ownjob])" + + M.equip_if_possible(pda, slot_r_store) + + var/obj/item/weapon/card/id/W = new(M) + W.name = "[M.real_name]'s ID Card" + W.icon_state = "centcom" + W.item_state = "id_inv" + W.access = get_all_accesses() + W.access += get_all_centcom_access() + W.assignment = "Central Command Duty Officer" + W.registered_name = M.real_name + M.equip_if_possible(W, slot_wear_id) + if("nanotrasen officer") M.equip_if_possible(new /obj/item/clothing/under/rank/centcom/officer(M), slot_w_uniform) M.equip_if_possible(new /obj/item/clothing/shoes/centcom(M), slot_shoes) @@ -781,7 +809,7 @@ But you can call procs that are of type /mob/living/carbon/human/proc/ for that M.equip_if_possible(new /obj/item/device/radio/headset/heads/captain(M), slot_l_ear) M.equip_if_possible(new /obj/item/clothing/head/beret/centcom/officer(M), slot_head) - var/obj/item/device/pda/heads/pda = new(M) + var/obj/item/device/pda/central/pda = new(M) pda.owner = M.real_name pda.ownjob = "NanoTrasen Navy Officer" pda.name = "PDA-[M.real_name] ([pda.ownjob])" @@ -806,7 +834,7 @@ But you can call procs that are of type /mob/living/carbon/human/proc/ for that M.equip_if_possible(new /obj/item/device/radio/headset/heads/captain(M), slot_l_ear) M.equip_if_possible(new /obj/item/clothing/head/beret/centcom/captain(M), slot_head) - var/obj/item/device/pda/heads/pda = new(M) + var/obj/item/device/pda/central/pda = new(M) pda.owner = M.real_name pda.ownjob = "NanoTrasen Navy Captain" pda.name = "PDA-[M.real_name] ([pda.ownjob])"