SS1984 - Modules - Types

code/__HELPERS/atoms.dm

/proc/is_location_within_transition_boundariesProc that returns if selected loc, or atom is within boundaries of playable area. (non-transitional space)
/proc/checkpassChecks if mover is movable atom and has passed pass_flags.
/proc/get_nested_locsReturns a list of all locations (except the area) the movable is within.
/proc/LinkBlockedAmong other things, used by flamethrower and boiler spray to calculate if flame/spray can pass through. Returns an atom for specific effects (primarily flames and acid spray) that damage things upon contact.
/proc/get_compass_dirget_dir() only considers an object to be north/south/east/west if there is zero deviation. This uses rounding instead. Ported from CM-SS13
/proc/IsFrozenChecks if an atom is currently frozen
/proc/get_atoms_of_typeReturns a list of atoms in a location of a given type. Can be refined to look for pixel-shift.
/proc/pick_closest_pathReturns a chosen path that is the closest to a list of matches
/proc/get_closest_atomReturns the closest atom of a specific type in a list from a source
/proc/urange_multizReturns all objects within a multiz-level range of the center atom
/proc/urangeReturns all objects within a specified range of the center atom (no limitations on distance, faster than range for distances > 8)
/proc/passA do nothing proc
/proc/is_source_facing_targetCompare source's dir, the clockwise dir of source and the anticlockwise dir of source To the opposite dir of the dir returned by get_dir(target,source) If one of them is a match, then source is facing target
/proc/random_stepForces the atom to take a step in a random direction
/proc/check_wall_itemCheck if there is already a wall item on the turf loc
/proc/getReturns the atom type in the specified loc
/proc/get_cardinal_dirGet the cardinal direction between two atoms
/proc/getRelativeDirectionGet the direction of startObj relative to endObj. Return values: To the right, 1. Below, 2. To the left, 3. Above, 4. Not found adjacent in cardinal directions, 0.
/proc/is_in_teleport_proof_areaChecks if an atom is in a teleport-proof area or z-level
/proc/can_lineChecks if a straight line can be drawn from source to target without hitting dense turfs within a specified length. Similar to can_line but only checks density and does not support other atoms.