mirror of
https://github.com/quotefox/Hyper-Station-13.git
synced 2026-07-09 14:53:12 +01:00
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:
@@ -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.
Reference in New Issue
Block a user