*chirp and *caw for avians.

emotes.
This commit is contained in:
quotefox
2021-06-16 18:16:10 +01:00
parent d42c8e09c0
commit 2e53798e05
5 changed files with 35 additions and 0 deletions
+1
View File
@@ -75,3 +75,4 @@
user.nextsoundemote = world.time + 7
playsound(user, 'modular_citadel/sound/voice/speen.ogg', 50, 1, -1)
. = ..()
+33
View File
@@ -0,0 +1,33 @@
/datum/emote/living/chirp
key = "chirp"
key_third_person = "chirps!"
message = "chirps!"
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/chirp/run_emote(mob/living/user, params)
if(!(. = ..()))
return
if(user.nextsoundemote >= world.time)
return
user.nextsoundemote = world.time + 7
playsound(user, 'sound/voice/chirp.ogg', 50, 1, -1)
/datum/emote/living/caw
key = "caw"
key_third_person = "caws!"
message = "caws!"
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/chirp/run_emote(mob/living/user, params)
if(!(. = ..()))
return
if(user.nextsoundemote >= world.time)
return
user.nextsoundemote = world.time + 7
playsound(user, 'sound/voice/caw.ogg', 50, 1, -1)
Binary file not shown.
Binary file not shown.
+1
View File
@@ -3064,6 +3064,7 @@
#include "hyperstation\code\hyperbot\hyperbot.dm"
#include "hyperstation\code\mobs\carrion.dm"
#include "hyperstation\code\mobs\dancer.dm"
#include "hyperstation\code\mobs\emote.dm"
#include "hyperstation\code\mobs\hugbot.dm"
#include "hyperstation\code\mobs\mimic.dm"
#include "hyperstation\code\mobs\werewolf.dm"