From e8708644ce6f5b8e274791407b44fa33b215e9ef Mon Sep 17 00:00:00 2001 From: SabreML <57483089+SabreML@users.noreply.github.com> Date: Sat, 20 Jan 2024 13:09:54 +0000 Subject: [PATCH] Makes larvae and facehuggers able to use custom emotes (#5496) # About the pull request Makes larvae and facehuggers able to use custom emotes with the 'me' verb. (All other emotes still work the same as before.) (The code just being copy+pasted between the two castes isn't great, but I can't really think of a cleaner way of doing it.) # Explain why it's good for the game Larva RP is one of the most vital parts of the game. # Testing Photographs and Procedure
Screenshots & Videos Put screenshots and videos here with an empty line between the screenshots and the `
` tags.
# Changelog :cl: add: Made larvae and facehuggers able to use custom emotes. /:cl: --- .../mob/living/carbon/xenomorph/castes/Facehugger.dm | 6 ++++++ code/modules/mob/living/carbon/xenomorph/castes/Larva.dm | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/code/modules/mob/living/carbon/xenomorph/castes/Facehugger.dm b/code/modules/mob/living/carbon/xenomorph/castes/Facehugger.dm index 32531e5325c6..7ce3a8750568 100644 --- a/code/modules/mob/living/carbon/xenomorph/castes/Facehugger.dm +++ b/code/modules/mob/living/carbon/xenomorph/castes/Facehugger.dm @@ -220,7 +220,13 @@ return /mob/living/carbon/xenomorph/facehugger/emote(act, m_type, message, intentional, force_silence) + // Custom emote + if(act == "me") + return ..() + + // Otherwise, ""roar""! playsound(loc, "alien_roar_larva", 15) + return TRUE /mob/living/carbon/xenomorph/facehugger/get_status_tab_items() . = ..() diff --git a/code/modules/mob/living/carbon/xenomorph/castes/Larva.dm b/code/modules/mob/living/carbon/xenomorph/castes/Larva.dm index 6d5c6699b929..f1c77e7fb757 100644 --- a/code/modules/mob/living/carbon/xenomorph/castes/Larva.dm +++ b/code/modules/mob/living/carbon/xenomorph/castes/Larva.dm @@ -157,7 +157,13 @@ return larva /mob/living/carbon/xenomorph/larva/emote(act, m_type, message, intentional, force_silence) + // Custom emote + if(act == "me") + return ..() + + // Otherwise, ""roar""! playsound(loc, "alien_roar_larva", 15) + return TRUE /mob/living/carbon/xenomorph/larva/is_xeno_grabbable() return TRUE