-
-
Notifications
You must be signed in to change notification settings - Fork 444
/
Copy pathmask.dm
261 lines (237 loc) · 9.28 KB
/
mask.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
/**
* An undroppable mask that changes the user's speech to be unintelligable
*/
/obj/item/clothing/mask/yogs/cluwne
name = "clown wig and mask"
desc = "A true prankster's facial attire. A clown is incomplete without his wig and mask."
alternate_screams = list('yogstation/sound/voice/cluwnelaugh1.ogg','yogstation/sound/voice/cluwnelaugh2.ogg','yogstation/sound/voice/cluwnelaugh3.ogg')
flags_cover = MASKCOVERSEYES
icon_state = "cluwne"
item_state = "cluwne"
resistance_flags = INDESTRUCTIBLE | LAVA_PROOF | FIRE_PROOF | UNACIDABLE | ACID_PROOF
flags_1 = MASKINTERNALS
item_flags = ABSTRACT | DROPDEL
flags_inv = HIDEEARS | HIDEEYES
modifies_speech = TRUE
///world.time when a clune laugh was last played
var/last_sound = 0
///cooldown before playing another cluwne laugh
var/delay = 15
///if the mask should cluwne you when you put it on
var/auto_cluwne = TRUE
/obj/item/clothing/mask/yogs/cluwne/Initialize(mapload)
.=..()
ADD_TRAIT(src, TRAIT_NODROP, CURSED_ITEM_TRAIT(type))
/**
* Plays one of three cluwne laughs
*/
/obj/item/clothing/mask/yogs/cluwne/proc/play_laugh()
if(world.time > last_sound + delay)
var/i = rand(1,3)
switch(i)
if(1)
playsound (src, 'yogstation/sound/voice/cluwnelaugh1.ogg', 30, 1)
if(2)
playsound (src, 'yogstation/sound/voice/cluwnelaugh2.ogg', 30, 1)
if(3)
playsound (src, 'yogstation/sound/voice/cluwnelaugh3.ogg', 30, 1)
last_sound = world.time
/obj/item/clothing/mask/yogs/cluwne/handle_speech(datum/source, list/speech_args) //whenever you speak
if(!CHECK_BITFIELD(clothing_flags, VOICEBOX_DISABLED))
if(prob(5)) //the brain isnt fully gone yet...
speech_args[SPEECH_MESSAGE] = pick("HELP ME!!","PLEASE KILL ME!!","I WANT TO DIE!!", "END MY SUFFERING", "I CANT TAKE THIS ANYMORE!!" ,"SOMEBODY STOP ME!!")
play_laugh()
if(prob(3))
speech_args[SPEECH_MESSAGE] = pick("HOOOOINKKKKKKK!!", "HOINK HOINK HOINK HOINK!!","HOINK HOINK!!","HOOOOOOIIINKKKK!!") //but most of the time they cant speak,
play_laugh()
else
speech_args[SPEECH_MESSAGE] = pick("HEEEENKKKKKK!!", "HONK HONK HONK HONK!!","HONK HONK!!","HOOOOOONKKKK!!") //More sounds,
play_laugh()
/obj/item/clothing/mask/yogs/cluwne/equipped(mob/user, slot)
. = ..()
if(!ishuman(user))
return
if(slot == ITEM_SLOT_MASK)
play_laugh()
if(auto_cluwne)
var/mob/living/carbon/human/H = user
H.dna.add_mutation(CLUWNEMUT)
/**
* Togglable cluwne mask that has a small chance to turn the user into a cluwne or create a floor cluwne with the user as a target
*
* The logic of the cluwne mask is predetermined in [/obj/item/clothing/mask/yogs/cluwne/happy_cluwne/proc/Initialize] to prevent spamming the equip until you get a floor cluwne
*/
/obj/item/clothing/mask/yogs/cluwne/happy_cluwne
name = "Happy Cluwne Mask"
desc = "The mask of a poor cluwne that has been scrubbed of its curse by the Nanotrasen supernatural machinations division. Guaranteed to be 99% curse free and 99.9% not haunted."
item_flags = ABSTRACT
clothing_flags = VOICEBOX_TOGGLABLE
auto_cluwne = FALSE
/// If active, turns the user into a cluwne
var/does_cluwne = FALSE
/// If active, creates a floor cluwne with the user as a target
var/does_floor_cluwne = FALSE
/obj/item/clothing/mask/yogs/cluwne/happy_cluwne/Initialize(mapload)
.=..()
REMOVE_TRAIT(src, TRAIT_NODROP, CURSED_ITEM_TRAIT(type))
if(prob(1)) //this function pre-determines the logic of the cluwne mask. applying and reapplying the mask does not alter or change anything
does_cluwne = TRUE
does_floor_cluwne = FALSE
else if(prob(0.1))
does_cluwne = FALSE
does_floor_cluwne = TRUE
/obj/item/clothing/mask/yogs/cluwne/happy_cluwne/equipped(mob/user, slot)
. = ..()
if(!ishuman(user))
return
var/mob/living/carbon/human/H = user
if(slot == ITEM_SLOT_MASK)
if(does_cluwne)
log_admin("[key_name(H)] was made into a cluwne by [src]")
message_admins("[key_name(H)] got cluwned by [src]")
to_chat(H, span_userdanger("The masks straps suddenly tighten to your face and your thoughts are erased by a horrible green light!"))
H.dropItemToGround(src)
ADD_TRAIT(src, TRAIT_NODROP, CURSED_ITEM_TRAIT(type))
H.cluwneify()
qdel(src)
else if(does_floor_cluwne)
var/turf/T = get_turf(src)
var/mob/living/simple_animal/hostile/floor_cluwne/S = new(T)
S.Acquire_Victim(user)
log_admin("[key_name(user)] summoned a floor cluwne using the [src]")
message_admins("[key_name(user)] summoned a floor cluwne using the [src]")
to_chat(H, span_warning("The mask suddenly slips off your face and... slides under the floor?"))
to_chat(H, "<i>...dneirf uoy ot gnoleb ton seod tahT</i>")
qdel(src)
/obj/item/clothing/mask/yogs/ronald
name = "ronald mask"
desc = "A mask worn by the popular children fast food salesman."
clothing_flags = MASKINTERNALS
icon_state = "ronald"
item_state = "ronald"
flags_cover = MASKCOVERSEYES
flags_inv = HIDEEARS|HIDEEYES|HIDEFACE|HIDEFACIALHAIR|HIDEHAIR
resistance_flags = FLAMMABLE
/obj/item/clothing/mask/yogs/fawkes
name = "fawkes mask"
desc = "A mask often worn by that hacker known as 4chan."
clothing_flags = MASKINTERNALS
icon_state = "fawkes"
item_state = "fawkes"
flags_cover = MASKCOVERSEYES
flags_inv = HIDEEARS|HIDEEYES|HIDEFACE|HIDEFACIALHAIR|HIDEEYES
resistance_flags = FLAMMABLE
/obj/item/clothing/mask/yogs/thejester
name = "jester mask"
desc = "A mask often seen being worn by criminals during bank robberies."
clothing_flags = MASKINTERNALS
icon_state = "the_jester"
item_state = "the_jester"
flags_cover = MASKCOVERSEYES
flags_inv = HIDEEARS|HIDEEYES|HIDEFACE|HIDEFACIALHAIR|HIDEEYES
resistance_flags = FLAMMABLE
/obj/item/clothing/mask/yogs/dallas
name = "dallas mask"
desc = "A mask often seen being worn by criminals during bank robberies."
clothing_flags = MASKINTERNALS
icon_state = "pddallas"
item_state = "pddallas"
flags_cover = MASKCOVERSEYES
resistance_flags = FLAMMABLE
/obj/item/clothing/mask/yogs/hoxton
name = "hoxton mask"
desc = "A mask often seen being worn by criminals during bank robberies."
clothing_flags = MASKINTERNALS
icon_state = "pdhoxton"
item_state = "pdhoxton"
flags_cover = MASKCOVERSEYES
flags_inv = HIDEEARS|HIDEEYES|HIDEFACE|HIDEFACIALHAIR|HIDEEYES
resistance_flags = FLAMMABLE
/obj/item/clothing/mask/yogs/robwolf
name = "wolf mask"
desc = "A mask often seen being worn by criminals during bank robberies."
clothing_flags = MASKINTERNALS
icon_state = "pdwolf"
item_state = "pdwolf"
flags_cover = MASKCOVERSEYES
flags_inv = HIDEEARS|HIDEEYES|HIDEFACE|HIDEFACIALHAIR|HIDEEYES
resistance_flags = FLAMMABLE
/obj/item/clothing/mask/yogs/chains
name = "chains mask"
desc = "A mask often seen being worn by criminals during bank robberies."
clothing_flags = MASKINTERNALS
icon_state = "pdchains"
item_state = "pdchains"
flags_cover = MASKCOVERSEYES
flags_inv = HIDEEARS|HIDEEYES|HIDEFACE|HIDEFACIALHAIR|HIDEEYES
resistance_flags = FLAMMABLE
/obj/item/clothing/mask/yogs/scaryclown
name = "scary clown mask"
desc = "A clown mask often seen being worn by sewer clowns."
clothing_flags = MASKINTERNALS
icon_state = "scaryclownmask"
item_state = "scaryclownmask"
flags_cover = MASKCOVERSEYES
flags_inv = HIDEEARS|HIDEEYES|HIDEFACE|HIDEFACIALHAIR|HIDEHAIR
resistance_flags = FLAMMABLE
/obj/item/clothing/mask/yogs/gigglesmask
name = "giggles mask"
desc = "Sometimes there are some things better left off not existing, this is one of them."
clothing_flags = MASKINTERNALS
icon_state = "gigglesmask"
item_state = "gigglesmask"
flags_cover = MASKCOVERSEYES
flags_inv = HIDEEARS|HIDEEYES|HIDEFACE|HIDEFACIALHAIR|HIDEHAIR
resistance_flags = FLAMMABLE
/obj/item/clothing/mask/yogs/bananamask
name = "banana mask"
desc = "Do you want a banana?"
clothing_flags = MASKINTERNALS
worn_icon = 'yogstation/icons/mob/large-worn-icons/64x64/masks.dmi'
icon_state = "bananamask"
item_state = "bananamask"
worn_x_dimension = 64
worn_y_dimension = 64
flags_cover = MASKCOVERSEYES
flags_inv = HIDEEARS|HIDEEYES|HIDEFACE|HIDEFACIALHAIR|HIDEHAIR
resistance_flags = FLAMMABLE
/obj/item/clothing/mask/yogs/richard
name = "rooster mask"
desc = "Perfect mask for killing russian mob thugs!"
clothing_flags = MASKINTERNALS
flags_inv = HIDEEARS|HIDEFACE|HIDEFACIALHAIR|HIDEHAIR
icon_state = "richard"
item_state = "richard"
resistance_flags = FLAMMABLE
/obj/item/clothing/mask/yogs/freddy
name = "brown bear mask"
desc = "A mask representing an old pizza place mascot."
clothing_flags = MASKINTERNALS
flags_inv = HIDEEARS|HIDEFACE|HIDEFACIALHAIR|HIDEHAIR
icon_state = "freddy"
item_state = "freddy"
resistance_flags = FLAMMABLE
/obj/item/clothing/mask/yogs/bonnie
name = "purple bunny mask"
desc = "A mask representing an old pizza place mascot."
clothing_flags = MASKINTERNALS
flags_inv = HIDEEARS|HIDEFACE|HIDEFACIALHAIR|HIDEHAIR
icon_state = "bonnie"
item_state = "bonnie"
resistance_flags = FLAMMABLE
/obj/item/clothing/mask/yogs/chica
name = "yellow chicken mask"
desc = "A mask representing an old pizza place mascot."
clothing_flags = MASKINTERNALS
flags_inv = HIDEEARS|HIDEFACE|HIDEFACIALHAIR|HIDEHAIR
icon_state = "chica"
item_state = "chica"
resistance_flags = FLAMMABLE
/obj/item/clothing/mask/yogs/foxy
name = "red fox mask"
desc = "A mask representing an old pizza place mascot."
clothing_flags = MASKINTERNALS
flags_inv = HIDEEARS|HIDEFACE|HIDEFACIALHAIR|HIDEHAIR
icon_state = "foxy"
item_state = "foxy"
resistance_flags = FLAMMABLE