mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
Adds a paralyze button for easy administration.
Conflicts: code/modules/admin/admin.dm
This commit is contained in:
@@ -1403,5 +1403,21 @@ proc/admin_notice(var/message, var/rights)
|
|||||||
usr << "Mode has not started."
|
usr << "Mode has not started."
|
||||||
return
|
return
|
||||||
|
|
||||||
message_admins("[key_name(usr)] attempting to force mode autospawn.")
|
log_and_message_admins("attempting to force mode autospawn.")
|
||||||
ticker.mode.process_autoantag()
|
ticker.mode.process_autoantag()
|
||||||
|
|
||||||
|
/datum/admins/proc/paralyze_mob(mob/living/carbon/human/H as mob)
|
||||||
|
set category = "Admin"
|
||||||
|
set name = "Toggle Paralyze"
|
||||||
|
set desc = "Paralyzes a player. Or unparalyses them."
|
||||||
|
|
||||||
|
var/msg
|
||||||
|
|
||||||
|
if(check_rights(R_ADMIN|R_MOD))
|
||||||
|
if (H.paralysis == 0)
|
||||||
|
H.paralysis = 1000
|
||||||
|
msg = "has paralyzed [key_name(H)]."
|
||||||
|
else
|
||||||
|
H.paralysis = 0
|
||||||
|
msg = "has unparalyzed [key_name(H)]."
|
||||||
|
log_and_message_admins(msg)
|
||||||
|
|||||||
@@ -91,7 +91,8 @@ var/list/admin_verbs_admin = list(
|
|||||||
/client/proc/change_human_appearance_self, /* Allows the human-based mob itself change its basic appearance */
|
/client/proc/change_human_appearance_self, /* Allows the human-based mob itself change its basic appearance */
|
||||||
/client/proc/change_security_level,
|
/client/proc/change_security_level,
|
||||||
/client/proc/view_chemical_reaction_logs,
|
/client/proc/view_chemical_reaction_logs,
|
||||||
/client/proc/makePAI
|
/client/proc/makePAI,
|
||||||
|
/datum/admins/proc/paralyze_mob
|
||||||
)
|
)
|
||||||
var/list/admin_verbs_ban = list(
|
var/list/admin_verbs_ban = list(
|
||||||
/client/proc/unban_panel,
|
/client/proc/unban_panel,
|
||||||
@@ -284,7 +285,8 @@ var/list/admin_verbs_mod = list(
|
|||||||
/datum/admins/proc/show_player_panel,
|
/datum/admins/proc/show_player_panel,
|
||||||
/client/proc/check_antagonists,
|
/client/proc/check_antagonists,
|
||||||
/client/proc/jobbans,
|
/client/proc/jobbans,
|
||||||
/client/proc/cmd_admin_subtle_message /*send an message to somebody as a 'voice in their head'*/
|
/client/proc/cmd_admin_subtle_message, /*send an message to somebody as a 'voice in their head'*/
|
||||||
|
/datum/admins/proc/paralyze_mob
|
||||||
)
|
)
|
||||||
|
|
||||||
var/list/admin_verbs_mentor = list(
|
var/list/admin_verbs_mentor = list(
|
||||||
|
|||||||
Reference in New Issue
Block a user