From e7f4a8ffae8dd315f29ff5a653f2d8261d701782 Mon Sep 17 00:00:00 2001 From: Cocacolagua <48032385+Cocacolagua@users.noreply.github.com> Date: Mon, 27 Mar 2023 16:30:31 -0300 Subject: [PATCH] Fixes flipping through walls (#20714) * no more flipping thru da walls!!!! * now it works on mobs on harmintent * ...and tables lewl * resolve. mhm.hm yeah. * lol * yeah whatever you say REVIEWER Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com> --------- Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com> --- code/modules/mob/mob_emote.dm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/code/modules/mob/mob_emote.dm b/code/modules/mob/mob_emote.dm index cf5d3927f9e..ab8a2760a59 100644 --- a/code/modules/mob/mob_emote.dm +++ b/code/modules/mob/mob_emote.dm @@ -148,9 +148,11 @@ if(isturf(oldloc) && isturf(newloc)) user.SpinAnimation(5, 1) user.glide_for(0.6 SECONDS) // This and the glide_for below are purely arbitrary. Pick something that looks aesthetically pleasing. - user.forceMove(newloc) + var/old_pass = user.pass_flags + user.pass_flags |= (PASSMOB | PASSTABLE) + step(user, get_dir(oldloc, newloc)) + user.pass_flags = old_pass G.glide_for(0.6 SECONDS) - G.affecting.forceMove(oldloc) message = "flips over [G.affecting]!" return ..()