mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-21 02:57:48 +01:00
Merge pull request #16506 from SabreML/dragging-tweaks
Fixes 'Face while pulling' oversights
This commit is contained in:
@@ -168,8 +168,13 @@
|
||||
direct = newdir
|
||||
n = get_step(mob, direct)
|
||||
|
||||
. = mob.SelfMove(n, direct, delay)
|
||||
if(mob.pulling?.face_while_pulling)
|
||||
var/prev_pulling_loc = null
|
||||
if(mob.pulling)
|
||||
prev_pulling_loc = mob.pulling.loc
|
||||
|
||||
. = mob.SelfMove(n, direct, delay) // The actual movement
|
||||
|
||||
if(prev_pulling_loc && mob.pulling?.face_while_pulling && (mob.pulling.loc != prev_pulling_loc))
|
||||
mob.setDir(get_dir(mob, mob.pulling)) // Face welding tanks and stuff when pulling
|
||||
else
|
||||
mob.setDir(direct)
|
||||
|
||||
Reference in New Issue
Block a user