Files
vgstation13/code/unused/ai_lockdown.dm
mport2004@gmail.com 2224916ab9 Just some general cleanup
Moved the spacecraft folder into the unused section, moved syndiebeacon into machinery.
Research moved into Modules.
Virus2 moved into WIP - is anyone even working on this, it looks almost done?
Computer2,optics,pda2,experimental moved unto unused.
WIP Chemistry things moved into Chemical Module
Cameras.dm moved into weapons
GameKit.dm moved into unused
BrokenInHands.dm moved into unused
Removed Grillify.dm
Moved all of the files listed as unused in the mining module to unused
Removed several empty folders in modules
Moved cloning.dm into machinery
Moved NewBan.dm into admin
Changed humanoid aliens new_life.dm into life.dm
Moved beast mob into unused
Moved hivebot into unused
Moved carpedexplosion.dm into unused
Moved ai_lockdown.dm verb into unused and removed it from the AIs verb list as it didn't actually do anything.
Removed mastercontroler2.dm
Moved savefile.dm from human to new_player

Bugfix
People spawning on the starting screen on rev/cult should be fixed.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@1964 316c924e-a436-60f5-8080-3fe189b3f50e
2011-07-31 21:31:00 +00:00

60 lines
1.8 KiB
Plaintext

/mob/living/silicon/ai/proc/lockdown()
set category = "AI Commands"
set name = "Lockdown"
if(usr.stat == 2)
usr <<"You cannot initiate lockdown because you are dead!"
return
src << "<b>Initiating lockdowns has been disabled due to system stress.</b>"
// Commented this out to disable Lockdowns -- TLE
/* world << "\red Lockdown initiated by [usr.name]!"
for(var/obj/machinery/firealarm/FA in world) //activate firealarms
spawn( 0 )
if(FA.lockdownbyai == 0)
FA.lockdownbyai = 1
FA.alarm()
for(var/obj/machinery/door/airlock/AL in world) //close airlocks
spawn( 0 )
if(AL.canAIControl() && AL.icon_state == "door0" && AL.lockdownbyai == 0)
AL.close()
AL.lockdownbyai = 1
var/obj/machinery/computer/communications/C = locate() in world
if(C)
C.post_status("alert", "lockdown")
*/
/* src.verbs -= /mob/living/silicon/ai/proc/lockdown
src.verbs += /mob/living/silicon/ai/proc/disablelockdown
usr << "\red Disable lockdown command enabled!"
winshow(usr,"rpane",1)
*/
/mob/living/silicon/ai/proc/disablelockdown()
set category = "AI Commands"
set name = "Disable Lockdown"
if(usr.stat == 2)
usr <<"You cannot disable lockdown because you are dead!"
return
world << "\red Lockdown cancelled by [usr.name]!"
for(var/obj/machinery/firealarm/FA in world) //deactivate firealarms
spawn( 0 )
if(FA.lockdownbyai == 1)
FA.lockdownbyai = 0
FA.reset()
for(var/obj/machinery/door/airlock/AL in world) //open airlocks
spawn ( 0 )
if(AL.canAIControl() && AL.lockdownbyai == 1)
AL.open()
AL.lockdownbyai = 0
/* src.verbs -= /mob/living/silicon/ai/proc/disablelockdown
src.verbs += /mob/living/silicon/ai/proc/lockdown
usr << "\red Disable lockdown command removed until lockdown initiated again!"
winshow(usr,"rpane",1)
*/