diff --git a/code/modules/admin/admin_verbs.dm b/code/modules/admin/admin_verbs.dm index de7de232a0..a69ae0ffad 100644 --- a/code/modules/admin/admin_verbs.dm +++ b/code/modules/admin/admin_verbs.dm @@ -92,6 +92,7 @@ src.verbs += /client/proc/ticklag src.verbs += /client/proc/toggle_view_range src.verbs += /client/proc/warn + src.verbs += /client/proc/only_one // muskets src.verbs += /obj/admins/proc/adjump //toggle admin jumping src.verbs += /obj/admins/proc/adrev //toggle admin revives src.verbs += /obj/admins/proc/adspawn //toggle admin item spawning diff --git a/code/modules/admin/verbs/onlyone.dm b/code/modules/admin/verbs/onlyone.dm new file mode 100644 index 0000000000..b5985633e9 --- /dev/null +++ b/code/modules/admin/verbs/onlyone.dm @@ -0,0 +1,35 @@ +/client/proc/only_one() + set category = "Fun" + set name = "THERE CAN BE ONLY ONE" + + if(!ticker) + alert("The game hasn't started yet!") + return + for(var/mob/living/carbon/human/H in world) + if(H.stat == 2 || !(H.client)) continue + if(checktraitor(H)) continue + + ticker.mode.equip_traitor(H) + ticker.mode.traitors += H.mind + H.mind.special_role = "traitor" + + var/datum/objective/steal/steal_objective = new + steal_objective.owner = H.mind + steal_objective.target_name = "nuclear authentication disk" + steal_objective.steal_target = /obj/item/weapon/disk/nuclear + steal_objective.explanation_text = "Steal a [steal_objective.target_name]." + H.mind.objectives += steal_objective + + var/datum/objective/hijack/hijack_objective = new + hijack_objective.owner = H.mind + H.mind.objectives += hijack_objective + + H << "You are the traitor." + var/obj_count = 1 + for(var/datum/objective/OBJ in H.mind.objectives) + H << "Objective #[obj_count]: [OBJ.explanation_text]" + obj_count++ + new /obj/item/weapon/pinpointer(H.loc) + + message_admins("\blue [key_name_admin(usr)] used THERE CAN BE ONLY ONE!", 1) + log_admin("[key_name(usr)] used there can be only one.") \ No newline at end of file diff --git a/goonstation.dme b/goonstation.dme index 2a4822829b..30b2176f42 100644 --- a/goonstation.dme +++ b/goonstation.dme @@ -569,6 +569,7 @@ #include "code\modules\admin\verbs\diagnostics.dm" #include "code\modules\admin\verbs\grillify.dm" #include "code\modules\admin\verbs\modifyvariables.dm" +#include "code\modules\admin\verbs\onlyone.dm" #include "code\modules\admin\verbs\playsound.dm" #include "code\modules\admin\verbs\pray.dm" #include "code\modules\admin\verbs\randomverbs.dm"