Skip to content

Commit

Permalink
Disabled AI multicamera mode without admin intervention
Browse files Browse the repository at this point in the history
  • Loading branch information
Cruix committed May 10, 2018
1 parent c67e84d commit a9cb5a4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions code/modules/mob/living/silicon/ai/ai.dm
Expand Up @@ -85,6 +85,7 @@
var/datum/action/innate/deploy_last_shell/redeploy_action = new
var/chnotify = 0

var/multicam_allowed = FALSE
var/multicam_on = FALSE
var/obj/screen/movable/pic_in_pic/ai/master_multicam
var/list/multicam_screens = list()
Expand Down
7 changes: 7 additions & 0 deletions code/modules/mob/living/silicon/ai/multicam.dm
Expand Up @@ -193,6 +193,10 @@ GLOBAL_DATUM(ai_camera_room_landmark, /obj/effect/landmark/ai_multicam_room)
//AI procs

/mob/living/silicon/ai/proc/drop_new_multicam(silent = FALSE)
if(!multicam_allowed)
if(!silent)
to_chat(src, "<span class='warning'>This action is currently disabled. Contact an administrator to enable this feature.</span>")
return
if(!eyeobj)
return
if(multicam_screens.len >= max_multicams)
Expand All @@ -208,6 +212,9 @@ GLOBAL_DATUM(ai_camera_room_landmark, /obj/effect/landmark/ai_multicam_room)
return C

/mob/living/silicon/ai/proc/toggle_multicam()
if(!multicam_allowed)
to_chat(src, "<span class='warning'>This action is currently disabled. Contact an administrator to enable this feature.</span>")
return
if(multicam_on)
end_multicam()
else
Expand Down

0 comments on commit a9cb5a4

Please sign in to comment.