Skip to content

Commit

Permalink
various design stuff and prepping for SqSgt sprites
Browse files Browse the repository at this point in the history
  • Loading branch information
morrowwolf committed Apr 6, 2024
1 parent 02c42ab commit 89a0cf7
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 14 deletions.
8 changes: 7 additions & 1 deletion code/datums/components/attached_headset.dm
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
item_parent = parent

if(!icon_exists(item_parent.icon, item_parent.icon_state + "_hs", FALSE))
if(user)
to_chat(user, SPAN_NOTICE("[headset] doesn't seem to support an integrated headset."))
return COMPONENT_INCOMPATIBLE_NO_ERROR

if(!activation_slot)
Expand All @@ -35,6 +37,8 @@

if(user)
user.drop_inv_item_on_ground(headset)
to_chat(user, SPAN_NOTICE("You attach [headset] to [parent]."))
playsound(user, 'sound/effects/gunrustle1.ogg', 20, TRUE)

headset.moveToNullspace()

Expand All @@ -48,7 +52,8 @@

headset = null

item_parent.icon_state = parent_initial_icon_state
if(parent_initial_icon_state)
item_parent.icon_state = parent_initial_icon_state

item_parent = null

Expand Down Expand Up @@ -124,6 +129,7 @@
if(parent != user.r_hand && parent != user.l_hand)
return

playsound(user, 'sound/items/Screwdriver.ogg', 20, TRUE)
to_chat(user, SPAN_NOTICE("You use [attacking_item] to take [headset] off of [parent]."))
user.put_in_hands(headset)
qdel(src)
Expand Down
5 changes: 5 additions & 0 deletions code/game/objects/items/devices/radio/headset.dm
Original file line number Diff line number Diff line change
Expand Up @@ -593,6 +593,11 @@
desc = "A standard marine radio headset. When worn, grants access to Squad Leader tracker. Click tracker with empty hand to open Squad Info window."
frequency = ALPHA_FREQ

/obj/item/device/radio/headset/almayer/marine/lead
name = "marine leader radio headset"
desc = "This is used by a marine squad leader. Channels are as follows: :v - marine command, :j - JTAC. When worn, grants access to Squad Leader tracker. Click tracker with empty hand to open Squad Info window."
initial_keys = list(/obj/item/device/encryptionkey/squadlead)

//############################## ALPHA ###############################
/obj/item/device/radio/headset/almayer/marine/alpha
name = "marine alpha radio headset"
Expand Down
13 changes: 2 additions & 11 deletions code/game/objects/structures/crates_lockers/closets/job_closets.dm
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
new /obj/item/ammo_magazine/rifle/m41aMK1(src)
new /obj/item/ammo_magazine/rifle/m41aMK1(src)
new /obj/item/ammo_magazine/rifle/m41aMK1(src)
new /obj/item/clothing/head/helmet/marine/leader(src)
new /obj/item/clothing/head/helmet/marine/leader/attached_headset(src)
new /obj/item/device/binoculars/range/designator(src)
new /obj/item/device/whistle(src)

Expand All @@ -115,7 +115,7 @@

/obj/structure/closet/secure_closet/squad_sergeant/Initialize()
. = ..()
new /obj/item/clothing/head/helmet/marine/rto(src)
//new /obj/item/clothing/head/helmet/marine/rto/attached_headset(src) //add attached_headset version - Morrow
new /obj/item/device/binoculars/range/designator(src)
new /obj/item/device/whistle(src)

Expand Down Expand Up @@ -162,12 +162,3 @@
new /obj/item/ammo_magazine/smartgun(src)
new /obj/item/storage/belt/marine/smartgunner/standard(src)
new /obj/item/storage/belt/gun/smartgunner/standard(src)

/obj/structure/closet/cryo/Initialize()
. = ..()
new /obj/item/clothing/under/marine(src)
new /obj/item/clothing/under/marine(src)
new /obj/item/clothing/shoes/marine/knife(src)
new /obj/item/clothing/shoes/marine/knife(src)
new /obj/item/device/radio/headset/almayer/marine(src)
new /obj/item/device/radio/headset/almayer/marine(src)
18 changes: 16 additions & 2 deletions code/modules/clothing/head/helmet.dm
Original file line number Diff line number Diff line change
Expand Up @@ -733,8 +733,8 @@ GLOBAL_LIST_INIT(allowed_helmet_items, list(
/obj/item/clothing/head/helmet/marine/attached_headset/Initialize(mapload, list/new_protection)
. = ..()

var/obj/item/device/radio/headset/almayer/marine/temp_helmet = new()
AddComponent(/datum/component/attached_headset, null, temp_helmet, WEAR_HEAD)
var/obj/item/device/radio/headset/almayer/marine/temp_headset = new()
AddComponent(/datum/component/attached_headset, null, temp_headset, WEAR_HEAD)

/obj/item/clothing/head/helmet/marine/tech
name = "\improper M10 technician helmet"
Expand Down Expand Up @@ -806,6 +806,12 @@ GLOBAL_LIST_INIT(allowed_helmet_items, list(
armor_bio = CLOTHING_ARMOR_MEDIUMHIGH
specialty = "M11 pattern marine"

/obj/item/clothing/head/helmet/marine/leader/attached_headset/Initialize(mapload, list/new_protection)
. = ..()

var/obj/item/device/radio/headset/almayer/marine/lead/temp_headset = new()
AddComponent(/datum/component/attached_headset, null, temp_headset, WEAR_HEAD)

/obj/item/clothing/head/helmet/marine/rto
name = "\improper M12 pattern dust helmet"
desc = "An experimental brain-bucket. A dust ruffle hangs from back instead of the standard lobster shell design. Moderately better at deflecting blunt objects at the cost of humiliation, can also hold a second visor optic. But who will be laughing at the memorial? Not you, you'll be busy getting medals for your fantastic leadership."
Expand All @@ -816,6 +822,14 @@ GLOBAL_LIST_INIT(allowed_helmet_items, list(
specialty = "M12 pattern"
max_inserted_visors = 2

/*
/obj/item/clothing/head/helmet/marine/rto/attached_headset/Initialize(mapload, list/new_protection)
. = ..()
var/obj/item/device/radio/headset/almayer/marine/temp_headset = new()
AddComponent(/datum/component/attached_headset, null, temp_headset, WEAR_HEAD)
*/

/obj/item/clothing/head/helmet/marine/rto/intel
name = "\improper XM12 pattern intelligence helmet"
desc = "An experimental brain-bucket. A dust ruffle hangs from back. Moderately better at deflecting blunt objects at the cost of humiliation, can also hold a second visor optic. But who will be laughing at the memorial? Not you, you'll be busy getting medals for your intel work."
Expand Down

0 comments on commit 89a0cf7

Please sign in to comment.