Added wall lockers

Signed-off-by: Apple_Master <cheeckan@ymail.com>
This commit is contained in:
Apple_Master
2012-02-25 23:53:53 +00:00
parent fceecbf9b7
commit 7a0d186bb7
2 changed files with 33 additions and 0 deletions
+33
View File
@@ -0,0 +1,33 @@
/obj/walllocker
name = "Wall Locker"
icon = 'lockwall.dmi'
icon_state = "emerg"
var/list/spawnitems = list()
anchored = 1
var/amount = 3 // spawns each items X times.
/obj/walllocker/attack_hand(mob/user as mob)
if (istype(user, /mob/living/silicon/ai)) //Added by Strumpetplaya - AI shouldn't be able to
return //activate emergency lockers. This fixes that. (Does this make sense, the AI can't call attack_hand, can it? --Mloc)
if(!amount)
usr << "It's empty.."
return
if(amount)
for(var/path in spawnitems)
new path(src.loc)
amount--
return
/obj/walllocker/emerglocker
name = "Emergency Locker"
spawnitems = list(/obj/item/weapon/tank/emergency_oxygen,/obj/item/clothing/mask/breath,/obj/item/weapon/crowbar)
/obj/walllocker/emerglocker/north
pixel_y = 32
dir = SOUTH
/obj/walllocker/emerglocker/south
pixel_y = -32
dir = NORTH
/obj/walllocker/emerglocker/west
pixel_x = -32
dir = WEST
/obj/walllocker/emerglocker/east
pixel_x = 32
dir = EAST
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB