Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Blundir committed Aug 13, 2024
1 parent 05f4f31 commit e5f8b1c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions code/__DEFINES/flags.dm
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
#define EMOTE_IMPORTANT (1<<2)
/// Does the emote not have a message?
#define EMOTE_NO_MESSAGE (1<<3)
/// Can only code call this event instead of the player.
#define EMOTE_FORCED_AUDIO (1<<4)

// Bitflags for Working Joe emotes
/// Working Joe emote
Expand Down
3 changes: 3 additions & 0 deletions code/datums/emotes.dm
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,9 @@
return FALSE
if(is_type_in_typecache(user, mob_type_blacklist_typecache))
return FALSE
if(intentional)
if(emote_type & EMOTE_FORCED_AUDIO)
return FALSE
if(status_check && !is_type_in_typecache(user, mob_type_ignore_stat_typecache))
if(user.stat > stat_allowed)
if(!intentional)
Expand Down
2 changes: 1 addition & 1 deletion code/modules/mob/living/carbon/human/emote.dm
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@
/datum/emote/living/carbon/human/burstscream
key = "burstscream"
message = "screams in agony!"
emote_type = EMOTE_AUDIBLE
emote_type = EMOTE_FORCED_AUDIO|EMOTE_AUDIBLE|EMOTE_VISIBLE
stat_allowed = UNCONSCIOUS

/datum/emote/living/carbon/human/burstscream/get_sound(mob/living/carbon/human/user)
Expand Down

0 comments on commit e5f8b1c

Please sign in to comment.