Adds a bark emote

Adds a bark emote for you and your dog-like characters.

Tested in game and coded with help from Azarak
This commit is contained in:
Cydia
2020-08-02 04:22:08 -05:00
parent 8f0eabe199
commit 2c080c346f
2 changed files with 17 additions and 0 deletions
@@ -237,3 +237,20 @@
user.nextsoundemote = world.time + 7
playsound(user, 'modular_citadel/sound/voice/merp.ogg', 50, 1, -1)
. = ..()
/datum/emote/living/bark
key = "bark"
key_third_person = "barks like a dog!"
message = "barks like a dog!"
emote_type = EMOTE_AUDIBLE
muzzle_ignore = FALSE
restraint_check = FALSE
mob_type_allowed_typecache = list(/mob/living/carbon, /mob/living/silicon/pai)
/datum/emote/living/bark/run_emote(mob/living/user, params)
if(!(. = ..()))
return
if(user.nextsoundemote >= world.time)
return
user.nextsoundemote = world.time + 7
playsound(user, 'modular_citadel/sound/voice/bark.ogg', 50, 1, -1)
Binary file not shown.