mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 11:37:40 +01:00
Added the ability for borgs to ude departmental radios
This commit is contained in:
@@ -117,7 +117,7 @@
|
||||
if (message_mode)
|
||||
message = trim(copytext(message, 3))
|
||||
if (!ishuman(src) && (message_mode=="department" || (message_mode in radiochannels)))
|
||||
message_mode = null //only humans can use headsets
|
||||
message_mode = null //only humans can use headsets
|
||||
|
||||
if (!message)
|
||||
return
|
||||
|
||||
@@ -88,12 +88,14 @@
|
||||
else
|
||||
icon_state = "Service2"
|
||||
modtype = "Butler"
|
||||
radio.borg(src, list())
|
||||
|
||||
if("Miner")
|
||||
module = new /obj/item/weapon/robot_module/miner(src)
|
||||
hands.icon_state = "miner"
|
||||
icon_state = "Miner"
|
||||
modtype = "Miner"
|
||||
radio.borg(src, list("Mining" = 1))
|
||||
|
||||
if("Medical")
|
||||
var/sprite = input(src,"Chassis Style", "Chassis Style", "Cancel") in list("Humanoid","Non-Humanoid")
|
||||
@@ -104,6 +106,7 @@
|
||||
if (sprite == "Non-Humanoid")
|
||||
src.icon_state = "surgeon"
|
||||
modtype = "Med"
|
||||
radio.borg(src, list("Medical" = 1))
|
||||
|
||||
if("Security")
|
||||
var/sprite = input(src,"Chassis Style", "Chassis Style", "Cancel") in list("Humanoid","Non-Humanoid")
|
||||
@@ -114,6 +117,7 @@
|
||||
if (sprite == "Non-Humanoid")
|
||||
src.icon_state = "bloodhound"
|
||||
modtype = "Sec"
|
||||
radio.borg(src, list("Security" = 1))
|
||||
|
||||
if("Engineering")
|
||||
var/sprite = input(src,"Chassis Style", "Chassis Style", "Cancel") in list("Humanoid","Non-Humanoid")
|
||||
@@ -124,6 +128,7 @@
|
||||
if (sprite == "Non-Humanoid")
|
||||
src.icon_state = "landmate"
|
||||
modtype = "Eng"
|
||||
radio.borg(src, list("Engineering" = 1))
|
||||
|
||||
if("Janitor")
|
||||
var/sprite = input(src,"Chassis Style", "Chassis Style", "Cancel") in list("Humanoid","Non-Humanoid")
|
||||
@@ -134,6 +139,7 @@
|
||||
if (sprite == "Non-Humanoid")
|
||||
src.icon_state = "mopgearrex"
|
||||
modtype = "Jan"
|
||||
radio.borg(src, list())
|
||||
|
||||
overlays -= "eyes" //Takes off the eyes that it started with
|
||||
updateicon()
|
||||
|
||||
@@ -26,9 +26,13 @@
|
||||
message = copytext(message, 3)
|
||||
message = trim(copytext(sanitize(message), 1, MAX_MESSAGE_LEN))
|
||||
holopad_talk(message)
|
||||
else//Will not allow anyone by an active AI to use this function.
|
||||
src << "This function is not available to you."
|
||||
return
|
||||
else if(istype(src,/mob/living/silicon/robot)) //Will not allow anyone by an active AI to use this function.
|
||||
message = copytext(message, 3)
|
||||
message = trim(copytext(sanitize(message), 1, MAX_MESSAGE_LEN))
|
||||
var/mob/living/silicon/robot/R = src
|
||||
R.radio.talk_into(src, message, "department")
|
||||
else
|
||||
src << "You cannot use that channel."
|
||||
else
|
||||
return ..(message)
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user