mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-16 01:25:10 +01:00
@@ -27,12 +27,13 @@
|
||||
can_buckle = TRUE
|
||||
anchored = TRUE
|
||||
description_info = "Click and drag someone (or any object) to this to attach them to the clamp. If you are within reach, when you click and drag this to a turf adjacent to you, it will move the attached object there and release it."
|
||||
plane = ABOVE_MOB_PLANE
|
||||
|
||||
/obj/effect/hoist_hook/attack_hand(mob/living/user)
|
||||
return // This has to be overridden so that it works properly.
|
||||
|
||||
/obj/effect/hoist_hook/MouseDrop_T(atom/movable/AM,mob/user)
|
||||
if (use_check(user, USE_DISALLOW_SILICONS))
|
||||
if (use_check(user, 0))
|
||||
return
|
||||
|
||||
if (!AM.simulated || AM.anchored)
|
||||
@@ -57,7 +58,7 @@
|
||||
..()
|
||||
if(!Adjacent(usr) || !dest.Adjacent(usr)) return // carried over from the default proc
|
||||
|
||||
if (!ishuman(usr))
|
||||
if (!(ishuman(usr) || issilicon(usr)))
|
||||
return
|
||||
|
||||
if (usr.incapacitated())
|
||||
@@ -94,7 +95,7 @@
|
||||
icon = 'icons/obj/hoists.dmi'
|
||||
icon_state = "hoist_base"
|
||||
var/broken = 0
|
||||
density = TRUE
|
||||
density = FALSE
|
||||
anchored = TRUE
|
||||
name = "hoist"
|
||||
desc = "A manual hoist, uses a clamp and pulley to hoist things."
|
||||
@@ -175,9 +176,11 @@
|
||||
source_hoist.break_hoist()
|
||||
return
|
||||
|
||||
/obj/structure/hoist/attack_robot(mob/living/user)
|
||||
attack_hand(user)
|
||||
|
||||
/obj/structure/hoist/attack_hand(mob/living/user)
|
||||
if (!ishuman(user))
|
||||
if (!(ishuman(user) || issilicon(user)))
|
||||
return
|
||||
|
||||
if (user.incapacitated())
|
||||
@@ -226,7 +229,7 @@
|
||||
set category = "Object"
|
||||
set src in range(1)
|
||||
|
||||
if (!ishuman(usr))
|
||||
if (!(ishuman(usr) || issilicon(usr)))
|
||||
return
|
||||
|
||||
if (isobserver(usr) || usr.incapacitated())
|
||||
|
||||
Reference in New Issue
Block a user