Skip to content

Arachnid Roundstart Security HUDs #5588

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Feb 25, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions code/game/objects/items/storage/garment.dm
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
name = "head of security's garment bag"
desc = "A bag for storing extra clothes and shoes. This one belongs to the head of security."

/obj/item/storage/bag/garment/warden
name = "warden's garment bag"
desc = "A bag for storing extra clothes and shoes. This one belongs to the warden."

/obj/item/storage/bag/garment/hop
name = "head of personnel's garment bag"
desc = "A bag for storing extra clothes and shoes. This one belongs to the head of personnel."
Expand Down Expand Up @@ -89,6 +93,20 @@
new /obj/item/clothing/head/hats/hos/cap(src)
new /obj/item/clothing/mask/gas/sechailer/swat(src)
new /obj/item/clothing/neck/cloak/hos(src)
new /obj/item/clothing/head/helmet/sec(src) // monkestation addition

/obj/item/storage/bag/garment/warden/PopulateContents()
new /obj/item/clothing/suit/armor/vest/warden(src)
new /obj/item/clothing/head/hats/warden(src)
new /obj/item/clothing/head/hats/warden/drill(src)
new /obj/item/clothing/head/beret/sec/navywarden(src)
new /obj/item/clothing/suit/armor/vest/warden/alt(src)
new /obj/item/clothing/under/rank/security/warden/formal(src)
new /obj/item/clothing/under/rank/security/warden/skirt(src)
new /obj/item/clothing/gloves/krav_maga/sec(src)
new /obj/item/clothing/glasses/hud/security/sunglasses(src)
new /obj/item/clothing/mask/gas/sechailer(src)
new /obj/item/clothing/head/helmet/sec(src) // monkestation addition

/obj/item/storage/bag/garment/research_director/PopulateContents()
new /obj/item/clothing/under/rank/rnd/research_director(src)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,27 +85,17 @@
..()
new /obj/item/dog_bone(src)
new /obj/item/radio/headset/headset_sec(src)
new /obj/item/clothing/suit/armor/vest/warden(src)
new /obj/item/clothing/head/hats/warden(src)
new /obj/item/clothing/head/hats/warden/drill(src)
new /obj/item/clothing/head/beret/sec/navywarden(src)
new /obj/item/clothing/suit/armor/vest/warden/alt(src)
new /obj/item/clothing/under/rank/security/warden/formal(src)
new /obj/item/clothing/under/rank/security/warden/skirt(src)
new /obj/item/clothing/glasses/hud/security/sunglasses(src)
new /obj/item/holosign_creator/security(src)
new /obj/item/clothing/mask/gas/sechailer(src)
new /obj/item/storage/bag/garment/warden(src)
new /obj/item/storage/box/zipties(src)
new /obj/item/storage/box/flashbangs(src)
new /obj/item/storage/belt/security/full(src)
new /obj/item/flashlight/seclite(src)
new /obj/item/clothing/gloves/krav_maga/sec(src)
new /obj/item/door_remote/head_of_security(src)
new /obj/item/storage/box/bodycamera(src) //monkestation edit: Security Liability Act
new /obj/item/gun/ballistic/shotgun/automatic/combat/compact(src) //undoing ancient removal
new /obj/item/ammo_box/advanced/s12gauge/rubber(src) //he can have some rubber ammo too


