mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-27 23:27:34 +01:00
[MIRROR] Fixes Mech Strafing [MDB IGNORE] (#25076)
* Fixes Mech Strafing (#79749) ## About The Pull Request Holding alt to turn while strafing in a mech actually works now. Closes #54727 ## Why It's Good For The Game Fixes a thing that was broken ## Changelog 🆑 fix: You can once again use alt to turn while strafing in a mech /🆑 * Fixes Mech Strafing --------- Co-authored-by: SapphicOverload <93578146+SapphicOverload@users.noreply.github.com>
This commit is contained in:
co-authored by
SapphicOverload
parent
4867c1e101
commit
a4385cd254
@@ -18,7 +18,8 @@
|
||||
if(user && movement_dir) //If we're not moving, don't compensate, as byond will auto-fill dir otherwise
|
||||
movement_dir = turn(movement_dir, -dir2angle(user.dir)) //By doing this we ensure that our input direction is offset by the client (camera) direction
|
||||
|
||||
if(user?.movement_locked)
|
||||
//turn without moving while using the movement lock key, unless something wants to ignore it and move anyway
|
||||
if(user?.movement_locked && !(SEND_SIGNAL(src, COMSIG_MOVABLE_KEYBIND_FACE_DIR, movement_dir) & COMSIG_IGNORE_MOVEMENT_LOCK))
|
||||
keybind_face_direction(movement_dir)
|
||||
else
|
||||
user?.Move(get_step(src, movement_dir), movement_dir)
|
||||
|
||||
Reference in New Issue
Block a user