mirror of
https://github.com/Citadel-Station-13/Citadel-Station-13-RP.git
synced 2026-08-30 20:57:10 +01:00
add a way for admins to allow objects to emote (#7188)
## About The Pull Request in terms of implementation this is just a crude edit of atom_say because i am not taking on refactoring say code to be unified for this if you have R_FUN you get access to atom emote on the right click menu using it shows this menu  audible shows to people who can hear it visible shows to people who can see it all shows to everyone within range regardless ## Why It's Good For The Game useful for EMs ## Changelog 🆑 add: add a way for admins to allow objects to emote /🆑
This commit is contained in:
@@ -141,7 +141,8 @@ var/list/admin_verbs_fun = list(
|
||||
/datum/admins/proc/call_supply_drop,
|
||||
/datum/admins/proc/call_drop_pod,
|
||||
/client/proc/smite,
|
||||
/client/proc/admin_lightning_strike
|
||||
/client/proc/admin_lightning_strike,
|
||||
/proc/atom_emote,
|
||||
)
|
||||
|
||||
var/list/admin_verbs_spawn = list(
|
||||
@@ -341,7 +342,8 @@ var/list/admin_verbs_hideable = list(
|
||||
/client/proc/roll_dices,
|
||||
/proc/possess,
|
||||
/proc/release,
|
||||
/datum/admins/proc/set_tcrystals
|
||||
/datum/admins/proc/set_tcrystals,
|
||||
/proc/atom_emote,
|
||||
)
|
||||
var/list/admin_verbs_mod = list(
|
||||
/client/proc/cmd_admin_pm_context, //right-click adminPM interface,
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
/proc/atom_emote(atom/A as atom in world)
|
||||
set name = "Atom Emote"
|
||||
set category = VERB_CATEGORY_OBJECT
|
||||
|
||||
var/message_type_input = tgui_input_list(usr, "Choose Message Type", "Message Type", list("Audible","Visible","All"))
|
||||
if(!message_type_input)
|
||||
return
|
||||
|
||||
var/message_input = tgui_input_text(usr, "Atom Emote")
|
||||
if(!message_input)
|
||||
return
|
||||
|
||||
var/message_type
|
||||
switch(message_type_input)
|
||||
if("Audible")
|
||||
message_type = SAYCODE_TYPE_AUDIBLE
|
||||
if("Visible")
|
||||
message_type = SAYCODE_TYPE_VISIBLE
|
||||
if("All")
|
||||
message_type = SAYCODE_TYPE_ALWAYS
|
||||
|
||||
A.atom_emote(message_input, message_type)
|
||||
Reference in New Issue
Block a user