From ccd01c70fd5b51b648f536c0e5733fe3c10dca3b Mon Sep 17 00:00:00 2001 From: VisVirific Date: Thu, 2 Jun 2022 15:33:24 -0300 Subject: [PATCH] PMCG Modsuit Addition (#14122) --- aurorastation.dme | 1 + .../loadout/loadout_factions.dm | 7 ++ code/modules/clothing/factions/pmcg.dm | 63 ++++++++++++++++++ html/changelogs/PMCG_modsuit.yml | 6 ++ .../clothing/under/uniforms/pmcg_modsuit.dmi | Bin 0 -> 722 bytes 5 files changed, 77 insertions(+) create mode 100644 code/modules/clothing/factions/pmcg.dm create mode 100644 html/changelogs/PMCG_modsuit.yml create mode 100644 icons/clothing/under/uniforms/pmcg_modsuit.dmi diff --git a/aurorastation.dme b/aurorastation.dme index d9482d17fe6..b9412d78c34 100644 --- a/aurorastation.dme +++ b/aurorastation.dme @@ -1548,6 +1548,7 @@ #include "code\modules\clothing\factions\idris.dm" #include "code\modules\clothing\factions\jargon.dm" #include "code\modules\clothing\factions\konyang.dm" +#include "code\modules\clothing\factions\pmcg.dm" #include "code\modules\clothing\factions\vysoka.dm" #include "code\modules\clothing\glasses\glasses.dm" #include "code\modules\clothing\glasses\hud.dm" diff --git a/code/modules/client/preference_setup/loadout/loadout_factions.dm b/code/modules/client/preference_setup/loadout/loadout_factions.dm index abde9cc0ba7..a199e0f0458 100644 --- a/code/modules/client/preference_setup/loadout/loadout_factions.dm +++ b/code/modules/client/preference_setup/loadout/loadout_factions.dm @@ -159,6 +159,13 @@ slot = slot_tie faction = "Private Military Contracting Group" +/datum/gear/faction/pmc_modsuit + display_name = "PMCG modsuit" + description = "A modular PMCG fatigue jumpsuit." + path = /obj/item/clothing/under/pmc_modsuit + slot = slot_w_uniform + faction = "Private Military Contracting Group" + // Eridani Private Military Contractors /datum/gear/faction/epmc_headwear display_name = "EPMC headwear selection" diff --git a/code/modules/clothing/factions/pmcg.dm b/code/modules/clothing/factions/pmcg.dm new file mode 100644 index 00000000000..3c6b38a4aee --- /dev/null +++ b/code/modules/clothing/factions/pmcg.dm @@ -0,0 +1,63 @@ +// PMCG Modsuit +/obj/item/clothing/under/pmc_modsuit + name = "\improper PMCG modsuit" + desc = "A modular fatigue jumpsuit, from the Private Military Contracting Group." + desc_fluff = "The proprietary PMCG Modular Fatigue Jumpsuit, quickly dubbed the modsuit, is an innovation by the recently-formed PMCG to quickly outfit its scores of new \ + hires and acquisitions at economic production costs. Designed to fit military contractors of a wide range of sizes, species, and operating environments with tolerable comfort, \ + the modsuit features a number of smart-fabric connection points for the modern contractor to modify their uniform to a number of preset configurations." + icon = 'icons/clothing/under/uniforms/pmcg_modsuit.dmi' + icon_state = "pmcg_modsuit" + item_state = "pmcg_modsuit" + contained_sprite = TRUE + action_button_name = "Change Modsuit" + var/modsuit_mode = 0 + var/list/names = list( + "\improper PMCG modsuit", + "\improper PMCG shortsleeved modsuit", + "\improper PMCG modsuit pants", + "\improper PMCG shorts modsuit", + "\improper PMCG modsuit shorts") + +/obj/item/clothing/under/pmc_modsuit/Initialize() + for(var/option in names) + if(!modsuit_mode) + names[option] = image('icons/clothing/under/uniforms/pmcg_modsuit.dmi', icon_state) + modsuit_mode = 1 + else + names[option] = image('icons/clothing/under/uniforms/pmcg_modsuit.dmi', initial(icon_state) + "_[names.Find(option) - 1]") + modsuit_mode = 0 + .=..() + +/obj/item/clothing/under/pmc_modsuit/attack_self(mob/user) + select_modsuit(user) + +/obj/item/clothing/under/pmc_modsuit/proc/select_modsuit(mob/user) + var/modsuit_choice = RADIAL_INPUT(user, names) + if(!modsuit_choice) + return + modsuit_mode = names.Find(modsuit_choice) - 1 + + selected_modsuit(user) + update_clothing_icon() + +/obj/item/clothing/under/pmc_modsuit/proc/selected_modsuit(mob/user as mob) + if(!modsuit_mode) + name = initial(name) + icon_state = initial(icon_state) + item_state = initial(item_state) + else + name = names[modsuit_mode + 1] + icon_state = initial(icon_state) + "_[modsuit_mode]" + item_state = initial(item_state) + "_[modsuit_mode]" + + update_clothing_icon() + user.update_action_buttons() + +/obj/item/clothing/under/pmc_modsuit/verb/change_modsuit() + set name = "Change Modsuit" + set category = "Object" + set src in usr + if(use_check_and_message(usr)) + return + + select_modsuit(usr) \ No newline at end of file diff --git a/html/changelogs/PMCG_modsuit.yml b/html/changelogs/PMCG_modsuit.yml new file mode 100644 index 00000000000..3318915ae4d --- /dev/null +++ b/html/changelogs/PMCG_modsuit.yml @@ -0,0 +1,6 @@ +author: stev/Memescope, Vrow + +delete-after: True + +changes: + - rscadd: "Added a PMCG modular jumpsuit, or more simply known as a modsuit, which was made by Memescope! This modsuit is restricted to PMCG and can be found in the loadout. It can shift between forms like shortsleeved, or just the pants, and some others!" diff --git a/icons/clothing/under/uniforms/pmcg_modsuit.dmi b/icons/clothing/under/uniforms/pmcg_modsuit.dmi new file mode 100644 index 0000000000000000000000000000000000000000..b336bb1b6d29a36ef3c4676d7720a8fe01d5fdac GIT binary patch literal 722 zcmV;@0xkWCP)005u_0{{R3dEt5<0000RP)t-s@sH>! zDls-ZLrzs)YC40004WQchCV=-0C=2JR&a84_w-Y6@%7{?OD!tS%+FJ>RWQ*r;NmRLOex6#a*U0*I5Sc+ z(=$pSoZ^zil2jm5sUSBwJw7)-rMNV+M2U+tC9|j)C~U~ZnO2mTn+joLRUBWMhfr@q zgnC2Lj5j3N0wdBaFe2FkW6~@zCfNcL(kw8+V}Y`QtDg%vMF0T3@uKXWyRFCo00F{D zL_t(&f$f;FPQx%1MW53F#@K7;1o7ls?Ax6AwJQwTD>vM+FY+s=t z#_oS(GGR%_)wypEL_b77L_b771ONa4PKi)T$s8xDc|TPDz8~(?xnuj`PWwVXL_Y)o z{0=xj#Q7o44+-ao?{_@6^Fsgt004j!g7ZW4LvZfA0Vr?&o5~o*?EnA(07*qoM6N<$ Ef@mj8CjbBd literal 0 HcmV?d00001