mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-09 16:14:13 +00:00
Pipe fixes, vent standardization, AI announce fixes.
This commit is contained in:
29
code/ATMOSPHERICS/utils.dm
Normal file
29
code/ATMOSPHERICS/utils.dm
Normal file
@@ -0,0 +1,29 @@
|
||||
/**
|
||||
* Atmospherics-related utilities
|
||||
*/
|
||||
|
||||
// Shapes
|
||||
#define PIPE_BINARY 0
|
||||
#define PIPE_STRAIGHT 1 // Like binary, but rotates differently.
|
||||
#define PIPE_BENT 2
|
||||
#define PIPE_TRINARY 3
|
||||
#define PIPE_UNARY 4
|
||||
#define PIPE_4W 5
|
||||
|
||||
// For straight pipes
|
||||
/proc/rotate_pipe_straight(var/newdir)
|
||||
switch(newdir)
|
||||
if(SOUTH) // 2->1
|
||||
return NORTH
|
||||
if(WEST) // 8->4
|
||||
return EAST
|
||||
// New - N3X
|
||||
if(NORTHWEST)
|
||||
return NORTH
|
||||
if(NORTHEAST)
|
||||
return EAST
|
||||
if(SOUTHWEST)
|
||||
return NORTH
|
||||
if(SOUTHEAST)
|
||||
return EAST
|
||||
return newdir
|
||||
Reference in New Issue
Block a user