/obj/structure/closet/secure_closet/security
name = "security officer's locker"
req_access = list(ACCESS_BRIG)
Expand Down
2 changes: 1 addition & 1 deletion code/modules/mod/mod_theme.dm
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,7 @@
a few years out of date, leading to an overall lower capacity for modules."
default_skin = "security"
armor_type = /datum/armor/mod_theme_security
complexity_max = DEFAULT_MAX_COMPLEXITY - 3
complexity_max = DEFAULT_MAX_COMPLEXITY - 2 // monkestation edit DEFAULT_MAX_COMPLEXITY - 3 -> DEFAULT_MAX_COMPLEXITY - 2
slowdown_inactive = 1
slowdown_active = 0.5
allowed_suit_storage = list(
Expand Down
8 changes: 8 additions & 0 deletions code/modules/mod/mod_types.dm
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
/obj/item/mod/module/flashlight,
/obj/item/mod/module/tether,
/obj/item/mod/module/magboot,
/obj/item/mod/module/visor/meson, //monkestation edit
)
default_pins = list(
/obj/item/mod/module/magboot,
Expand Down Expand Up @@ -87,6 +88,7 @@
/obj/item/mod/module/rad_protection,
/obj/item/mod/module/flashlight,
/obj/item/mod/module/jetpack,
/obj/item/mod/module/visor/meson, // monkestation addition
)
default_pins = list(
/obj/item/mod/module/jetpack,
Expand Down Expand Up @@ -117,6 +119,7 @@
/obj/item/mod/module/clamp,
/obj/item/mod/module/drill,
/obj/item/mod/module/mouthhole,
/obj/item/mod/module/visor/meson, // monkestation addition
)
default_pins = list(
/obj/item/mod/module/gps,
Expand All @@ -131,6 +134,7 @@
/obj/item/mod/module/flashlight,
/obj/item/mod/module/health_analyzer,
/obj/item/mod/module/quick_carry,
/obj/item/mod/module/visor/medhud, // monkestation addition
)

/obj/item/mod/control/pre_equipped/rescue
Expand All @@ -141,6 +145,7 @@
/obj/item/mod/module/flashlight,
/obj/item/mod/module/health_analyzer,
/obj/item/mod/module/injector,
/obj/item/mod/module/visor/medhud, // monkestation addition
)

/obj/item/mod/control/pre_equipped/research
Expand All @@ -152,6 +157,7 @@
/obj/item/mod/module/flashlight,
/obj/item/mod/module/circuit,
/obj/item/mod/module/t_ray,
/obj/item/mod/module/visor/diaghud, // monkestation addition
)

/obj/item/mod/control/pre_equipped/security
Expand All @@ -163,6 +169,7 @@
/obj/item/mod/module/jetpack,
/obj/item/mod/module/pepper_shoulders,
/obj/item/mod/module/criminalcapture,
/obj/item/mod/module/visor/sechud, // monkestation addition
)

