Skip to content

Commit

Permalink
Adds *annoyed and *sweatdrop emotes
Browse files Browse the repository at this point in the history
  • Loading branch information
Absolucy committed Jan 20, 2025
1 parent 7d69a0f commit cfbdba8
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 4 deletions.
6 changes: 4 additions & 2 deletions code/modules/mob/living/carbon/human/emote.dm
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,12 @@
return ..()
return FALSE

/datum/emote/living/carbon/human/glasses/run_emote(mob/user, params, type_override, intentional)
/datum/emote/living/carbon/human/glasses/run_emote(mob/living/carbon/human/user, params, type_override, intentional)
. = ..()
if(!ishuman(user))
return
var/image/emote_animation = image('icons/mob/species/human/emote_visuals.dmi', user, "glasses")
flick_overlay_global(emote_animation, GLOB.clients, 1.6 SECONDS)
flick_overlay_global(user.apply_height_offsets(emote_animation, UPPER_BODY), GLOB.clients, 1.6 SECONDS)

/datum/emote/living/carbon/human/grumble
key = "grumble"
Expand Down
4 changes: 2 additions & 2 deletions code/modules/mob/living/emote.dm
Original file line number Diff line number Diff line change
Expand Up @@ -394,12 +394,12 @@ monkestation edit end */
message_mime = "acts out an exaggerated silent sigh."
emote_type = EMOTE_VISIBLE | EMOTE_AUDIBLE

/datum/emote/living/sigh/run_emote(mob/living/user, params, type_override, intentional)
/datum/emote/living/sigh/run_emote(mob/living/carbon/human/user, params, type_override, intentional)
. = ..()
if(!ishuman(user))
return
var/image/emote_animation = image('icons/mob/species/human/emote_visuals.dmi', user, "sigh")
flick_overlay_global(emote_animation, GLOB.clients, 2.0 SECONDS)
flick_overlay_global(user.apply_height_offsets(emote_animation, UPPER_BODY), GLOB.clients, 2.0 SECONDS)

/datum/emote/living/sit
key = "sit"
Expand Down
37 changes: 37 additions & 0 deletions monkestation/code/modules/mob/living/carbon/emote.dm
Original file line number Diff line number Diff line change
Expand Up @@ -115,3 +115,40 @@

/obj/item/gun/ballistic/fingergun_emote/eject_magazine()
return

/datum/emote/living/carbon/sweatdrop
key = "sweatdrop"
key_third_person = "sweatdrops"
message = "sweats"
emote_type = EMOTE_VISIBLE
vary = TRUE
sound = 'monkestation/sound/effects/sweatdrop.ogg'

/datum/emote/living/carbon/sweatdrop/run_emote(mob/living/carbon/user, params, type_override, intentional)
. = ..()
if(!.)
return
var/image/emote_animation = image('monkestation/icons/mob/species/human/emote_visuals.dmi', user, "sweatdrop", pixel_x = 10, pixel_y = 10)
if(ishuman(user))
var/mob/living/carbon/human/human_user = user
emote_animation = human_user.apply_height_offsets(emote_animation, UPPER_BODY)
flick_overlay_global(emote_animation, GLOB.clients, 3 SECONDS)

/datum/emote/living/carbon/sweatdrop/sweat //This is entirely the same as sweatdrop, however people might use either, so I'm adding this one instead of editing the other one.
key = "sweat"

/datum/emote/living/carbon/annoyed
key = "annoyed"
emote_type = EMOTE_VISIBLE

/datum/emote/living/carbon/annoyed/run_emote(mob/living/carbon/user, params, type_override, intentional)
. = ..()
if(!.)
return
var/image/emote_animation = image('monkestation/icons/mob/species/human/emote_visuals.dmi', user, "annoyed", pixel_x = 10, pixel_y = 10)
if(ishuman(user))
var/mob/living/carbon/human/human_user = user
emote_animation = human_user.apply_height_offsets(emote_animation, UPPER_BODY)
flick_overlay_global(emote_animation, GLOB.clients, 5 SECONDS)
// as this emote has no message, it won't play a sound due to the parent proc, so we play it manually here
playsound(user, 'monkestation/sound/effects/annoyed.ogg', vol = 50, vary = TRUE)
Binary file not shown.
Binary file added monkestation/sound/effects/annoyed.ogg
Binary file not shown.
Binary file added monkestation/sound/effects/sweatdrop.ogg
Binary file not shown.

0 comments on commit cfbdba8

Please sign in to comment.