-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Port /tg/ move manager, drift and jetpack components. (#27698)
* Port /tg/ move manager, drift and jetpack components. * don't add go through newtonian movement if not moved to a turf * various cleans for blood drifts and mob speed * fix slow meteors * why on fuck's earth aren't speedbikes vehicles * style lint * also wtf * okay i'm an idiot * fix meaty ore speed and blood decal double stepping * fix not unbuckling pulled object occupants * don't bother dealing with immovable rods just yet * exclude bubblegum and vetus from move manager for now * fix issues related to null weightless blood icons * reset blood icon state properly * fuck it, we'll deal with mobs when basic mobs happen * break infinite loop in decal splat
- Loading branch information
1 parent
3954981
commit 157276d
Showing
105 changed files
with
2,361 additions
and
533 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
///from [/datum/move_loop/start_loop] (): | ||
#define COMSIG_MOVELOOP_START "moveloop_start" | ||
///from [/datum/move_loop/stop_loop] (): | ||
#define COMSIG_MOVELOOP_STOP "moveloop_stop" | ||
///from [/datum/move_loop/process] (): | ||
#define COMSIG_MOVELOOP_PREPROCESS_CHECK "moveloop_preprocess_check" | ||
#define MOVELOOP_SKIP_STEP (1<<0) | ||
///from [/datum/move_loop/process] (succeeded, visual_delay): | ||
#define COMSIG_MOVELOOP_POSTPROCESS "moveloop_postprocess" | ||
//from [/datum/move_loop/has_target/jps/recalculate_path] (): | ||
#define COMSIG_MOVELOOP_JPS_REPATH "moveloop_jps_repath" | ||
///From base of /datum/move_loop/process() after attempting to move a movable: (datum/move_loop/loop, old_dir) | ||
#define COMSIG_MOVABLE_MOVED_FROM_LOOP "movable_moved_from_loop" | ||
///from [/datum/move_loop/has_target/jps/on_finish_pathing] | ||
#define COMSIG_MOVELOOP_JPS_FINISHED_PATHING "moveloop_jps_finished_pathing" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
/// The minimum for glide_size to be clamped to. | ||
#define MIN_GLIDE_SIZE 1 | ||
/// The maximum for glide_size to be clamped to. | ||
/// This shouldn't be higher than the icon size, and generally you shouldn't be changing this, but it's here just in case. | ||
#define MAX_GLIDE_SIZE 32 | ||
|
||
//Movement loop priority. Only one loop can run at a time, this dictates that | ||
// Higher numbers beat lower numbers | ||
///Standard, go lower then this if you want to override, higher otherwise | ||
#define MOVEMENT_DEFAULT_PRIORITY 10 | ||
///Very few things should override this | ||
#define MOVEMENT_SPACE_PRIORITY 100 | ||
///Higher then the heavens | ||
#define MOVEMENT_ABOVE_SPACE_PRIORITY (MOVEMENT_SPACE_PRIORITY + 1) | ||
|
||
//Movement loop flags | ||
///Should the loop act immediately following its addition? | ||
#define MOVEMENT_LOOP_START_FAST (1<<0) | ||
///Do we not use the priority system? | ||
#define MOVEMENT_LOOP_IGNORE_PRIORITY (1<<1) | ||
///Should we override the loop's glide? | ||
#define MOVEMENT_LOOP_IGNORE_GLIDE (1<<2) | ||
///Should we not update our movables dir on move? | ||
#define MOVEMENT_LOOP_NO_DIR_UPDATE (1<<3) | ||
///Is the loop moving the movable outside its control, like it's an external force? e.g. footsteps won't play if enabled. | ||
#define MOVEMENT_LOOP_OUTSIDE_CONTROL (1<<4) | ||
|
||
// Movement loop status flags | ||
/// Has the loop been paused, soon to be resumed? | ||
#define MOVELOOP_STATUS_PAUSED (1<<0) | ||
/// Is the loop running? (Is true even when paused) | ||
#define MOVELOOP_STATUS_RUNNING (1<<1) | ||
/// Is the loop queued in a subsystem? | ||
#define MOVELOOP_STATUS_QUEUED (1<<2) | ||
|
||
/** | ||
* Returns a bitfield containing flags both present in `flags` arg and the `processing_move_loop_flags` move_packet variable. | ||
* Has no use outside of procs called within the movement proc chain. | ||
*/ | ||
#define CHECK_MOVE_LOOP_FLAGS(movable, flags) (movable.move_packet ? (movable.move_packet.processing_move_loop_flags & (flags)) : NONE) | ||
|
||
//Index defines for movement bucket data packets | ||
#define MOVEMENT_BUCKET_TIME 1 | ||
#define MOVEMENT_BUCKET_LIST 2 | ||
|
||
///Return values for moveloop Move() | ||
#define MOVELOOP_FAILURE 0 | ||
#define MOVELOOP_SUCCESS 1 | ||
#define MOVELOOP_NOT_READY 2 | ||
|
||
#define ACTIVE_MOVEMENT_OLDLOC 1 | ||
#define ACTIVE_MOVEMENT_DIRECTION 2 | ||
#define ACTIVE_MOVEMENT_FORCED 3 | ||
#define ACTIVE_MOVEMENT_OLDLOCS 4 | ||
|
||
/// The arguments of this macro correspond directly to the argument order of /atom/movable/proc/Moved | ||
#define SET_ACTIVE_MOVEMENT(_old_loc, _direction, _forced, _oldlocs) \ | ||
active_movement = list( \ | ||
_old_loc, \ | ||
_direction, \ | ||
_forced, \ | ||
_oldlocs, \ | ||
) | ||
|
||
/// Finish any active movements | ||
#define RESOLVE_ACTIVE_MOVEMENT \ | ||
if(active_movement) { \ | ||
var/__move_args = active_movement; \ | ||
active_movement = null; \ | ||
Moved(arglist(__move_args)); \ | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.