Files
Bubberstation/code/modules/admin/verbs/onlyone.dm
SkyratBot dd7bdf5a7b [MIRROR] tgui: Secrets Panel (#2325)
* tgui: Secrets Panel

* a

* Update secrets.dm

Co-authored-by: tralezab <40974010+tralezab@users.noreply.github.com>
Co-authored-by: Gandalf2k15 <jzo123@hotmail.com>
2020-12-25 22:06:37 +00:00

52 lines
2.0 KiB
Plaintext

GLOBAL_VAR_INIT(highlander, FALSE)
/client/proc/only_one() //Gives everyone kilts, berets, claymores, and pinpointers, with the objective to hijack the emergency shuttle.
if(!SSticker.HasRoundStarted())
alert("The game hasn't started yet!")
return
GLOB.highlander = TRUE
sound_to_playing_players('sound/misc/highlander.ogg')
send_to_playing_players("<span class='boldannounce'><font size=6>THERE CAN BE ONLY ONE</font></span>")
for(var/obj/item/disk/nuclear/N in GLOB.poi_list)
var/datum/component/stationloving/component = N.GetComponent(/datum/component/stationloving)
if (component)
component.relocate() //Gets it out of bags and such
for(var/mob/living/carbon/human/H in GLOB.player_list)
if(H.stat == DEAD)
continue
H.make_scottish()
for(var/mob/living/silicon/ai/AI in GLOB.player_list)
if(!istype(AI) || AI.stat == DEAD)
continue
if(AI.deployed_shell)
AI.deployed_shell.undeploy()
AI.change_mob_type(/mob/living/silicon/robot , null, null)
AI.gib()
for(var/mob/living/silicon/robot/robot in GLOB.player_list)
if(!istype(robot) || robot.stat == DEAD)
continue
if(robot.shell)
robot.gib()
continue
robot.make_scottish()
message_admins("<span class='adminnotice'>[key_name_admin(usr)] used THERE CAN BE ONLY ONE!</span>")
log_admin("[key_name(usr)] used THERE CAN BE ONLY ONE.")
addtimer(CALLBACK(SSshuttle.emergency, /obj/docking_port/mobile/emergency.proc/request, null, 1), 50)
/client/proc/only_one_delayed()
send_to_playing_players("<span class='userdanger'>Bagpipes begin to blare. You feel Scottish pride coming over you.</span>")
message_admins("<span class='adminnotice'>[key_name_admin(usr)] used (delayed) THERE CAN BE ONLY ONE!</span>")
log_admin("[key_name(usr)] used delayed THERE CAN BE ONLY ONE.")
addtimer(CALLBACK(src, .proc/only_one), 42 SECONDS)
/mob/living/carbon/human/proc/make_scottish()
mind.add_antag_datum(/datum/antagonist/highlander)
/mob/living/silicon/robot/proc/make_scottish()
mind.add_antag_datum(/datum/antagonist/highlander/robot)