obj
cloak
name = "Cloak 10000"
var/power = 10000
icon = 'icon.dmi'
icon_state = "cloak"
verb
cloak()
set category = null
if(usr.invisibility == 0)
if(src.power >= 7499)
usr.invisibility = 1
src.power -= 7500
src.name = "Cloak [src.power]"
src.icon_state = "cloak on"
usr.see_invisible = 1
new/obj/View(usr.client)
else
usr.invisibility = 0
src.icon_state = "cloak"
usr.see_invisible = 0
for(var/obj/View/O in usr.client.screen)
del O
I need to find a way to make it so you cant see other people that are cloaked when you cloak. I would also like for it to constantly drain the power slowly and go off when the power is zero.
Lummox JR