mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-20 18:47:20 +01:00
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:
@@ -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 ..()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user