Admin Damage Menu (#11386)

This commit is contained in:
Geeves
2021-04-08 12:12:32 -03:00
committed by GitHub
parent aea6b3af65
commit 44222f1cc8
8 changed files with 291 additions and 12 deletions
+13 -12
View File
@@ -1337,21 +1337,22 @@ proc/admin_notice(var/message, var/rights)
set name = "Toggle Wind"
set desc = "Paralyzes a player. Or unparalyses them."
toggle_wind_paralysis(H, usr)
/proc/toggle_wind_paralysis(var/mob/living/target, var/mob/user)
var/msg
if(check_rights(R_ADMIN|R_MOD))
if (H.paralysis == 0)
msg = "has paralyzed [key_name_admin(H)]."
H.visible_message("<font color='#002eb8'><b>OOC Information:</b></font> <span class='warning'>[H] has been winded by a member of staff! Please freeze all roleplay involving their character until the matter is resolved! Adminhelp if you have further questions.</span>", "<span class='warning'><b>You have been winded by a member of staff! Please stand by until they contact you!</b></span>")
H.paralysis = 8000
if(check_rights(R_ADMIN|R_MOD, user))
if (target.paralysis == 0)
msg = "has paralyzed [key_name_admin(target)]."
target.visible_message("<font color='#002eb8'><b>OOC Information:</b></font> <span class='warning'>[user] has been winded by a member of staff! Please freeze all roleplay involving their character until the matter is resolved! Adminhelp if you have further questions.</span>", "<span class='warning'><b>You have been winded by a member of staff! Please stand by until they contact you!</b></span>")
target.paralysis = 8000
else
if (alert("The player is currently winded. Do you want to unwind him?", "Unwind player?", "Yes", "No") == "No")
if (alert(user, "The player is currently winded. Do you want to unwind him?", "Unwind player?", "Yes", "No") == "No")
return
H.paralysis = 0
msg = "has unparalyzed [key_name_admin(H)]."
H.visible_message("<font color='#002eb8'><b>OOC Information:</b></font> <font color='green'>[H] has been unwinded by a member of staff!</font>", "<span class='warning'><b>You have been unwinded by a member of staff!</b></span>")
log_and_message_admins(msg)
target.paralysis = 0
msg = "has unparalyzed [key_name_admin(target)]."
target.visible_message("<font color='#002eb8'><b>OOC Information:</b></font> <font color='green'>[user] has been unwinded by a member of staff!</font>", "<span class='warning'><b>You have been unwinded by a member of staff!</b></span>")
log_and_message_admins(msg, user)
feedback_add_details("admin_verb", "WIND")
/datum/admins/proc/toggle_round_spookyness()
+9
View File
@@ -72,6 +72,7 @@ var/list/admin_verbs_admin = list(
/client/proc/toggleghostwriters,
/client/proc/toggledrones,
/datum/admins/proc/show_skills,
/client/proc/damage_menu,
/client/proc/man_up,
/client/proc/global_man_up,
/client/proc/response_team, // Response Teams admin verb,
@@ -261,6 +262,7 @@ var/list/admin_verbs_hideable = list(
/client/proc/toggledrones,
/datum/admins/proc/show_skills,
/client/proc/restart_sql,
/client/proc/damage_menu,
/client/proc/man_up,
/client/proc/global_man_up,
/client/proc/connect_ntsl,
@@ -1044,6 +1046,13 @@ var/list/admin_verbs_cciaa = list(
else
to_chat(usr, "You now won't get debug log messages")
/client/proc/damage_menu(mob/living/carbon/human/H as null|mob in human_mob_list)
set name = "Damage Menu"
set desc = "Access a human mob's damage menu, allowing you to make their life hell."
set category = "Fun"
if(H)
new /datum/vueui_module/damage_menu(WEAKREF(H), usr)
/client/proc/man_up(mob/T as mob in mob_list)
set category = "Fun"