mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-12 15:45:25 +01:00
ca93f6bc77
* Retrofit TG pathfinder with upstream improvements * i know how things work * don't use HAS_TRAIT for things that aren't traits * unique filenames * i'm just a goofy lil moron * use new block syntax * apparently values don't need clamping with new block syntax? * silence invalid JPS dest runtime * fix runtime passing ID instead of access list
13 lines
622 B
Plaintext
13 lines
622 B
Plaintext
/// Turf will be passable if density is 0
|
|
#define TURF_PATHING_PASS_DENSITY 0
|
|
/// Turf will be passable depending on [CanPathfindPass] return value
|
|
#define TURF_PATHING_PASS_PROC 1
|
|
/// Turf is never passable
|
|
#define TURF_PATHING_PASS_NO 2
|
|
|
|
/// Returns a list of turfs similar to CORNER_BLOCK but with offsets
|
|
#define CORNER_BLOCK_OFFSET(corner, width, height, offset_x, offset_y) (block(corner.x + offset_x, corner.y + offset_y, corner.z, corner.x + (width - 1) + offset_x, corner.y + (height - 1) + offset_y))
|
|
|
|
/// Returns a list of around us
|
|
#define TURF_NEIGHBORS(turf) (CORNER_BLOCK_OFFSET(turf, 3, 3, -1, -1) - turf)
|