Merge pull request #633 from Fox-McCloud/Best-Emag-Use

Fixes There Not Being a Best Emag Use
This commit is contained in:
ZomgPonies
2015-03-23 11:13:44 -04:00
+14
View File
@@ -149,6 +149,7 @@
icon_state = "sechailer"
var/cooldown = 0
var/aggressiveness = 2
var/safety = 1
ignore_maskadjust = 0
species_fit = list()
action_button_name = "HALT!"
@@ -203,6 +204,13 @@
/obj/item/clothing/mask/gas/sechailer/attack_self()
halt()
/obj/item/clothing/mask/gas/sechailer/emag_act(mob/user as mob)
if(safety)
safety = 0
user << "<span class='warning'>You silently fry [src]'s vocal circuit with the cryptographic sequencer."
else
return
/obj/item/clothing/mask/gas/sechailer/verb/halt()
set category = "Object"
set name = "HALT"
@@ -216,6 +224,12 @@
if(cooldown < world.time - 35) // A cooldown, to stop people being jerks
if(!safety)
phrase_text = "FUCK YOUR CUNT YOU SHIT EATING COCKSUCKER MAN EAT A DONG FUCKING ASS RAMMING SHIT FUCK EAT PENISES IN YOUR FUCK FACE AND SHIT OUT ABORTIONS OF FUCK AND DO SHIT IN YOUR ASS YOU COCK FUCK SHIT MONKEY FUCK ASS WANKER FROM THE DEPTHS OF SHIT."
usr.visible_message("[usr]'s Compli-o-Nator: <font color='red' size='4'><b>[phrase_text]</b></font>")
playsound(src.loc, 'sound/voice/binsult.ogg', 100, 0, 4)
cooldown = world.time
return
switch(aggressiveness) // checks if the user has unlocked the restricted phrases
if(1)
phrase = rand(1,5) // set the upper limit as the phrase above the first 'bad cop' phrase, the mask will only play 'nice' phrases