Skip to content

Commit

Permalink
Yautja Falcon Relay (#3981)
Browse files Browse the repository at this point in the history
# About the pull request
This PR allows the Yautja Falcon Drones to relay chat back to their
operator.
<!-- Remove this text and explain what the purpose of your PR is.

Mention if you have tested your changes. If you changed a map, make sure
you used the mapmerge tool.
If this is an Issue Correction, you can type "Fixes Issue #169420" to
link the PR to the corresponding Issue number #169420.

Remember: something that is self-evident to you might not be to others.
Explain your rationale fully, even if you feel it goes without saying.
-->

# Explain why it's good for the game
Allows Yautja to stalk their prey somewhat more effectively, also makes
reasonable sense as a spy/recon drone would hopefully hear things around
it, as it's not that far above the heads of those it's watching.
# Testing Photographs and Procedure
<details>
<summary>Screenshots & Videos</summary>

Put screenshots and videos here with an empty line between the
screenshots and the `<details>` tags.

</details>


# Changelog
:cl:
add: Allowed Falcon Drones to relay speech back to their operators.
/:cl:
  • Loading branch information
realforest2001 committed Jul 25, 2023
1 parent 37b0f4f commit cd2baa7
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions code/modules/cm_preds/falcon.dm
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,27 @@
)
flags_equip_slot = SLOT_EAR
flags_item = ITEM_PREDATOR
flags_atom = FPRINT|USES_HEARING


/obj/item/falcon_drone/hear_talk(mob/living/sourcemob, message, verb, datum/language/language, italics)
var/mob/hologram/falcon/hologram = loc
if(!istype(hologram))
return FALSE
var/mob/living/carbon/human/user = hologram.owned_bracers.loc
if(!ishuman(user) || user == sourcemob)
return FALSE

to_chat(user, SPAN_YAUTJABOLD("Falcon Relay: [sourcemob.name] [verb], <span class='[language.color]'>\"[message]\"</span>"))
if(user && user.client && user.client.prefs && !user.client.prefs.lang_chat_disabled \
&& !user.ear_deaf && user.say_understands(sourcemob, language))
sourcemob.langchat_display_image(user)

return TRUE

/obj/item/falcon_drone/get_examine_location(mob/living/carbon/human/wearer, mob/examiner, slot, t_he = "They", t_his = "their", t_him = "them", t_has = "have", t_is = "are")
switch(slot)
if(WEAR_L_EAR)
return "on [t_his] shoulder"
if(WEAR_R_EAR)
if(WEAR_L_EAR, WEAR_R_EAR)
return "on [t_his] shoulder"
return ..()

Expand Down

0 comments on commit cd2baa7

Please sign in to comment.