mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 10:21:11 +00:00
Smooth movement for simple mobs, bots, ventcrawling, singulo, mechs, and motor wheelchairs (#19196)
* Smooth movement for mech eye * Arguments for ForceMove * Smooth motor wheelchairs * Smooth ventcrawling eye * Singularity uses smooth novement * Simple mobs and simple bots use smooth movement
This commit is contained in:
committed by
jknpj
parent
38ec408ebe
commit
8d5f78b8b0
@@ -6,8 +6,9 @@
|
||||
var/mob/living/M=container.holder
|
||||
if(COMSIG_MOVE)
|
||||
if("loc" in args)
|
||||
walk_to(M, args["loc"], 1, walk_delay)
|
||||
M.start_walk_to(args["loc"], 1, walk_delay)
|
||||
if("dir" in args)
|
||||
M.set_glide_size(DELAY2GLIDESIZE(walk_delay))
|
||||
walk(M, args["dir"], walk_delay)
|
||||
|
||||
/datum/component/controller/movement/astar
|
||||
|
||||
Reference in New Issue
Block a user