|
| 1 | +/atom/movable/proc/display_image_in_bubble(image/displayed_image) |
| 2 | + var/mutable_appearance/display_bubble = mutable_appearance( |
| 3 | + 'icons/effects/effects.dmi', |
| 4 | + "thought_bubble", |
| 5 | + offset_spokesman = src, |
| 6 | + plane = BALLOON_CHAT_PLANE, |
| 7 | + appearance_flags = KEEP_APART, |
| 8 | + ) |
| 9 | + var/mutable_appearance/pointed_atom_appearance = new(displayed_image.appearance) |
| 10 | + pointed_atom_appearance.blend_mode = BLEND_INSET_OVERLAY |
| 11 | + pointed_atom_appearance.plane = FLOAT_PLANE |
| 12 | + pointed_atom_appearance.layer = FLOAT_LAYER |
| 13 | + pointed_atom_appearance.pixel_x = 0 |
| 14 | + pointed_atom_appearance.pixel_y = 0 |
| 15 | + display_bubble.overlays += pointed_atom_appearance |
| 16 | + display_bubble.pixel_w = 16 |
| 17 | + display_bubble.pixel_z = 32 |
| 18 | + display_bubble.alpha = 200 |
| 19 | + add_overlay(display_bubble) |
| 20 | + LAZYADD(update_overlays_on_z, display_bubble) |
| 21 | + addtimer(CALLBACK(src, PROC_REF(clear_display_bubble), display_bubble), 3 SECONDS) |
| 22 | + |
| 23 | +/atom/movable/proc/clear_display_bubble(mutable_appearance/display_bubble) |
| 24 | + LAZYREMOVE(update_overlays_on_z, display_bubble) |
| 25 | + cut_overlay(display_bubble) |
| 26 | + |
| 27 | +/datum/emote/living/carbon/human/aprilfools |
| 28 | + var/emote_icon = 'modular_meta/features/emotes/icons/aprilfools_emotes.dmi' |
| 29 | + var/emote_icon_state = null |
| 30 | + cooldown = 20 SECONDS |
| 31 | + emote_type = EMOTE_VISIBLE |
| 32 | + |
| 33 | +/datum/emote/living/carbon/human/aprilfools/run_emote(mob/user) |
| 34 | + . = ..() |
| 35 | + var/image/emote_image = image(emote_icon, user, emote_icon_state) |
| 36 | + user.display_image_in_bubble(emote_image) |
| 37 | + |
| 38 | +/datum/emote/living/carbon/human/aprilfools/clueless |
| 39 | + key = "clueless" |
| 40 | + message = "looks clueless." |
| 41 | + emote_icon_state = "clueless" |
| 42 | + |
| 43 | +/datum/emote/living/carbon/human/aprilfools/hmm |
| 44 | + key = "hmm" |
| 45 | + message = "squints their eyes." |
| 46 | + emote_icon_state = "hmm" |
| 47 | + |
| 48 | +/datum/emote/living/carbon/human/aprilfools/troll |
| 49 | + key = "lmao" |
| 50 | + message = "is laughing their ass off!" |
| 51 | + emote_icon_state = "troll" |
| 52 | + |
| 53 | +/datum/emote/living/carbon/human/aprilfools/reallymad |
| 54 | + key = "reallymad" |
| 55 | + message = "looks really mad about something!" |
| 56 | + emote_icon_state = "reallymad" |
| 57 | + sound = 'modular_meta/features/emotes/sounds/aprilfools/angry.ogg' |
| 58 | + |
| 59 | +/datum/emote/living/carbon/human/aprilfools/zorp |
| 60 | + key = "zorp" |
| 61 | + message = "feels their impending doom approaching." |
| 62 | + emote_icon_state = "zorp" |
| 63 | + sound = 'modular_meta/features/emotes/sounds/aprilfools/bell.ogg' |
| 64 | + |
| 65 | +/datum/emote/living/carbon/human/aprilfools/uncanny |
| 66 | + key = "uncanny" |
| 67 | + message = "looks really uncanny." |
| 68 | + emote_icon_state = "uncanny" |
| 69 | + sound = 'modular_meta/features/emotes/sounds/aprilfools/bell.ogg' |
| 70 | + |
| 71 | +/datum/emote/living/carbon/human/aprilfools/xdd |
| 72 | + key = "xdd" |
| 73 | + message = "laughs." |
| 74 | + emote_icon_state = "xdd" |
| 75 | + |
| 76 | +/datum/emote/living/carbon/human/aprilfools/xdd/run_emote(mob/user, params, type_override, intentional) |
| 77 | + . = ..() |
| 78 | + playsound(user, pick('modular_meta/features/emotes/sounds/aprilfools/goofylaugh.ogg', 'modular_meta/features/emotes/sounds/aprilfools/goofylaugh.ogg', 'modular_meta/features/emotes/sounds/aprilfools/goofylaugh.ogg', 'modular_meta/features/emotes/sounds/aprilfools/goofylaugh.ogg', 'modular_meta/features/emotes/sounds/aprilfools/goofylaugh2.ogg'), 50) |
| 79 | + |
| 80 | +/datum/emote/living/carbon/human/aprilfools/taa |
| 81 | + key = "taa" |
| 82 | + message = "smokes an imaginary cigar." |
| 83 | + emote_icon_state = "taa" |
| 84 | + sound = 'modular_meta/features/emotes/sounds/aprilfools/rizz.ogg' |
| 85 | + |
| 86 | +/datum/emote/living/carbon/human/aprilfools/noway |
| 87 | + key = "noway" |
| 88 | + message = "looks shocked!" |
| 89 | + emote_icon_state = "noway" |
| 90 | + sound = 'modular_meta/features/emotes/sounds/aprilfools/rizz.ogg' |
| 91 | + |
| 92 | +/datum/emote/living/carbon/human/aprilfools/tuh |
| 93 | + key = "tuh" |
| 94 | + message = "gasps in shock!" |
| 95 | + emote_icon_state = "tuh" |
| 96 | + sound = 'modular_meta/features/emotes/sounds/aprilfools/vineboom.ogg' |
| 97 | + |
| 98 | +/datum/emote/living/carbon/human/aprilfools/jokerge |
| 99 | + key = "jokerge" |
| 100 | + message = "grins." |
| 101 | + emote_icon_state = "jokerge" |
| 102 | + |
| 103 | +/datum/emote/living/carbon/human/aprilfools/fuckingdies |
| 104 | + key = "fuckingdies" |
| 105 | + message = "fucking dies." |
| 106 | + emote_icon_state = "die" |
| 107 | + sound = 'modular_meta/features/emotes/sounds/aprilfools/rpdeath.ogg' |
| 108 | + |
| 109 | +// Дальше идут мои эмоуты |
| 110 | + |
| 111 | +/datum/emote/living/carbon/human/aprilfools/sex |
| 112 | + key = "sex" |
| 113 | + message = "includes a secret intent." |
| 114 | + emote_icon_state = "sex" |
| 115 | + sound = 'modular_meta/features/emotes/sounds/aprilfools/gey-echo.ogg' |
| 116 | + |
| 117 | +/datum/emote/living/carbon/human/aprilfools/haram |
| 118 | + key = "haram" |
| 119 | + message = "это haram!" |
| 120 | + emote_icon_state = "haram" |
| 121 | + sound = 'modular_meta/features/emotes/sounds/aprilfools/musulmanin.ogg' |
| 122 | + |
| 123 | +/datum/emote/living/carbon/human/aprilfools/robloxlaugh |
| 124 | + key = "robloxlaugh" |
| 125 | + message = "laughs like John Roblox." |
| 126 | + emote_icon_state = "robloxlaugh" |
| 127 | + sound = 'modular_meta/features/emotes/sounds/aprilfools/laughter-hahahahahaahahahah-funnyy.ogg' |
| 128 | + |
| 129 | +/datum/emote/living/carbon/human/aprilfools/poebat |
| 130 | + key = "poebat" |
| 131 | + message = "he doesn't care." |
| 132 | + emote_icon_state = "poebat" |
| 133 | + sound = 'modular_meta/features/emotes/sounds/aprilfools/rizz-sound.ogg' |
| 134 | + |
| 135 | +/datum/emote/living/carbon/human/aprilfools/money |
| 136 | + key = "money" |
| 137 | + message = "shows you the money!" |
| 138 | + emote_icon_state = "money" |
| 139 | + |
| 140 | +/datum/emote/living/carbon/human/aprilfools/true |
| 141 | + key = "true" |
| 142 | + message = "speaks the truth." |
| 143 | + emote_icon_state = "true" |
| 144 | + |
| 145 | +/datum/emote/living/carbon/human/aprilfools/jokerge1 |
| 146 | + key = "jokerge1" |
| 147 | + message = "grins maniacally." |
| 148 | + emote_icon_state = "jokerge1" |
| 149 | + |
| 150 | +/datum/emote/living/carbon/human/aprilfools/red |
| 151 | + key = "red" |
| 152 | + message = "it looks red." |
| 153 | + emote_icon_state = "red" |
| 154 | + sound = 'modular_meta/features/emotes/sounds/aprilfools/ia-uzhe-krasnyi.ogg' |
| 155 | + |
| 156 | +/datum/emote/living/carbon/human/aprilfools/ohmygod |
| 157 | + key = "ohmygod" |
| 158 | + message = "pleasantly surprised." |
| 159 | + emote_icon_state = "ohmygod" |
| 160 | + sound = 'modular_meta/features/emotes/sounds/aprilfools/ohmygod.ogg' |
| 161 | + |
0 commit comments