check code/game/atoms.dm for these kind of procs.