SS1984 - Modules - Types

code/__HELPERS/game.dm

/proc/get_area_nameReturns the name of the area the atom is in, with optional formatting
/proc/get_location_nameReturns the name of the area the atom is in, with optional formatting
/proc/ff_canseeChecks if there is a clear line of sight between two atoms using field of view algorithm
/proc/recursive_mob_checkWill recursively loop through an atom's contents and check for mobs, then it will loop through every atom in that atom's contents. It will keep doing this until it checks every content possible. This will fix any problems with mobs, that are inside objects, being unable to hear people due to being in a box within a bag.
/proc/get_mobs_in_viewThe old system would loop through lists for a total of 5000 per function call, in an empty server. This new system will loop at around 1000 in an empty server. Returns a list of mobs in range from source. Used in radio and say code.
/proc/try_move_adjacentAttempts to move a movable atom to an adjacent tile in a random cardinal direction
/proc/get_mob_by_keyFinds a mob by their ckey (case-insensitive)
/proc/screen_textReturn an object with a new maptext (not currently in use)
/proc/add_image_to_clientAdds an image to a client's .images. Useful as a callback.
/proc/add_image_to_clientsLike add_image_to_client, but will add the image from a list of clients
/proc/remove_image_from_clientRemoves an image from a client's .images. Useful as a callback.
/proc/remove_image_from_clientsLike remove_image_from_client, but will remove the image from a list of clients
/proc/flick_overlayAdd an image to a list of clients and calls a proc to remove it after a duration
/atom/movable/flick_visualHelper atom that copies an appearance and exists for a period
/proc/mobs_in_areaReturns a list of mobs in the specified area, optionally filtering by client presence
/proc/lavaland_equipment_pressure_checkChecks if the pressure at a given turf is low enough for lavaland equipment effects
/proc/poll_candidates_with_vetoPolls candidates with admin veto selection from a list of willing ghosts
/proc/pick_candidates_manuallyManually picks candidates from all available ghosts without a poll
/proc/pick_candidates_all_typesPresents admin with choice of candidate selection methods
/proc/send_to_playing_playersSends a whatever to all playing players; use instead of to_chat(world, where needed)
/proc/window_flashFlash the window of a player
/proc/get_valid_vent_spawnsReturns a list of vents that can be used as a potential spawn if they meet the criteria set by the arguments