Merge pull request #367 from CydiaButt13/CydiaButt13

Adds a bark emote
This commit is contained in:
Dahlular
2020-08-02 04:34:10 -06:00
committed by GitHub
2 changed files with 18 additions and 0 deletions
@@ -237,3 +237,21 @@
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
var/path = pick(list('modular_citadel/sound/voice/bark.ogg', 'modular_citadel/sound/voice/bark1.ogg', 'modular_citadel/sound/voice/bark2.ogg'))
playsound(user, path, 50, 1, -1)
Binary file not shown.