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>
This commit is contained in:
Cocacolagua
2023-03-27 21:30:31 +02:00
committed by GitHub
co-authored by Luc
parent 32cb530b0f
commit e7f4a8ffae
+4 -2
View File
@@ -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 ..()