From 41d967a7a359b1221e96cb8132d99ac86785edfc Mon Sep 17 00:00:00 2001 From: Zwei <35403274+Gottfrei@users.noreply.github.com> Date: Wed, 7 Aug 2024 12:31:00 +0300 Subject: [PATCH] add: JPS Move (#5673) JPS Move --- code/__DEFINES/dcs/signals.dm | 2 ++ code/controllers/subsystem/movement/movement_types.dm | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/code/__DEFINES/dcs/signals.dm b/code/__DEFINES/dcs/signals.dm index e6ed268862f..0df11bc11b3 100644 --- a/code/__DEFINES/dcs/signals.dm +++ b/code/__DEFINES/dcs/signals.dm @@ -1153,6 +1153,8 @@ #define COMSIG_MOVELOOP_POSTPROCESS "moveloop_postprocess" //from [/datum/move_loop/has_target/jps/recalculate_path] (): #define COMSIG_MOVELOOP_JPS_REPATH "moveloop_jps_repath" +///from [/datum/move_loop/has_target/jps/on_finish_pathing] +#define COMSIG_MOVELOOP_JPS_FINISHED_PATHING "moveloop_jps_finished_pathing" ///from of mob/MouseDrop(): (/atom/over, /mob/user) #define COMSIG_DO_MOB_STRIP "do_mob_strip" diff --git a/code/controllers/subsystem/movement/movement_types.dm b/code/controllers/subsystem/movement/movement_types.dm index e2b5d6eeb38..b31a98d74bd 100644 --- a/code/controllers/subsystem/movement/movement_types.dm +++ b/code/controllers/subsystem/movement/movement_types.dm @@ -309,7 +309,7 @@ moving.forceMove(get_step(moving, get_dir(moving, target))) return old_loc != moving?.loc ? MOVELOOP_SUCCESS : MOVELOOP_FAILURE -/* + /** * Used for following jps defined paths. The proc signature here's a bit long, I'm sorry * @@ -467,7 +467,6 @@ else INVOKE_ASYNC(src, PROC_REF(recalculate_path)) return MOVELOOP_FAILURE -*/ ///Base class of move_to and move_away, deals with the distance and target aspect of things