Goonstation 13 - Modules - TypesDefine Details

_std/defines/component_defines/component_defines_atom.dm

COMSIG_ATOM_DIR_CHANGEDwhen an atom changes dir (olddir, newdir)
COMSIG_ATOM_HITBY_PROJwhen an atom is collided by a projectile (/obj/projectile)
COMSIG_ATOM_HITBY_THROWNwhen an atom is hit by a thrown thing (hit_target, thrown_atom, /datum/thrown_thing)
COMSIG_ATOM_EXAMINEwhen an atom is examined (/mob/examiner, /list/lines), append to lines for more description
COMSIG_ATOM_HELP_MESSAGEWhen an atom is examined for its help message (/mob/examiner, /list/lines), append to lines for more description Use RegisterHelpMessageHandler instead as it adds the help verb on registration
COMSIG_UPDATE_ICONwhen something happens that should trigger an icon update. Or something.
COMSIG_ATOM_CROSSEDwhen something triggers Crossed by entering this atom's turf (/atom/movable)
COMSIG_ATOM_UNCROSSEDwhen something triggers Uncrossed by exiting this atom's turf (/atom/movable)
COMSIG_ATOM_PRE_UPDATE_ICONWhen something calls UpdateIcon, before the icon is updated
COMSIG_ATOM_POST_UPDATE_ICONWhen something calls UpdateIcon, after the icon is updated
COMSIG_ATOM_REAGENT_CHANGEWhen reagents change
COMSIG_ATOM_MOUSEDROPWhen an atom is dragged onto something (usr, over_object, src_location, over_location, src_control, over_control, params)
COMSIG_ATOM_MOUSEDROP_TWhen something is dragged onto an atom (object, usr, src_location, over_location, over_control, params)
COMSIG_ATOM_EXPLODEWhen the atom is a source of an explosion (object, args_to_explode_at)
COMSIG_ATOM_EXPLODE_INSIDEWhen the atom somewhere (possibly nested deep) in contents is a source of an explosion (object, args_to_explode_at)
COMSIG_ATOM_PROJECTILE_REFLECTEDWhen the atom reflects a projectile
COMSIG_ATOM_ENTEREDWhen something enters the contents of this atom (i.e. Entered()'s args: atom/movable, atom/OldLoc)
COMSIG_ATOM_ANALYZEWhen this atom is analyzed with a device analyzer (item, user)
COMSIG_ATTACKBYAttacking with an item in-hand (item, attacker, params, is_special)
COMSIG_ATTACKHANDAttacking without an item in-hand (attacker)
COMSIG_ATOM_SET_OPACITYwhen an atom changes its opacity (thing, previous_opacity)
COMSIG_ATOM_RADIOACTIVITYget radioactivity level of atom (0 if signal not registered - ie, has no radioactive component) (return_val as a list)
COMSIG_ATOM_CLEANEDwhen this atom has clean_forensic called, send this signal.
COMSIG_CORD_RETRACTsent to the parent object when its handset retracts, see /datum/component/cord
COMSIG_NEW_MINIMAP_MARKERWhen an atom requires to create a single minimap marker for a specific minimap.
COMSIG_MACHINERY_PROCESSWhen this piece of machinery calls its process function
COMSIG_MOVABLE_MOVEDwhen an AM moves on the map (thing, previous_loc, direction)
COMSIG_MOVABLE_PRE_MOVEwhen a movable is about to move, return true to prevent (thing, new_loc, direction)
COMSIG_MOVABLE_SET_LOCwhen an AM changes its loc (thing, previous_loc)
COMSIG_MOVABLE_THROW_ENDwhen an AM ends throw (thing, /datum/thrown_thing)
COMSIG_MOVABLE_RECEIVE_PACKETwhen an AM receives a packet (datum/signal/signal, receive_method, receive_param / range, connection_id)
COMSIG_MOVABLE_POST_RADIO_PACKETsend this signal to send a radio packet (datum/signal/signal, receive_param / range, frequency), if frequency is null all registered frequencies are used
COMSIG_MOVABLE_HIT_THROWNwhen an atom hits something when being thrown (thrown_atom, hit_target, /datum/thrown_thing)
COMSIG_MOVABLE_TELEPORTEDwhen an AM is teleported by do_teleport
COMSIG_MOVABLE_CONTRABAND_CHANGEDwhen an AM changes contraband level (self_applied)
COMSIG_MOVABLE_FLOOR_REVEALEDwhen an AM is revealed from under a floor tile (turf revealed from)
XSIG_OUTERMOST_MOVABLE_CHANGEDwhen the outermost movable in the .loc chain changes (thing, old_outermost_movable, new_outermost_movable)
XSIG_MOVABLE_AREA_CHANGEDWhen the outermost movable in the .loc chain moves to a new area. (thing, old_area, new_area)
XSIG_MOVABLE_TURF_CHANGEDWhen the outermost movable in the .loc chain moves to a new turf. (thing, old_turf, new_turf)
XSIG_MOVABLE_Z_CHANGEDwhen the z-level of a movable changes (works in nested contents) (thing, old_z_level, new_z_level)
COMSIG_TURF_CONTENTS_SET_OPACITYwhen an atom inside the turfs contents changes opacity (turf, previous_opacity, thing)
COMSIG_TURF_CONTENTS_SET_OPACITY_SMARTwhen an atom inside the turfs contents changes opacity, but only called when it would actually do a meaningful change (turf, previous_opacity, thing)
COMSIG_TURF_REPLACEDwhen a turf is replaced by another turf (what)
COMSIG_TURF_CONTENTS_SET_DENSITYwhen an atom inside the turfs contents changes density (turf, previous_density, thing)
COMSIG_OBJ_STORAGE_CLOSEDWhen the storage closes
COMSIG_OBJ_PROJ_COLLIDEAfter a projectile makes a valid hit on an atom (after immunity/other early returns, before other effects)
COMSIG_ITEM_EQUIPPEDWhen an item is equipped (user, slot)
COMSIG_ITEM_UNEQUIPPEDWhen an item is unequipped (user)
COMSIG_ITEM_PICKUPWhen an item is picked up (user)
COMSIG_ITEM_DROPPEDWhen an item is picked dropped (user)
COMSIG_ITEM_ATTACK_POSTWhen an item is used to attack a mob
COMSIG_ITEM_CONSUMED_PREJust before an item is eaten (eater,item)
COMSIG_ITEM_CONSUMEDWhen an item is eaten (eater,item)
COMSIG_ITEM_CONSUMED_PARTIALAfter an item's been eaten, but there's still some left (eater,item)
COMSIG_ITEM_ATTACKBY_PRECalled before an attackby that uses this item (target, user)
COMSIG_ITEM_ATTACK_PREWhen an item is used to attack a mob before it actually hurts the mob
COMSIG_ITEM_ATTACK_SELFWhen an item is used in-hand
COMSIG_ITEM_SWAP_TOWhen an item is swapped to [does not include being picked up/taken out of bags/etc] (user)
COMSIG_ITEM_SWAP_AWAYWhen an item is swapped away from [does not include being picked up/taken out of bags/etc] (user)
COMSIG_ITEM_SPECIAL_POSTAfter an item's itemspecial is used (user)
COMSIG_ITEM_PROCESSWhen items process ticks on an item
COMSIG_ITEM_AFTERATTACKAfter attacking any atom (not just mob) with this item (item, atom/target, mob/user, reach, params)
COMSIG_ITEM_TWIRLEDWhen the item in hand is twirl emoted and spun in hand. (user, item)
COMSIG_ITEM_BOMB_SIGNAL_STARTTriggers on the start of signalling the opening of an assembly bomb
COMSIG_ITEM_BOMB_SIGNAL_CANCELTriggers when an assembly bomb's signalling is cancelled
COMSIG_ITEM_IMPLANT_IMPLANTEDWhen implanted
COMSIG_ITEM_IMPLANT_REMOVEDWhen removed
COMSIG_MOB_LOGINWhen a client logs into a mob
COMSIG_MOB_LOGOUTWhen a client logs out of a mob
COMSIG_MOB_ATTACKED_PREAt the beginning of when an attackresults datum is being set up
COMSIG_MOB_DEATHWhen a mob dies
COMSIG_MOB_FAKE_DEATHWhen a mob fakes death
COMSIG_MOB_PICKUPWhen a mob picks up an item
COMSIG_MOB_DROPPEDWhen a mob drops an item
COMSIG_MOB_ITEM_CONSUMED_PREJust before an item is eaten (feeder,item)
COMSIG_MOB_ITEM_CONSUMEDWhen an item is eaten (feeder,item)
COMSIG_MOB_THROW_ITEMSent when a mob throws something (target, params)
COMSIG_MOB_THROW_ITEM_NEARBYSent when a mob throws something that lands nearby
COMSIG_MOB_SET_A_INTENTSent when a mob sets their a_intent var, returning anything will cancel the intent change (mob, intent)
COMSIG_MOB_GEIGER_TICKSent when radiation status ticks on mob (stage)
COMSIG_MOB_VOMITWhen the mob vomits
COMSIG_MOB_SHOCKED_DEFIBSent when defibbed status is added to a mob
COMSIG_MOB_MOUSEUPSent to mob when client lifts the mouse button
COMSIG_MOB_GRABBEDSent when a mob is grabbed by another mob (grab object)
COMSIG_MOB_EMOTESent when a mob emotes (emote, voluntary, emote target)
COMSIG_MOB_SHIELD_ACTIVATESent when a mob is checking for an active energy shield
COMSIG_MOB_FLIPSent when a mob flips, return TRUE to skip the rest of the flip emote coded, argument is (voluntary)
COMSIG_MOB_UPDATE_DAMAGESent when UpdateDamage() is called (prev_health)
COMSIG_MOB_RESISTSent when a mob resists, return TRUE to prevent other resist code from running
COMSIG_MOB_EX_ACTSent when the mob is affected by an explosion
COMSIG_MOB_POINTSent when the mob points at something (point target)
COMSIG_MOB_SPRINTSent when the mob starts sprinting, return TRUE to prevent other sprint code from running
COMSIG_MOB_SAYSent when the mob says something (message)
COMSIG_MOB_TRIGGER_THREATSent when the mob should trigger a threat grab (yes this is really specific but shush)
COMSIG_MOB_CLOAKING_DEVICE_DEACTIVATEMake cloaking devices turn off - sent to the mob
COMSIG_CREATE_TYPINGCreate typing indicator
COMSIG_REMOVE_TYPINGRemove typing indicator
COMSIG_SPEECH_BUBBLESpeech bubble
COMSIG_MOB_DISGUISER_DEACTIVATEMake disguiser devices turn off - sent to the mob
COMSIG_SERVER_DATA_SYNCEDSent when a server sync response is received

Define Details

COMSIG_ATOM_ANALYZE

When this atom is analyzed with a device analyzer (item, user)

COMSIG_ATOM_CLEANED

when this atom has clean_forensic called, send this signal.

COMSIG_ATOM_CROSSED

when something triggers Crossed by entering this atom's turf (/atom/movable)

COMSIG_ATOM_DIR_CHANGED

when an atom changes dir (olddir, newdir)

COMSIG_ATOM_ENTERED

When something enters the contents of this atom (i.e. Entered()'s args: atom/movable, atom/OldLoc)

COMSIG_ATOM_EXAMINE

when an atom is examined (/mob/examiner, /list/lines), append to lines for more description

COMSIG_ATOM_EXPLODE

When the atom is a source of an explosion (object, args_to_explode_at)

COMSIG_ATOM_EXPLODE_INSIDE

When the atom somewhere (possibly nested deep) in contents is a source of an explosion (object, args_to_explode_at)

COMSIG_ATOM_HELP_MESSAGE

When an atom is examined for its help message (/mob/examiner, /list/lines), append to lines for more description Use RegisterHelpMessageHandler instead as it adds the help verb on registration

COMSIG_ATOM_HITBY_PROJ

when an atom is collided by a projectile (/obj/projectile)

COMSIG_ATOM_HITBY_THROWN

when an atom is hit by a thrown thing (hit_target, thrown_atom, /datum/thrown_thing)

COMSIG_ATOM_MOUSEDROP

When an atom is dragged onto something (usr, over_object, src_location, over_location, src_control, over_control, params)

COMSIG_ATOM_MOUSEDROP_T

When something is dragged onto an atom (object, usr, src_location, over_location, over_control, params)

COMSIG_ATOM_POST_UPDATE_ICON

When something calls UpdateIcon, after the icon is updated

COMSIG_ATOM_PRE_UPDATE_ICON

When something calls UpdateIcon, before the icon is updated

COMSIG_ATOM_PROJECTILE_REFLECTED

When the atom reflects a projectile

COMSIG_ATOM_RADIOACTIVITY

get radioactivity level of atom (0 if signal not registered - ie, has no radioactive component) (return_val as a list)

COMSIG_ATOM_REAGENT_CHANGE

When reagents change

COMSIG_ATOM_SET_OPACITY

when an atom changes its opacity (thing, previous_opacity)

COMSIG_ATOM_UNCROSSED

when something triggers Uncrossed by exiting this atom's turf (/atom/movable)

COMSIG_ATTACKBY

Attacking with an item in-hand (item, attacker, params, is_special)

COMSIG_ATTACKHAND

Attacking without an item in-hand (attacker)

COMSIG_CORD_RETRACT

sent to the parent object when its handset retracts, see /datum/component/cord

COMSIG_CREATE_TYPING

Create typing indicator

COMSIG_ITEM_AFTERATTACK

After attacking any atom (not just mob) with this item (item, atom/target, mob/user, reach, params)

COMSIG_ITEM_ATTACKBY_PRE

Called before an attackby that uses this item (target, user)

COMSIG_ITEM_ATTACK_POST

When an item is used to attack a mob

COMSIG_ITEM_ATTACK_PRE

When an item is used to attack a mob before it actually hurts the mob

COMSIG_ITEM_ATTACK_SELF

When an item is used in-hand

COMSIG_ITEM_BOMB_SIGNAL_CANCEL

Triggers when an assembly bomb's signalling is cancelled

COMSIG_ITEM_BOMB_SIGNAL_START

Triggers on the start of signalling the opening of an assembly bomb

COMSIG_ITEM_CONSUMED

When an item is eaten (eater,item)

COMSIG_ITEM_CONSUMED_PARTIAL

After an item's been eaten, but there's still some left (eater,item)

COMSIG_ITEM_CONSUMED_PRE

Just before an item is eaten (eater,item)

COMSIG_ITEM_DROPPED

When an item is picked dropped (user)

COMSIG_ITEM_EQUIPPED

When an item is equipped (user, slot)

COMSIG_ITEM_IMPLANT_IMPLANTED

When implanted

COMSIG_ITEM_IMPLANT_REMOVED

When removed

COMSIG_ITEM_PICKUP

When an item is picked up (user)

COMSIG_ITEM_PROCESS

When items process ticks on an item

COMSIG_ITEM_SPECIAL_POST

After an item's itemspecial is used (user)

COMSIG_ITEM_SWAP_AWAY

When an item is swapped away from [does not include being picked up/taken out of bags/etc] (user)

COMSIG_ITEM_SWAP_TO

When an item is swapped to [does not include being picked up/taken out of bags/etc] (user)

COMSIG_ITEM_TWIRLED

When the item in hand is twirl emoted and spun in hand. (user, item)

COMSIG_ITEM_UNEQUIPPED

When an item is unequipped (user)

COMSIG_MACHINERY_PROCESS

When this piece of machinery calls its process function

COMSIG_MOB_ATTACKED_PRE

At the beginning of when an attackresults datum is being set up

COMSIG_MOB_CLOAKING_DEVICE_DEACTIVATE

Make cloaking devices turn off - sent to the mob

COMSIG_MOB_DEATH

When a mob dies

COMSIG_MOB_DISGUISER_DEACTIVATE

Make disguiser devices turn off - sent to the mob

COMSIG_MOB_DROPPED

When a mob drops an item

COMSIG_MOB_EMOTE

Sent when a mob emotes (emote, voluntary, emote target)

COMSIG_MOB_EX_ACT

Sent when the mob is affected by an explosion

COMSIG_MOB_FAKE_DEATH

When a mob fakes death

COMSIG_MOB_FLIP

Sent when a mob flips, return TRUE to skip the rest of the flip emote coded, argument is (voluntary)

COMSIG_MOB_GEIGER_TICK

Sent when radiation status ticks on mob (stage)

COMSIG_MOB_GRABBED

Sent when a mob is grabbed by another mob (grab object)

COMSIG_MOB_ITEM_CONSUMED

When an item is eaten (feeder,item)

COMSIG_MOB_ITEM_CONSUMED_PRE

Just before an item is eaten (feeder,item)

COMSIG_MOB_LOGIN

When a client logs into a mob

COMSIG_MOB_LOGOUT

When a client logs out of a mob

COMSIG_MOB_MOUSEUP

Sent to mob when client lifts the mouse button

COMSIG_MOB_PICKUP

When a mob picks up an item

COMSIG_MOB_POINT

Sent when the mob points at something (point target)

COMSIG_MOB_RESIST

Sent when a mob resists, return TRUE to prevent other resist code from running

COMSIG_MOB_SAY

Sent when the mob says something (message)

COMSIG_MOB_SET_A_INTENT

Sent when a mob sets their a_intent var, returning anything will cancel the intent change (mob, intent)

COMSIG_MOB_SHIELD_ACTIVATE

Sent when a mob is checking for an active energy shield

COMSIG_MOB_SHOCKED_DEFIB

Sent when defibbed status is added to a mob

COMSIG_MOB_SPRINT

Sent when the mob starts sprinting, return TRUE to prevent other sprint code from running

COMSIG_MOB_THROW_ITEM

Sent when a mob throws something (target, params)

COMSIG_MOB_THROW_ITEM_NEARBY

Sent when a mob throws something that lands nearby

COMSIG_MOB_TRIGGER_THREAT

Sent when the mob should trigger a threat grab (yes this is really specific but shush)

COMSIG_MOB_UPDATE_DAMAGE

Sent when UpdateDamage() is called (prev_health)

COMSIG_MOB_VOMIT

When the mob vomits

COMSIG_MOVABLE_CONTRABAND_CHANGED

when an AM changes contraband level (self_applied)

COMSIG_MOVABLE_FLOOR_REVEALED

when an AM is revealed from under a floor tile (turf revealed from)

COMSIG_MOVABLE_HIT_THROWN

when an atom hits something when being thrown (thrown_atom, hit_target, /datum/thrown_thing)

COMSIG_MOVABLE_MOVED

when an AM moves on the map (thing, previous_loc, direction)

COMSIG_MOVABLE_POST_RADIO_PACKET

send this signal to send a radio packet (datum/signal/signal, receive_param / range, frequency), if frequency is null all registered frequencies are used

COMSIG_MOVABLE_PRE_MOVE

when a movable is about to move, return true to prevent (thing, new_loc, direction)

COMSIG_MOVABLE_RECEIVE_PACKET

when an AM receives a packet (datum/signal/signal, receive_method, receive_param / range, connection_id)

COMSIG_MOVABLE_SET_LOC

when an AM changes its loc (thing, previous_loc)

COMSIG_MOVABLE_TELEPORTED

when an AM is teleported by do_teleport

COMSIG_MOVABLE_THROW_END

when an AM ends throw (thing, /datum/thrown_thing)

COMSIG_NEW_MINIMAP_MARKER

When an atom requires to create a single minimap marker for a specific minimap.

COMSIG_OBJ_PROJ_COLLIDE

After a projectile makes a valid hit on an atom (after immunity/other early returns, before other effects)

COMSIG_OBJ_STORAGE_CLOSED

When the storage closes

COMSIG_REMOVE_TYPING

Remove typing indicator

COMSIG_SERVER_DATA_SYNCED

Sent when a server sync response is received

COMSIG_SPEECH_BUBBLE

Speech bubble

COMSIG_TURF_CONTENTS_SET_DENSITY

when an atom inside the turfs contents changes density (turf, previous_density, thing)

COMSIG_TURF_CONTENTS_SET_OPACITY

when an atom inside the turfs contents changes opacity (turf, previous_opacity, thing)

COMSIG_TURF_CONTENTS_SET_OPACITY_SMART

when an atom inside the turfs contents changes opacity, but only called when it would actually do a meaningful change (turf, previous_opacity, thing)

COMSIG_TURF_REPLACED

when a turf is replaced by another turf (what)

COMSIG_UPDATE_ICON

when something happens that should trigger an icon update. Or something.

XSIG_MOVABLE_AREA_CHANGED

When the outermost movable in the .loc chain moves to a new area. (thing, old_area, new_area)

XSIG_MOVABLE_TURF_CHANGED

When the outermost movable in the .loc chain moves to a new turf. (thing, old_turf, new_turf)

XSIG_MOVABLE_Z_CHANGED

when the z-level of a movable changes (works in nested contents) (thing, old_z_level, new_z_level)

XSIG_OUTERMOST_MOVABLE_CHANGED

when the outermost movable in the .loc chain changes (thing, old_outermost_movable, new_outermost_movable)