Files
GS13/hyperstation/code/mobs/emote.dm
quotefox 1a68b2a347 caw fix
2021-06-18 17:22:35 +01:00

33 lines
938 B
Plaintext

/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/caw/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)