Police tape overhaul

General purge of copypaste code

Framework for easier adding of new tape types
Now you only need two sprites of roll and sprites of tape length (H and V)
Define them in police_tape.dm

To show it off, engineering tape added, passable by engineers and atmos techs

Last but not least - ability to lift the tape, allowing passage for pretty much everything.
Done by those with access, attack by empty hand on help intent.
This commit is contained in:
unknown
2012-05-12 22:16:23 +03:00
parent 21f0783e90
commit 9efafd39bd
11 changed files with 134 additions and 171 deletions
+13 -13
View File
@@ -23,28 +23,28 @@
proc/initialize()
/obj/item/policetaperoll
name = "police tape roll"
desc = "A roll of police tape used to block off crime scenes from the public."
//Define all tape types in policetape.dm
/obj/item/taperoll
name = "tape roll"
icon = 'policetape.dmi'
icon_state = "rollstart"
flags = FPRINT
w_class = 1.0
var/tapestartx = 0
var/tapestarty = 0
var/tapestartz = 0
var/tapeendx = 0
var/tapeendy = 0
var/tapeendz = 0
var
turf/start
turf/end
tape_type = /obj/item/tape
icon_base
/obj/item/policetape
name = "police tape"
desc = "A length of police tape. Do not cross."
/obj/item/tape
name = "tape"
icon = 'policetape.dmi'
anchored = 1
density = 1
req_access = list(access_security)
var/icon_base
/*
*/
/obj/structure/signpost
icon = 'stationobjs.dmi'
icon_state = "signpost"