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
+4 -3
View File
@@ -117,15 +117,16 @@
for(var/obj/O in mob.user_movement_hooks)
O.intercept_user_move(direct, mob, n, oldloc)
var/atom/movable/P = mob.pulling
if(P && !ismob(P) && P.density)
mob.setDir(turn(mob.dir, 180))
if(L.pulling)
L.setDir(turn(L.dir, 180))
///Process_Grab()
///Called by client/Move()
///Checks to see if you are being grabbed and if so attemps to break it
/client/proc/Process_Grab()
if(mob.pulledby)
if((mob.pulledby == mob.pulling) && (mob.pulledby.grab_state == GRAB_PASSIVE)) //Don't autoresist passive grabs if we're grabbing them too.
return
if(mob.incapacitated(ignore_restraints = 1))
move_delay = world.time + 10
return TRUE