Grab and Drag Animations

Grab and Drag Animations, allowing players to see whos dragging who, via a pixel shift.
This commit is contained in:
QuoteFox
2020-07-02 09:58:24 +01:00
parent df2cab8aa0
commit ad898efb9e
10 changed files with 137 additions and 67 deletions
+9 -2
View File
@@ -56,8 +56,12 @@
M.buckling = null
return FALSE
if(M.pulledby && buckle_prevents_pull)
M.pulledby.stop_pulling()
if(M.pulledby)
if(buckle_prevents_pull)
M.pulledby.stop_pulling()
else if(isliving(M.pulledby))
var/mob/living/L = M.pulledby
L.reset_pull_offsets(M, TRUE)
if(!check_loc && M.loc != loc)
M.forceMove(loc)
@@ -138,4 +142,7 @@
"<span class='notice'>You unbuckle yourself from [src].</span>",\
"<span class='italics'>You hear metal clanking.</span>")
add_fingerprint(user)
if(isliving(M.pulledby))
var/mob/living/L = M.pulledby
L.set_pull_offsets(M, L.grab_state)
return M