Merge pull request #4415 from Fox-McCloud/flipping-out

Can Flip Over Someone
This commit is contained in:
TheDZD
2016-05-13 15:10:02 -04:00
+16 -6
View File
@@ -307,18 +307,28 @@
if (M == src)
M = null
if (M)
if(src.lying || src.weakened)
if(M)
if(lying || weakened)
message = "<B>[src]</B> flops and flails around on the floor."
else
message = "<B>[src]</B> flips in [M]'s general direction."
src.SpinAnimation(5,1)
SpinAnimation(5,1)
else
if(src.lying || src.weakened)
if(lying || weakened)
message = "<B>[src]</B> flops and flails around on the floor."
else
message = "<B>[src]</B> does a flip!"
src.SpinAnimation(5,1)
var/obj/item/weapon/grab/G = get_active_hand()
if(G && G.affecting)
var/turf/oldloc = loc
var/turf/newloc = G.affecting.loc
if(isturf(oldloc) && isturf(newloc))
SpinAnimation(5,1)
forceMove(newloc)
G.affecting.forceMove(oldloc)
message = "<B>[src]</B> flips over [G.affecting]!"
else
message = "<B>[src]</B> does a flip!"
SpinAnimation(5,1)
if ("aflap", "aflaps")
if (!src.restrained())