mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-19 13:35:10 +00:00
* Add the system for managed global variables * Travis ban old globals * So you CAN inline proccall, that's neat * Fix that * master.dm * Remove the hack procs * Move InitGlobals to the proper spot * configuration.dm * Fix the missing pre-slash * clockcult.dm * This is probably for the best * Doy * Fix shit * Rest of the DEFINES tree * Fix * Use global. for access * Update find_references_in_globals Always hated that proc Whoever made it must've bee a r e a l idiot... * __HELPERS tree * Move global initialization to master. Fix the declaration * database.dm * Dat newline * I said DECLARATIVE order! * Here's something you can chew on @Iamgoofball * game_modes.dm * Fix this * genetics.dm * flavor_misc.dm * More stuff * Do it mso's way. Keep the controllers as global * Make master actually see it * Fix * Finish _globalvars/lists * Finish the rest of the _globalvars tree * This is weird * Migrate the controllers * SLOTH -> GLOB * Lighting globals * round_start_time -> ticker * PAI card list -> pai SS * record_id_num -> static * Diseases list -> SSdisease * More disease globals to the SS * More disease stuff * Emote list * Better and better * Bluh * So much stuff * Ahh * Wires * dview * station_areas * Teleportlocs * blood_splatter_icons * Stuff and such * More stuff * RAD IO * More stuff and such * Blob shit * Changeling stuff * Add "Balance" to changelogs * Balance for changelog compiler + Auto Tagging * Update the PR template * hivemind_bank * Bip * sacrificed * Good shit * Better define * More cult shit * Devil shit * Gang shit * > borers Fix shit * Rename the define * Nuke * Objectives * Sandbox * Multiverse sword * Announce systems * Stuff and such * TC con * Airlock * doppllllerrrrrr * holopads * Shut up byond you inconsistent fuck * Sneaky fuck * Burp * Bip * Fixnshit * Port without regard * askdlfjs; * asdfjasoidojfi * Protected globals and more * SO MANY * ajsimkvahsaoisd * akfdsiaopwimfeoiwafaw * gsdfigjosidjfgiosdg * AHHHHHHHHHHHHHHHHHHHHHHH!!!!! * facerolll * ASDFASDFASDF * Removes the unused parts of dmm_suite * WIP * Fix quote * asdfjauwfnkjs * afwlunhskjfda * asfjlaiwuefhaf * SO CLOSE * wwwweeeeeewwwww * agdgmoewranwg * HOLY MOTHER OF FUCK AND THATS JUST HALF THE JOB?!? * Fix syntax errors * 100 errors * Another 100 * So many... * Ugh * More shit * kilme * Stuuuuuufffff * ajrgmrlshio;djfa;sdkl * jkbhkhjbmjvjmh * soi soi soi * butt * TODAY WE LEARNED THAT GLOBAL AND STATIC ARE THE EXACT SAME FUCKING THING * lllllllllllllllllllllllllllllllllllllllllll * afsdijfiawhnflnjhnwsdfs * yugykihlugk,kj * time to go * STUFFF!!! * AAAAAAAAAAAAAAAAAHHHHHHHHHHHHHHHHHHHHHHHHHHH!!!!!!!!!!!!!!!!!!!!!!! * ngoaijdjlfkamsdlkf * Break time * aufjsdklfalsjfi * CONTROL KAY AND PRAY * IT COMPILEELEELELAKLJFKLDAFJLKFDJLADKJHFLJKAJGAHIEJALDFJ!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! * Goteem * Fix testing mode * This does not belong in this PR * Convert it to a controller * Eh, fuck this option * Revert controllerization Ill do it some other time * Fix * Working controllerization * FOR THE LOVE OF CHRIST PROTECT THE LOGS * Protect admins and deadmins * Use the inbuilt proc
255 lines
5.5 KiB
Plaintext
255 lines
5.5 KiB
Plaintext
/obj/screen/ai
|
|
icon = 'icons/mob/screen_ai.dmi'
|
|
|
|
/obj/screen/ai/Click()
|
|
if(isobserver(usr))
|
|
return 1
|
|
|
|
/obj/screen/ai/aicore
|
|
name = "AI core"
|
|
icon_state = "ai_core"
|
|
|
|
/obj/screen/ai/aicore/Click()
|
|
if(..())
|
|
return
|
|
var/mob/living/silicon/ai/AI = usr
|
|
AI.view_core()
|
|
|
|
/obj/screen/ai/camera_list
|
|
name = "Show Camera List"
|
|
icon_state = "camera"
|
|
|
|
/obj/screen/ai/camera_list/Click()
|
|
var/mob/living/silicon/ai/AI = usr
|
|
var/camera = input(AI, "Choose which camera you want to view", "Cameras") as null|anything in AI.get_camera_list()
|
|
AI.ai_camera_list(camera)
|
|
|
|
/obj/screen/ai/camera_track
|
|
name = "Track With Camera"
|
|
icon_state = "track"
|
|
|
|
/obj/screen/ai/camera_track/Click()
|
|
if(..())
|
|
return
|
|
var/mob/living/silicon/ai/AI = usr
|
|
var/target_name = input(AI, "Choose who you want to track", "Tracking") as null|anything in AI.trackable_mobs()
|
|
AI.ai_camera_track(target_name)
|
|
|
|
/obj/screen/ai/camera_light
|
|
name = "Toggle Camera Light"
|
|
icon_state = "camera_light"
|
|
|
|
/obj/screen/ai/camera_light/Click()
|
|
if(..())
|
|
return
|
|
var/mob/living/silicon/ai/AI = usr
|
|
AI.toggle_camera_light()
|
|
|
|
/obj/screen/ai/crew_monitor
|
|
name = "Crew Monitoring Console"
|
|
icon_state = "crew_monitor"
|
|
|
|
/obj/screen/ai/crew_monitor/Click()
|
|
if(..())
|
|
return
|
|
var/mob/living/silicon/ai/AI = usr
|
|
GLOB.crewmonitor.show(AI)
|
|
|
|
/obj/screen/ai/crew_manifest
|
|
name = "Crew Manifest"
|
|
icon_state = "manifest"
|
|
|
|
/obj/screen/ai/crew_manifest/Click()
|
|
if(..())
|
|
return
|
|
var/mob/living/silicon/ai/AI = usr
|
|
AI.ai_roster()
|
|
|
|
/obj/screen/ai/alerts
|
|
name = "Show Alerts"
|
|
icon_state = "alerts"
|
|
|
|
/obj/screen/ai/alerts/Click()
|
|
if(..())
|
|
return
|
|
var/mob/living/silicon/ai/AI = usr
|
|
AI.ai_alerts()
|
|
|
|
/obj/screen/ai/announcement
|
|
name = "Make Vox Announcement"
|
|
icon_state = "announcement"
|
|
|
|
/obj/screen/ai/announcement/Click()
|
|
if(..())
|
|
return
|
|
var/mob/living/silicon/ai/AI = usr
|
|
AI.announcement()
|
|
|
|
/obj/screen/ai/call_shuttle
|
|
name = "Call Emergency Shuttle"
|
|
icon_state = "call_shuttle"
|
|
|
|
/obj/screen/ai/call_shuttle/Click()
|
|
if(..())
|
|
return
|
|
var/mob/living/silicon/ai/AI = usr
|
|
AI.ai_call_shuttle()
|
|
|
|
/obj/screen/ai/state_laws
|
|
name = "State Laws"
|
|
icon_state = "state_laws"
|
|
|
|
/obj/screen/ai/state_laws/Click()
|
|
if(..())
|
|
return
|
|
var/mob/living/silicon/ai/AI = usr
|
|
AI.checklaws()
|
|
|
|
/obj/screen/ai/pda_msg_send
|
|
name = "PDA - Send Message"
|
|
icon_state = "pda_send"
|
|
|
|
/obj/screen/ai/pda_msg_send/Click()
|
|
if(..())
|
|
return
|
|
var/mob/living/silicon/ai/AI = usr
|
|
AI.cmd_send_pdamesg(usr)
|
|
|
|
/obj/screen/ai/pda_msg_show
|
|
name = "PDA - Show Message Log"
|
|
icon_state = "pda_receive"
|
|
|
|
/obj/screen/ai/pda_msg_show/Click()
|
|
if(..())
|
|
return
|
|
var/mob/living/silicon/ai/AI = usr
|
|
AI.cmd_show_message_log(usr)
|
|
|
|
/obj/screen/ai/image_take
|
|
name = "Take Image"
|
|
icon_state = "take_picture"
|
|
|
|
/obj/screen/ai/image_take/Click()
|
|
if(isAI(usr))
|
|
var/mob/living/silicon/ai/AI = usr
|
|
AI.aicamera.toggle_camera_mode()
|
|
else if(iscyborg(usr))
|
|
var/mob/living/silicon/robot/R = usr
|
|
R.aicamera.toggle_camera_mode()
|
|
|
|
/obj/screen/ai/image_view
|
|
name = "View Images"
|
|
icon_state = "view_images"
|
|
|
|
/obj/screen/ai/image_view/Click()
|
|
if(isAI(usr))
|
|
var/mob/living/silicon/ai/AI = usr
|
|
AI.aicamera.viewpictures()
|
|
else if(iscyborg(usr))
|
|
var/mob/living/silicon/robot/R = usr
|
|
R.aicamera.viewpictures()
|
|
|
|
/obj/screen/ai/sensors
|
|
name = "Sensor Augmentation"
|
|
icon_state = "ai_sensor"
|
|
|
|
/obj/screen/ai/sensors/Click()
|
|
if(..())
|
|
return
|
|
var/mob/living/silicon/S = usr
|
|
S.sensor_mode()
|
|
|
|
|
|
/datum/hud/ai
|
|
ui_style_icon = 'icons/mob/screen_ai.dmi'
|
|
|
|
/datum/hud/ai/New(mob/owner, ui_style = 'icons/mob/screen_ai.dmi')
|
|
..()
|
|
var/obj/screen/using
|
|
|
|
// Language menu
|
|
using = new /obj/screen/language_menu
|
|
using.screen_loc = ui_borg_language_menu
|
|
static_inventory += using
|
|
|
|
//AI core
|
|
using = new /obj/screen/ai/aicore()
|
|
using.screen_loc = ui_ai_core
|
|
static_inventory += using
|
|
|
|
//Camera list
|
|
using = new /obj/screen/ai/camera_list()
|
|
using.screen_loc = ui_ai_camera_list
|
|
static_inventory += using
|
|
|
|
//Track
|
|
using = new /obj/screen/ai/camera_track()
|
|
using.screen_loc = ui_ai_track_with_camera
|
|
static_inventory += using
|
|
|
|
//Camera light
|
|
using = new /obj/screen/ai/camera_light()
|
|
using.screen_loc = ui_ai_camera_light
|
|
static_inventory += using
|
|
|
|
//Crew Monitoring
|
|
using = new /obj/screen/ai/crew_monitor()
|
|
using.screen_loc = ui_ai_crew_monitor
|
|
static_inventory += using
|
|
|
|
//Crew Manifest
|
|
using = new /obj/screen/ai/crew_manifest()
|
|
using.screen_loc = ui_ai_crew_manifest
|
|
static_inventory += using
|
|
|
|
//Alerts
|
|
using = new /obj/screen/ai/alerts()
|
|
using.screen_loc = ui_ai_alerts
|
|
static_inventory += using
|
|
|
|
//Announcement
|
|
using = new /obj/screen/ai/announcement()
|
|
using.screen_loc = ui_ai_announcement
|
|
static_inventory += using
|
|
|
|
//Shuttle
|
|
using = new /obj/screen/ai/call_shuttle()
|
|
using.screen_loc = ui_ai_shuttle
|
|
static_inventory += using
|
|
|
|
//Laws
|
|
using = new /obj/screen/ai/state_laws()
|
|
using.screen_loc = ui_ai_state_laws
|
|
static_inventory += using
|
|
|
|
//PDA message
|
|
using = new /obj/screen/ai/pda_msg_send()
|
|
using.screen_loc = ui_ai_pda_send
|
|
static_inventory += using
|
|
|
|
//PDA log
|
|
using = new /obj/screen/ai/pda_msg_show()
|
|
using.screen_loc = ui_ai_pda_log
|
|
static_inventory += using
|
|
|
|
//Take image
|
|
using = new /obj/screen/ai/image_take()
|
|
using.screen_loc = ui_ai_take_picture
|
|
static_inventory += using
|
|
|
|
//View images
|
|
using = new /obj/screen/ai/image_view()
|
|
using.screen_loc = ui_ai_view_images
|
|
static_inventory += using
|
|
|
|
|
|
//Medical/Security sensors
|
|
using = new /obj/screen/ai/sensors()
|
|
using.screen_loc = ui_ai_sensor
|
|
static_inventory += using
|
|
|
|
|
|
/mob/living/silicon/ai/create_mob_hud()
|
|
if(client && !hud_used)
|
|
hud_used = new /datum/hud/ai(src)
|