mirror of
https://github.com/fulpstation/fulpstation.git
synced 2025-12-10 18:11:47 +00:00
Makes every emote keybindable
This commit is contained in:
committed by
Emmett Gaines
parent
783b6092a8
commit
00cbd41b1c
15
code/datums/keybinding/emote.dm
Normal file
15
code/datums/keybinding/emote.dm
Normal file
@@ -0,0 +1,15 @@
|
||||
/datum/keybinding/emote
|
||||
category = CATEGORY_EMOTE
|
||||
weight = WEIGHT_EMOTE
|
||||
var/emote_key
|
||||
|
||||
/datum/keybinding/emote/proc/link_to_emote(datum/emote/faketype)
|
||||
hotkey_keys = list("Unbound")
|
||||
emote_key = initial(faketype.key)
|
||||
name = initial(faketype.key)
|
||||
full_name = capitalize(initial(faketype.key))
|
||||
description = "Do the emote '*[emote_key]'"
|
||||
|
||||
/datum/keybinding/emote/down(client/user)
|
||||
. = ..()
|
||||
user.mob.emote(emote_key)
|
||||
Reference in New Issue
Block a user