/obj/item/mod/control/pre_equipped/safeguard
Expand All @@ -176,6 +183,7 @@
/obj/item/mod/module/megaphone,
/obj/item/mod/module/projectile_dampener,
/obj/item/mod/module/pepper_shoulders,
/obj/item/mod/module/visor/sechud, // monkestation addition
)
default_pins = list(
/obj/item/mod/module/jetpack,
Expand Down
7 changes: 7 additions & 0 deletions code/modules/surgery/organs/autosurgeon.dm
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,13 @@
uses = 1
starting_organ = /obj/item/organ/internal/cyberimp/eyes/hud/medical

// monkestation edit start
/obj/item/autosurgeon/security_hud
name = "autosurgeon"
desc = "A single use autosurgeon that contains a security heads-up display augment. A screwdriver can be used to remove it, but implants can't be placed back in."
uses = 1
starting_organ = /obj/item/organ/internal/cyberimp/eyes/hud/security
// monkestation edit end

/obj/item/autosurgeon/syndicate
name = "suspicious autosurgeon"
Expand Down
85 changes: 85 additions & 0 deletions monkestation/code/modules/clothing/head/helmet.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
/obj/item/clothing/head/helmet
var/hud_attachable = FALSE
var/obj/item/clothing/glasses/hud/hud_glasses = null
var/datum/atom_hud/our_hud = null
var/hud_trait = null

/obj/item/clothing/head/helmet/equipped(mob/living/carbon/human/user, slot)
..()
if(!(slot & ITEM_SLOT_HEAD))
return
give_hud(user)

/obj/item/clothing/head/helmet/dropped(mob/living/carbon/human/user)
..()
if(!istype(user) || user.head != src)
return
remove_hud(user)

/obj/item/clothing/head/helmet/proc/give_hud(mob/living/carbon/human/user)
if(!hud_glasses)
return
if(hud_glasses.hud_type)
our_hud = GLOB.huds[hud_glasses.hud_type]
our_hud.show_to(user)
if(hud_glasses.hud_trait)
hud_trait = hud_glasses.hud_trait
ADD_TRAIT(user, hud_trait, HELMET_TRAIT)

/obj/item/clothing/head/helmet/proc/remove_hud(mob/living/carbon/human/user)
if(our_hud)
our_hud.hide_from(user)
our_hud = null
if(hud_trait)
REMOVE_TRAIT(user, hud_trait, HELMET_TRAIT)
hud_trait = null

/obj/item/clothing/head/helmet/attackby(obj/item/I, mob/user, params)
if(hud_attachable && !hud_glasses && istype(I, /obj/item/clothing/glasses/hud))
user.transferItemToLoc(I, src)
hud_glasses = I

balloon_alert(user, "attached [I]")

var/mob/living/carbon/human/wearer = loc
if (istype(wearer) && wearer.head == src)
give_hud(wearer)
else
return ..()

/obj/item/clothing/head/helmet/screwdriver_act(mob/living/user, obj/item/tool)
if(hud_attachable && hud_glasses)
tool?.play_tool_sound(src)
balloon_alert(user, "unscrewed [hud_glasses]")

var/obj/item/to_remove = hud_glasses

// The forcemove here will call exited on the glasses, and automatically update our references / etc
to_remove.forceMove(drop_location())
if(Adjacent(user) && !issilicon(user))
user.put_in_hands(to_remove)
else
return ..()

/obj/item/clothing/head/helmet/Exited(atom/movable/gone, direction)
if (gone == hud_glasses)
hud_glasses = null

var/mob/living/carbon/human/wearer = loc
if (istype(wearer) && wearer.head == src)
remove_hud(wearer)
else
return ..()

/obj/item/clothing/head/helmet/sec
hud_attachable = TRUE

/obj/item/clothing/head/helmet/alt
hud_attachable = TRUE

/obj/item/clothing/head/helmet/examine(mob/user)
. = ..()
if(hud_glasses)
. += "It has \a [hud_glasses] [hud_attachable ? "mounted on it with a few <b>screws</b>" : "permanently mounted on it"]."
else if (hud_attachable)
. += "It has a mounting point for some <b>HUD</b> glasses."
Original file line number Diff line number Diff line change
Expand Up @@ -129,3 +129,7 @@
icon_state = "hardsuit0-sec"
armor_type = /datum/armor/hardsuit/sec
hardsuit_type = "sec"

/obj/item/clothing/head/helmet/space/hardsuit/sec/New(loc, ...)
. = ..()
hud_glasses = new /obj/item/clothing/glasses/hud/security(src)

This file was deleted.

2 changes: 1 addition & 1 deletion tgstation.dme
Original file line number Diff line number Diff line change
Expand Up @@ -7187,6 +7187,7 @@
#include "monkestation\code\modules\clothing\gloves\power_gloves.dm"
#include "monkestation\code\modules\clothing\head\costume.dm"
#include "monkestation\code\modules\clothing\head\hat.dm"
#include "monkestation\code\modules\clothing\head\helmet.dm"
#include "monkestation\code\modules\clothing\head\misc.dm"
#include "monkestation\code\modules\clothing\head\wig.dm"
#include "monkestation\code\modules\clothing\jobs\brig_physician.dm"
Expand All @@ -7209,7 +7210,6 @@
#include "monkestation\code\modules\clothing\spacesuits\hardsuits\medical.dm"
#include "monkestation\code\modules\clothing\spacesuits\hardsuits\misc.dm"
#include "monkestation\code\modules\clothing\spacesuits\hardsuits\science.dm"
#include "monkestation\code\modules\clothing\spacesuits\hardsuits\security.dm"
#include "monkestation\code\modules\clothing\suit_accessories\bodycamera.dm"
#include "monkestation\code\modules\clothing\suit_accessories\bodycamera_box.dm"
#include "monkestation\code\modules\clothing\suit_accessories\camera.dm"
Expand Down
Loading