Miming Refactor

This commit is contained in:
Fox-McCloud
2016-02-28 22:40:00 -05:00
parent 38075f4beb
commit e2bb00a5b1
15 changed files with 103 additions and 68 deletions
+4 -5
View File
@@ -3,14 +3,13 @@
name = "FORCEWALL"
icon = 'icons/effects/effects.dmi'
icon_state = "m_shield"
anchored = 1.0
anchored = 1
opacity = 0
density = 1
unacidable = 1
/obj/effect/forcefield/CanAtmosPass(turf/T)
return !density
///////////Mimewalls///////////
@@ -18,7 +17,7 @@
icon_state = "empty"
name = "invisible wall"
desc = "You have a bad feeling about this."
var/timeleft = 50
var/timeleft = 300
var/last_process = 0
/obj/effect/forcefield/mime/New()
+9 -3
View File
@@ -19,13 +19,19 @@
if(!ishuman(user))
user << "\red You don't know how to use this!"
return
if(user:miming || user.silent)
user << "\red You find yourself unable to speak at all."
if(user.silent)
user << "<span class='warning'>You find yourself unable to speak at all.</span>"
return
if(ishuman(user))
var/mob/living/carbon/human/H = user
if(H & H.mind)
if(H.mind.miming)
user << "<span class='warning'>Your vow of silence prevents you from speaking.</span>"
return
if(spamcheck)
user << "\red \The [src] needs to recharge!"
return
var/message = input(user, "Shout a message:", "Megaphone") as text|null
if(!message)
return
@@ -285,6 +285,9 @@ var/global/list/default_medbay_channels = list(
if(wires.IsIndexCut(WIRE_TRANSMIT)) // The device has to have all its wires and shit intact
return 0
if(!M.IsVocal())
return 0
M.last_target_click = world.time
/* Quick introduction: