mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-19 01:57:54 +01:00
* 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
36 lines
864 B
Plaintext
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; \
|
|
}
|