mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-24 05:30:05 +01:00
25 lines
959 B
Plaintext
25 lines
959 B
Plaintext
/datum/emote/living/laugh
|
|
key = "laugh"
|
|
key_third_person = "laughs"
|
|
message = "laughs."
|
|
message_mime = "laughs silently!"
|
|
emote_type = EMOTE_AUDIBLE
|
|
vary = TRUE
|
|
mob_type_allowed_typecache = list(/mob/living/carbon, /mob/living/silicon/pai)
|
|
|
|
/datum/emote/living/laugh/get_sound(mob/living/user)
|
|
if(iscarbon(user))
|
|
var/mob/living/carbon/human/H = user
|
|
if(isnull(H.selected_laugh)) //For things that don't have a selected laugh(npcs)
|
|
if(user.gender == MALE)
|
|
return pick('sound/mobs/humanoids/human/laugh/manlaugh1.ogg',
|
|
'sound/mobs/humanoids/human/laugh/manlaugh2.ogg')
|
|
else
|
|
return pick('modular_skyrat/modules/emotes/sound/emotes/female/female_giggle_1.ogg',
|
|
'modular_skyrat/modules/emotes/sound/emotes/female/female_giggle_2.ogg')
|
|
if(user.gender == MALE || !LAZYLEN(H.selected_laugh.female_laughsounds))
|
|
return pick(H.selected_laugh.male_laughsounds)
|
|
else
|
|
return pick(H.selected_laugh.female_laughsounds)
|
|
return
|