Files
Paradise/code/__DEFINES/mappers.dm
T
kyunkyunkyunandGitHub e48f4ddbf3 Make sinks/toilets/showers directional for mapping (#28940)
* update watercloset.dm (again)

* add missing returns and armor check

* updatepaths

* maybe now

* try this

* should be better

* paths

* sleep doesn't work

* is it better

* he slips xdd

* this

* come on

* ok i can't beat the grab
2025-04-26 18:06:38 +00:00

36 lines
864 B
Plaintext

/// Create directional subtypes for a path to simplify mapping.
#define MAPPING_DIRECTIONAL_HELPERS(path, offset_y, offset_x) ##path/directional/north {\
dir = NORTH; \
pixel_y = offset_y; \
} \
##path/directional/south {\
dir = SOUTH; \
pixel_y = -offset_y; \
} \
##path/directional/east {\
dir = EAST; \
pixel_x = offset_x; \
} \
##path/directional/west {\
dir = WEST; \
pixel_x = -offset_x; \
}
// If we want to set custom offset to each cardinal direction
#define MAPPING_DIRECTIONAL_HELPERS_CUSTOM(path, offset_north, offset_south, offset_east, offset_west) ##path/directional/north {\
dir = NORTH; \
pixel_y = offset_north; \
} \
##path/directional/south {\
dir = SOUTH; \
pixel_y = offset_south; \
} \
##path/directional/east {\
dir = EAST; \
pixel_x = offset_east; \
} \
##path/directional/west {\
dir = WEST; \
pixel_x = offset_west; \
}