mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-22 20:43:10 +01:00
CCIA Recorder Fix (#10279)
Changes the CCIA Recorder so it can be used to interview other CCIA Agents. Currently there is a inbuilt protection that prevents a ccia agent from registering himself as the interviewee. This has been extended to check for the presence of R_CCIA and the absence of a character_id. Co-authored-by: Werner <Arrow768@users.noreply.github.com>
This commit is contained in:
@@ -46,7 +46,7 @@
|
||||
set name = "Start Recording"
|
||||
set category = "Recorder"
|
||||
|
||||
if(!check_rights(R_CCIAA,FALSE))
|
||||
if(!check_rights(R_CCIAA,FALSE) || usr.character_id)
|
||||
to_chat(usr, "<span class='notice'>The device beeps and flashes \"Unauthorised user.\".</span>")
|
||||
return
|
||||
if(use_check_and_message(usr))
|
||||
@@ -87,7 +87,7 @@
|
||||
selected_report = new(report_id, time2text(world.realtime, "YYYY_MM_DD"), report_name)
|
||||
return
|
||||
//If we are ready to record, but no interviewee is selected
|
||||
else if(!selected_report && !interviewee_id)
|
||||
else if(selected_report && !interviewee_id)
|
||||
to_chat(usr,"<span class='notice'>The device beeps and flashes \"Fingerprint of interviewee required\"</span>")
|
||||
return
|
||||
//If the report has been selected and the person scanned their frinterprint
|
||||
@@ -130,7 +130,7 @@
|
||||
|
||||
if(use_check_and_message(usr))
|
||||
return
|
||||
if(!check_rights(R_CCIAA,FALSE))
|
||||
if(!check_rights(R_CCIAA,FALSE) || usr.character_id)
|
||||
to_chat(usr, "<span class='notice'>The device beeps and flashes \"Unauthorised user.\".</span>")
|
||||
return
|
||||
if(!recording)
|
||||
@@ -189,7 +189,7 @@
|
||||
set name = "Reset Recorder"
|
||||
set category = "Recorder"
|
||||
|
||||
if(!check_rights(R_CCIAA,FALSE))
|
||||
if(!check_rights(R_CCIAA,FALSE) || usr.character_id)
|
||||
to_chat(usr, "<span class='notice'>The device beeps and flashes \"Unauthorised user.\".</span>")
|
||||
return
|
||||
|
||||
@@ -231,7 +231,7 @@
|
||||
|
||||
if(use_check_and_message(usr))
|
||||
return
|
||||
if(!check_rights(R_CCIAA,FALSE))
|
||||
if(!check_rights(R_CCIAA,FALSE) || usr.character_id)
|
||||
to_chat(usr, "<span class='notice'>The device beeps and flashes \"Unauthorised user\".</span>")
|
||||
return
|
||||
if(recording)
|
||||
@@ -249,7 +249,7 @@
|
||||
|
||||
if(use_check_and_message(usr))
|
||||
return
|
||||
if(!check_rights(R_CCIAA,FALSE))
|
||||
if(!check_rights(R_CCIAA,FALSE) || usr.character_id)
|
||||
to_chat(usr, "<span class='notice'>The device beeps and flashes \"Unauthorised user\".</span>")
|
||||
return
|
||||
if(!recording)
|
||||
@@ -270,7 +270,7 @@
|
||||
|
||||
/obj/item/device/taperecorder/cciaa/attack_self(mob/user)
|
||||
//If we are a ccia agent, then always go to the record function (to prompt for the report or start the recording)
|
||||
if(check_rights(R_CCIAA,FALSE))
|
||||
if(check_rights(R_CCIAA,FALSE) && !user.character_id)
|
||||
record()
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user