mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-09 16:14:13 +00:00
* explosion performance * Update code/game/objects/explosion.dm Co-authored-by: kane-f <57303506+kane-f@users.noreply.github.com> * Update explosion.dm * Update code/game/objects/explosion.dm Co-authored-by: Exxion <exxion191@gmail.com> * Update explosion.dm * thanks kanef * remove inward spiral * Update _HELPERS.dm * Update code/modules/multiz/_HELPERS.dm Co-authored-by: kane-f <57303506+kane-f@users.noreply.github.com> * Update code/modules/multiz/_HELPERS.dm Co-authored-by: kane-f <57303506+kane-f@users.noreply.github.com> * Update code/modules/multiz/_HELPERS.dm Co-authored-by: kane-f <57303506+kane-f@users.noreply.github.com> * move from unsorted to HELPERS * Update _HELPERS.dm * haha woops * Update unsorted.dm * remove explosion_recursive * explosion resistance * removing old code Co-authored-by: kane-f <57303506+kane-f@users.noreply.github.com> Co-authored-by: Exxion <exxion191@gmail.com>
53 lines
1.4 KiB
Plaintext
53 lines
1.4 KiB
Plaintext
/obj/structure/support_rail
|
|
desc = "A metal bar used to secure one's self. It has a label on the side that reads: 'Maximum Safe Capacity: 1, Enforceable by Space Law'. It looks pretty serious."
|
|
name = "support rail"
|
|
icon = 'icons/obj/objects.dmi'
|
|
icon_state = "rail"
|
|
density = 0
|
|
anchored = 1
|
|
flags = FPRINT
|
|
siemens_coefficient = 1
|
|
pressure_resistance = 5*ONE_ATMOSPHERE
|
|
layer = DECAL_LAYER
|
|
health = 10
|
|
var/destroyed = 0
|
|
var/mob/living/carbon/human/supported_mob
|
|
|
|
/obj/structure/support_rail/attackby(obj/item/weapon/W, mob/living/carbon/human/user as mob)
|
|
if(W.is_wrench(user))
|
|
W.playtoolsound(src, 50)
|
|
var/obj/item/stack/sheet/metal/M = new /obj/item/stack/sheet/metal(get_turf(src))
|
|
M.amount = 1
|
|
qdel(src)
|
|
else
|
|
return ..()
|
|
|
|
|
|
/obj/structure/support_rail/Destroy()
|
|
letgo()
|
|
..()
|
|
return
|
|
|
|
/obj/structure/support_rail/proc/letgo()
|
|
supported_mob.update_canmove()
|
|
supported_mob.anchored = 0
|
|
supported_mob.visible_message(
|
|
"<span class='notice'>[supported_mob.name] let go.</span>")
|
|
src.supported_mob = null
|
|
return
|
|
|
|
/obj/structure/support_rail/attack_hand(mob/user as mob)
|
|
if(supported_mob) //Anyone can force you to let go
|
|
letgo()
|
|
add_fingerprint(user)
|
|
else
|
|
supported_mob = user
|
|
user.visible_message(
|
|
"<span class='notice'>[supported_mob.name] grabbed the rail.</span>")
|
|
user.anchored = 1
|
|
user.forceMove(src.loc)
|
|
user.dir = src.dir
|
|
user.update_canmove()
|
|
add_fingerprint(user)
|
|
return
|