/
brain_emote.dm
67 lines (54 loc) · 1.77 KB
/
brain_emote.dm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/**
* Emotes usable by brains, but only while they're in MMIs.
*/
/datum/emote/living/carbon/brain
mob_type_allowed_typecache = list(/mob/living/carbon/brain)
mob_type_blacklist_typecache = null
/// The message that will be displayed to themselves, since brains can't really see their own emotes
var/self_message
/datum/emote/living/carbon/brain/run_emote(mob/user, params, type_override, intentional)
. = ..()
if(!.)
return FALSE
if(self_message)
to_chat(user, self_message)
/datum/emote/living/carbon/brain/can_run_emote(mob/user, status_check, intentional)
. = ..()
if(!.)
return FALSE
var/mob/living/carbon/brain/B = user
if(!(B.container && istype(B.container, /obj/item/mmi))) // No MMI, no emotes
return FALSE
// So, brains can't really see their own emotes so we'll probably just want to send an extra message
/datum/emote/living/carbon/brain/alarm
key = "alarm"
key_third_person = "alarms"
message = "sounds an alarm."
self_message = "You sound an alarm."
/datum/emote/living/carbon/brain/alert
key = "alert"
key_third_person = "alerts"
message = "lets out a distressed noise."
self_message = "You let out a distressed noise."
/datum/emote/living/carbon/brain/notice
key = "notice"
message = "plays a loud tone."
self_message = "You play a loud tone."
/datum/emote/living/carbon/brain/flash
key = "flash"
message = "starts flashing its lights quickly!"
/datum/emote/living/carbon/brain/whistle
key = "whistle"
key_third_person = "whistles"
message = "whistles."
self_message = "You whistle."
/datum/emote/living/carbon/brain/beep
key = "beep"
key_third_person = "beeps"
message = "beeps."
self_message = "You beep."
/datum/emote/living/carbon/brain/boop
key = "boop"
key_third_person = "boops"
message = "boops."
self_message = "You boop."