mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2025-12-29 19:52:12 +00:00
Cleaned up the files themselves. Everything in code/game/objects should now be in proper files or places with the exception of the files in the /weapons/ sub-folder. There's two instances of me not following the exact file structure. - /obj/item/brain has been moved to a file in mob/living/carbon/brain - /obj/item/clothing/mask/facehugger has been moved into mob/living/carbon/alien/special Both of these may not make sense according to the object structure, but they do make sense logically. If it's a problem just move them. Next up: Finish the files in the weapon folder, then start moving defines down. My god I hope I havent broken everything. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4547 316c924e-a436-60f5-8080-3fe189b3f50e
33 lines
848 B
Plaintext
33 lines
848 B
Plaintext
/obj/item/weapon/cloaking_device
|
|
name = "cloaking device"
|
|
desc = "Use this to become invisible to the human eyesocket."
|
|
icon = 'icons/obj/device.dmi'
|
|
icon_state = "shield0"
|
|
var/active = 0.0
|
|
flags = FPRINT | TABLEPASS| CONDUCT
|
|
item_state = "electronic"
|
|
throwforce = 10.0
|
|
throw_speed = 2
|
|
throw_range = 10
|
|
w_class = 2.0
|
|
origin_tech = "magnets=3;syndicate=4"
|
|
|
|
|
|
/obj/item/weapon/cloaking_device/attack_self(mob/user as mob)
|
|
src.active = !( src.active )
|
|
if (src.active)
|
|
user << "\blue The cloaking device is now active."
|
|
src.icon_state = "shield1"
|
|
else
|
|
user << "\blue The cloaking device is now inactive."
|
|
src.icon_state = "shield0"
|
|
src.add_fingerprint(user)
|
|
return
|
|
|
|
/obj/item/weapon/cloaking_device/emp_act(severity)
|
|
active = 0
|
|
icon_state = "shield0"
|
|
if(ismob(loc))
|
|
loc:update_icons()
|
|
..()
|