Skip to content

Commit

Permalink
[MIRROR] Voice changers work on tapes now!
Browse files Browse the repository at this point in the history
  • Loading branch information
TheNightingale authored and SuhEugene committed Nov 19, 2023
1 parent 29df4a3 commit b9b74d6
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions code/game/objects/items/devices/taperecorder.dm
Original file line number Diff line number Diff line change
Expand Up @@ -112,14 +112,18 @@
to_chat(user, SPAN_NOTICE("The wires are exposed."))

/obj/item/device/taperecorder/hear_talk(mob/living/M as mob, msg, verb="says", datum/language/speaking=null)
var/speaker = null
if(mytape && recording)

if (istype(M, /mob/living/carbon/human))
speaker = M.GetVoice()
else
speaker = M.name
if(speaking)
if(!speaking.machine_understands)
msg = speaking.scramble(msg)
mytape.record_speech("[M.name] [speaking.format_message_plain(msg, verb)]")
mytape.record_speech("[speaker] [speaking.format_message_plain(msg, verb)]")
else
mytape.record_speech("[M.name] [verb], \"[msg]\"")
mytape.record_speech("[speaker] [verb], \"[msg]\"")


/obj/item/device/taperecorder/see_emote(mob/M as mob, text, emote_type)
Expand Down Expand Up @@ -371,7 +375,7 @@
usr.put_in_hands(P)
playsound(src, "sound/machines/dotprinter.ogg", 30)
canprint = 0
sleep(300)
sleep(150)
canprint = 1


Expand Down Expand Up @@ -400,15 +404,15 @@

/obj/item/device/tape
name = "tape"
desc = "A magnetic tape that can hold up to ten minutes of content."
desc = "A magnetic tape that can hold up to twenty minutes of content."
icon = 'icons/obj/tools/tape_recorder.dmi'
icon_state = "tape_white"
item_state = "analyzer"
w_class = ITEM_SIZE_TINY
matter = list(MATERIAL_PLASTIC=20, MATERIAL_STEEL=5, MATERIAL_GLASS=5)
force = 1
throwforce = 0
var/max_capacity = 600
var/max_capacity = 1200
var/used_capacity = 0
var/list/storedinfo = list()
var/list/timestamp = list()
Expand Down

0 comments on commit b9b74d6

Please sign in to comment.