mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-25 09:31:13 +00:00
Adds photocopier based faxmachine, removes redundant photocopier vars
This commit is contained in:
@@ -5,6 +5,7 @@ var/list/alldepartments = list("Central Command")
|
||||
name = "fax machine"
|
||||
icon = 'icons/obj/library.dmi'
|
||||
icon_state = "fax"
|
||||
insert_anim = "faxsend"
|
||||
req_one_access = list(access_lawyer, access_heads, access_armory) //Warden needs to be able to Fax solgov too.
|
||||
anchored = 1
|
||||
density = 1
|
||||
@@ -17,6 +18,8 @@ var/list/alldepartments = list("Central Command")
|
||||
var/authenticated = 0
|
||||
|
||||
var/obj/item/weapon/paper/tofax = null // what we're sending
|
||||
var/obj/item/weapon/paper_bundle/bundle = null // If we are sending a bundle, this will hold the bundle and tofax will reference the first page of the bundle
|
||||
|
||||
var/sendcooldown = 0 // to avoid spamming fax messages
|
||||
|
||||
var/department = "Unknown" // our department
|
||||
@@ -163,7 +166,7 @@ var/list/alldepartments = list("Central Command")
|
||||
tofax = O
|
||||
O.loc = src
|
||||
user << "<span class='notice'>You insert the paper into \the [src].</span>"
|
||||
flick("faxsend", src)
|
||||
flick(insert_anim, src)
|
||||
updateUsrDialog()
|
||||
else
|
||||
user << "<span class='notice'>There is already something in \the [src].</span>"
|
||||
@@ -182,6 +185,9 @@ var/list/alldepartments = list("Central Command")
|
||||
user << "<span class='notice'>You [anchored ? "wrench" : "unwrench"] \the [src].</span>"
|
||||
return
|
||||
|
||||
/obj/machinery/photocopier/faxmachine/insert(obj/item/O as obj, mob/user as mob)
|
||||
..()
|
||||
|
||||
/proc/Centcomm_fax(var/originfax, var/sent, var/sentname, var/mob/Sender)
|
||||
|
||||
var/msg = "\blue <b><font color='#006100'>CENTCOMM FAX: </font>[key_name(Sender, 1)] (<A HREF='?_src_=holder;adminplayeropts=\ref[Sender]'>PP</A>) (<A HREF='?_src_=vars;Vars=\ref[Sender]'>VV</A>) (<A HREF='?_src_=holder;subtlemessage=\ref[Sender]'>SM</A>) (<A HREF='?_src_=holder;adminplayerobservejump=\ref[Sender]'>JMP</A>) (<A HREF='?_src_=holder;secretsadmin=check_antagonist'>CA</A>) (<a href='?_src_=holder;CentcommFaxReply=\ref[Sender];originfax=\ref[originfax]'>RPLY</a>)</b>: Receiving '[sentname]' via secure connection ... <a href='?_src_=holder;CentcommFaxView=\ref[sent]'>view message</a>"
|
||||
|
||||
Reference in New Issue
Block a user