Files
skull132 2aebd69d57 Moveable Machines Final II
Second attempt, let's go.
2014-08-19 23:32:19 +03:00

45 lines
1.3 KiB
Plaintext

//Cheap to put a single item per file, but fuck it! - Skull132
/obj/structure/banner
name = "Corporate Banner"
desc = "A blue flag emblazoned with a golden logo of Nanotrasen hanging from a wooden stand."
anchored = 1
density = 1
layer = 9
icon = 'icons/obj/banner.dmi'
icon_state = "banner_down"
/obj/structure/banner/verb/toggle()
set src in oview(1)
set category = "Object"
set name = "Toggle Banner"
if(!usr.canmove || usr.stat || usr.restrained())
return 0
switch(icon_state)
if("banner_down")
src.icon_state = "banner_up"
usr << "You roll up the cloth."
if("banner_up")
src.icon_state = "banner_down"
usr << "You let the cloth hang loose."
else
usr << "You feel slightly dumber."
return
src.update_icon()
/obj/structure/banner/attackby(obj/item/W, mob/user)
if(istype(W, /obj/item/weapon/wrench))
switch(anchored)
if(0)
anchored = 1
playsound(src.loc, 'sound/items/Ratchet.ogg', 75, 1)
user.visible_message("[user.name] secures [src.name] to the floor.", "You secure [src.name] to the floor.", "You hear a ratchet")
if(1)
anchored = 0
playsound(src.loc, 'sound/items/Ratchet.ogg', 75, 1)
user.visible_message("[user.name] unsecures [src.name] reinforcing bolts from the floor.", "You unsecure [src.name] from the floor.", "You hear a ratchet")
return