Ports the salute emote sound from CM-SS13 (#22017)

* Ports the salute emote sound from CM-SS13

* valid_shoes list

* funny shoes sounds

* Update code/modules/mob/living/carbon/human/human_emote.dm

Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>

* Update code/modules/mob/living/carbon/human/human_emote.dm

---------

Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>
This commit is contained in:
Henri215
2023-09-01 17:48:40 -03:00
committed by GitHub
parent 181b9e5c02
commit 3dd1fc7b19
2 changed files with 12 additions and 0 deletions

View File

@@ -220,6 +220,18 @@
message = "salutes."
message_param = "salutes to %t."
hands_use_check = TRUE
audio_cooldown = 3 SECONDS
var/list/serious_shoes = list(/obj/item/clothing/shoes/jackboots, /obj/item/clothing/shoes/combat,
/obj/item/clothing/shoes/centcom, /obj/item/clothing/shoes/laceup)
var/list/funny_shoes = list(/obj/item/clothing/shoes/magboots/clown, /obj/item/clothing/shoes/clown_shoes,
/obj/item/clothing/shoes/cursedclown, /obj/item/clothing/shoes/ducky)
/datum/emote/living/carbon/human/salute/get_sound(mob/living/user)
var/mob/living/carbon/human/H = user
if(is_type_in_list(H.shoes, serious_shoes))
return 'sound/effects/salute.ogg'
if(is_type_in_list(H.shoes, funny_shoes))
return 'sound/items/toysqueak1.ogg'
/datum/emote/living/carbon/human/shrug
key = "shrug"