Skip to content

Commit

Permalink
Earpieces no longer have HUDs
Browse files Browse the repository at this point in the history
  • Loading branch information
AmoryBlaine committed Aug 30, 2024
1 parent 952459a commit 47048d8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion code/game/objects/items/devices/helmet_visors.dm
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
if(has_tracker && user.hud_used && user.hud_used.locate_leader)
//if we have a headset that also lets us track targets, do not hide the HUD.
var/obj/item/device/radio/headset/earpiece = user.get_type_in_ears(/obj/item/device/radio/headset)
var/has_access = earpiece?.misc_tracking || (user.assigned_squad && user.assigned_squad.radio_freq == earpiece.frequency)
var/has_access = earpiece?.misc_tracking || (user.assigned_squad && user.assigned_squad.radio_freq == earpiece?.frequency)
if(istype(earpiece) && earpiece.has_hud && has_access)
return
user.hide_hud_tracker()
Expand Down
20 changes: 10 additions & 10 deletions code/game/objects/items/devices/radio/headset.dm
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@
volume = RADIO_VOLUME_CRITICAL
misc_tracking = TRUE
locate_setting = TRACKER_CO
has_hud = TRUE
has_hud = FALSE

inbuilt_tracking_options = list(
"Commanding Officer" = TRACKER_CO,
Expand Down Expand Up @@ -876,7 +876,7 @@
frequency = PMC_FREQ
icon_state = "pmc_headset"
initial_keys = list(/obj/item/device/encryptionkey/public, /obj/item/device/encryptionkey/mcom/cl)
has_hud = TRUE
has_hud = FALSE
hud_type = MOB_HUD_FACTION_PMC

misc_tracking = TRUE
Expand All @@ -891,7 +891,7 @@
frequency = CBRN_FREQ
initial_keys = list(/obj/item/device/encryptionkey/public, /obj/item/device/encryptionkey/mcom)
ignore_z = TRUE
has_hud = TRUE
has_hud = FALSE

/obj/item/device/radio/headset/distress/pmc/hvh
desc = "A special headset used by corporate personnel. Channels are as follows: :o - colony."
Expand Down Expand Up @@ -940,7 +940,7 @@
desc = "A special headset used by UPP military. To access the colony channel, use :o."
frequency = UPP_FREQ
initial_keys = list(/obj/item/device/encryptionkey/colony)
has_hud = TRUE
has_hud = FALSE
hud_type = MOB_HUD_FACTION_UPP
minimap_type = MINIMAP_FLAG_UPP

Expand Down Expand Up @@ -980,7 +980,7 @@
desc = "A special headset used by small groups of trained operatives. Or terrorists. To access the colony channel use :o."
frequency = CLF_FREQ
initial_keys = list(/obj/item/device/encryptionkey/colony)
has_hud = TRUE
has_hud = FALSE
hud_type = MOB_HUD_FACTION_CLF

/obj/item/device/radio/headset/distress/CLF/cct
Expand Down Expand Up @@ -1011,15 +1011,15 @@
frequency = VAI_FREQ
icon_state = "vai_headset"
initial_keys = list(/obj/item/device/encryptionkey/public, /obj/item/device/encryptionkey/contractor)
has_hud = TRUE
has_hud = FALSE

/obj/item/device/radio/headset/distress/royal_marine
name = "Royal Marine Headset"
desc = "A sleek headset used by the Royal Marines Commando. Low profile enough to fit under their unique helmets."
frequency = RMC_FREQ
icon_state = "vai_headset"
initial_keys = list(/obj/item/device/encryptionkey/public, /obj/item/device/encryptionkey/royal_marine)
has_hud = TRUE
has_hud = FALSE
hud_type = MOB_HUD_FACTION_TWE
volume = RADIO_VOLUME_IMPORTANT

Expand All @@ -1030,7 +1030,7 @@
frequency = CMB_FREQ
icon_state = "cmb_headset"
initial_keys = list(/obj/item/device/encryptionkey/colony)
has_hud = TRUE
has_hud = FALSE
hud_type = MOB_HUD_FACTION_USCM

/obj/item/device/radio/headset/distress/CMB/limited
Expand Down Expand Up @@ -1075,7 +1075,7 @@
frequency = SOF_FREQ
initial_keys = list(/obj/item/device/encryptionkey/soc/forecon)
volume = RADIO_VOLUME_QUIET
has_hud = TRUE
has_hud = FALSE
hud_type = MOB_HUD_FACTION_USCM

/obj/item/device/radio/headset/almayer/mcom/vc
Expand All @@ -1092,5 +1092,5 @@
initial_keys = list(/obj/item/device/encryptionkey/upp)
volume = RADIO_VOLUME_QUIET
ignore_z = FALSE
has_hud = TRUE
has_hud = FALSE
hud_type = MOB_HUD_FACTION_UPP

0 comments on commit 47048d8

Please sign in to comment.