Files
GS13NG/hyperstation/code/mobs/emote.dm
2024-09-13 01:50:58 -04: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)