From f635eafc698bd960fcc5f10ae2402c4e4517cccd Mon Sep 17 00:00:00 2001
From: MrMelbert <51863163+MrMelbert@users.noreply.github.com>
Date: Tue, 25 Nov 2025 20:41:48 -0600
Subject: [PATCH] Adds a playerpanel button that just plays roleplay.ogg
(#93936)
## About The Pull Request
Adds a playerpanel button that just plays roleplay.ogg to the player
(with a chat message to accompany it)
## Why It's Good For The Game
Gives admins a button which literally just tells the player to roleplay
appropriately. So they can take the hint
## Changelog
:cl: Melbert
admin: Adds "roleplay reminder" button to player panel
/:cl:
---
code/modules/admin/topic.dm | 10 ++++++++++
code/modules/admin/verbs/admingame.dm | 4 ++--
2 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/code/modules/admin/topic.dm b/code/modules/admin/topic.dm
index 90eaecb2124..26bad9934a8 100644
--- a/code/modules/admin/topic.dm
+++ b/code/modules/admin/topic.dm
@@ -929,6 +929,16 @@
return
M.get_language_holder().open_language_menu(usr)
+ else if(href_list["rpreminder"])
+ var/mob/rper = locate(href_list["rpreminder"]) in GLOB.player_list
+ if(QDELETED(rper))
+ return
+ // literally just gives them a sound and a message
+ SEND_SOUND(rper, sound('sound/misc/roleplay.ogg'))
+ to_chat(rper, boxed_message("You hear a nagging voice in your head... [span_hypnophrase("Please roleplay appropriately.")]"))
+ message_admins("[ADMIN_LOOKUPFLW(usr)] reminded [ADMIN_LOOKUPFLW(rper)] to roleplay appropriately.")
+ log_admin("[key_name(usr)] reminded [key_name(rper)] to roleplay appropriately.")
+
else if(href_list["traitor"])
if(!check_rights(R_ADMIN))
return
diff --git a/code/modules/admin/verbs/admingame.dm b/code/modules/admin/verbs/admingame.dm
index 342813f4f6f..d54952d8f9f 100644
--- a/code/modules/admin/verbs/admingame.dm
+++ b/code/modules/admin/verbs/admingame.dm
@@ -101,7 +101,8 @@ ADMIN_VERB_ONLY_CONTEXT_MENU(show_player_panel, R_ADMIN, "Show Player Panel", mo
body += "Narrate to | "
body += "Subtle message | "
body += "Play sound to | "
- body += "Language Menu"
+ body += "Language Menu | "
+ body += "Roleplay Reminder"
if(player.client)
if(!isnewplayer(player))
@@ -424,4 +425,3 @@ ADMIN_VERB(spawn_panel, R_SPAWN, "Spawn Panel", "Spawn Panel (TGUI).", ADMIN_CAT
if(panel)
panel.ui_interact(user.mob)
BLACKBOX_LOG_ADMIN_VERB("Spawn Panel")
-