SS1984 - Modules - TypesDefine Details

code/__DEFINES/dcs/signals/signals_mob/signals_mob_main.dm

COMSIG_MOB_LOGINfrom base of /mob/Login(): ()
COMSIG_MOB_LOGOUTfrom base of /mob/Logout(): ()
COMSIG_MOB_MIND_INITIALIZEDfrom base of /mob/mind_initialize
COMSIG_MOB_DEATHfrom base of mob/death(): (gibbed)
COMSIG_MOB_GHOSTIZEfrom base of mob/ghostize(): (mob/dead/observer/ghost)
COMSIG_MOB_STATCHANGEfrom base of mob/set_stat(): (new_stat)
COMSIG_MOB_CLICKONfrom base of mob/clickon(): (atom/A, params)
COMSIG_MOB_MIDDLECLICKONfrom base of mob/MiddleClickOn(): (atom/A)
COMSIG_MOB_ALTCLICKONfrom base of mob/AltClickOn(): (atom/A)
COMSIG_MOB_ALTCLICKON_SECONDARYfrom base of mob/alt_click_on_secodary(): (atom/A)
COMSIG_MOB_KEY_DROP_ITEM_DOWNfrom base of mob/key_down(): (_key, client/user)
COMSIG_MOB_KEYDOWNfrom /mob/proc/key_down(): (key, client/client, full_key)
COMSIG_MOB_CLIENT_LOGINsent when a mob/login() finishes: (client)
COMSIG_MOB_CLIENT_PRE_MOVEFrom base of /client/Move(): (new_loc, direction)
COMSIG_MOB_CLIENT_BLOCK_PRE_MOVEShould always match COMPONENT_MOVABLE_BLOCK_PRE_MOVE as these are interchangeable and used to block movement.
MOVE_ARG_NEW_LOCThe argument of move_args which corresponds to the loc we're moving to
MOVE_ARG_DIRECTIONThe arugment of move_args which dictates our movement direction
COMSIG_MOB_CLIENT_MOVEDFrom base of /client/Move(): (direction, old_dir)
COMSIG_MOB_CLIENT_PRE_NON_LIVING_MOVEFrom base of /client/Move(), invoked when a non-living mob is attempting to move: (list/move_args)
COMSIG_MOB_CLIENT_BLOCK_PRE_NON_LIVING_MOVECancels the move attempt
COMSIG_MOB_CLIENT_PRE_LIVING_MOVEFrom base of /client/Move(): (list/move_args)
COMSIG_MOB_CLIENT_BLOCK_PRE_LIVING_MOVEShould we stop the current living movement attempt
COMSIG_MOB_ALLOWEDfrom base of obj/allowed(mob/M): (/obj) returns bool, if TRUE the mob has id access to the obj
COMSIG_MOB_RECEIVE_MAGICfrom base of mob/anti_magic_check(): (mob/user, magic, holy, tinfoil, chargecost, self, protection_sources)
COMSIG_MOB_HUD_CREATEDfrom base of mob/create_mob_hud(): ()
COMSIG_MOB_HUD_REFRESHEDfrom base of hud/show_to(): (datum/hud/hud_source)
COMSIG_MOB_SIGHT_CHANGEfrom base of mob/set_sight(): (new_sight, old_sight)
COMSIG_MOB_SEE_INVIS_CHANGEfrom base of mob/set_invis_see(): (new_invis, old_invis)
COMSIG_MOB_SEE_IN_DARK_CHANGEfrom base of mob/set_see_in_dark(): (new_range, old_range)
COMSIG_MOB_ATTACK_HANDfrom base of atom/attack_hand(): (mob/user)
COMSIG_MOB_ITEM_ATTACKfrom base of /obj/item/attack(): (mob/M, mob/user)
COMSIG_MOB_APPLY_DAMAGE_MODIFIERSfrom base of /mob/living/proc/get_incoming_damage_modifier(): (list/damage_mods, damage, damagetype, def_zone, sharp, used_weapon)
COMSIG_MOB_APPLY_BLOCKING_RESISTANCESfrom base of /mob/living/proc/get_blocking_resistance(): (list/damage_resistances, damage, damagetype, def_zone, sharp, used_weapon)
COMSIG_MOB_APPLY_DAMAGEfrom base of /mob/living/proc/apply_damage(): (damage, damagetype, def_zone, blocked, sharp, used_weapon, spread_damage, forced)
COMSIG_MOB_ITEM_AFTERATTACKfrom base of obj/item/afterattack(): (atom/target, mob/user, proximity_flag, click_parameters)
COMPONENT_AFTERATTACK_PROCESSED_ITEMFlag for when /afterattack potentially acts on an item. Used for the swap hands/drop tutorials to know when you might just be trying to do something normally. Does not necessarily imply success, or even that it did hit an item, just intent.
COMSIG_MOB_ITEM_ATTACK_QDELETEDfrom base of obj/item/attack_qdeleted(): (atom/target, mob/user, proxiumity_flag, click_parameters)
COMSIG_MOB_ATTACK_RANGEDfrom base of mob/RangedAttack(): (atom/A, params)
COMSIG_MOB_ATTACK_RANGED_SECONDARYfrom base of mob/ranged_secondary_attack(): (atom/target, modifiers)
COMSIG_MOB_ATTACKED_RANGEDfrom base of mob/RangedAttack(): (atom/A, params) after being range attacked
COMSIG_MOB_THROWfrom base of /mob/throw_item(): (atom/target)
COMSIG_MOB_EXAMININGfrom base of /mob/verb/examinate(): (atom/target, list/examine_strings)
COMSIG_MOB_EXAMINATEfrom base of /mob/verb/examinate(): (atom/target)
COMSIG_MOB_EYECONTACTfrom /mob/living/handle_eye_contact(): (mob/living/other_mob)
COMSIG_BLOCK_EYECONTACTreturn this if you want to block printing this message to this person, if you want to print your own (does not affect the other person's message)
COMSIG_MOB_WEAPON_APPEARScalled when a user is getting new weapon and we want to remove previous weapon to clear hands
COMSIG_MOB_VERB_EXAMINATEfrom base of /mob/verb/examinate(): (atom/target)
COMSIG_MOB_RUN_EXAMINATEfrom base of /mob/proc/run_examinate(): (atom/target, list/result)
COMSIG_MOB_HALO_GAINEDfrom /datum/element/halo_attach
COMSIG_MOB_UPDATE_SIGHTfrom base of /mob/update_sight(): ()
COMSIG_MOB_SAYfrom /mob/living/say(): ()
COMSIG_MOB_ADJUST_FIREfrom mob/living/adjust_fire_stacks()
COMSIG_MOB_ATTACK_ALIENfrom base of /mob/living/attack_alien(): (user)
COMSIG_MOB_ADJUST_WETfrom mob/living/adjust_wet_stacks()
COMSIG_MOB_MOVE_INTENT_TOGGLEfrom base of /mob/living/toggle_move_intent(): (old_move_intent)
COMSIG_COMBINE_MESSAGE_FOR_HEARERfrom /mob/proc/combine_message (&msg)
COMSIG_MOB_DEADSAYfrom /mob/say_dead(): (mob/speaker, message)
COMSIG_MOB_PREEMOTESignal fired when an emote is used but before it's executed. from /datum/emote/proc/try_run_emote(): (key, intentional)
COMPONENT_BLOCK_EMOTE_UNUSABLEReturn this to block an emote and let the user know the emote is unusable.
COMPONENT_BLOCK_EMOTE_SILENTReturn this to block an emote silently.
COMSIG_MOB_EMOTEGeneral signal fired when a mob does any old emote from /datum/emote/proc/run_emote(): (key, intentional)
COMSIG_MOB_EMOTEDSpecific signal used to track when a specific emote is used. From /datum/emote/run_emote(): (P, key, m_type, message, intentional)
COMSIG_MOB_EMOTE_ATFrom /datum/emote/select_param(): (target, key, intentional)
COMSIG_MOB_POINTEDfrom base of /mob/verb/pointed: (atom/A)
COMSIG_MOB_SWAPPING_HANDSfrom base of mob/swap_hand(): (obj/item/currently_held_item)
COMSIG_MOB_SWAP_HANDSfrom base of mob/swap_hand(): () Performed after the hands are swapped.
COMSIG_MOB_GET_STATUS_TAB_ITEMSfrom mob/get_status_tab_items(): (list/items)
COMSIG_MOB_MOVESPEED_UPDATEDFrom base of mob/update_movespeed():area
COMSIG_MOB_SLIPPEDfrom /mob/proc/slip(): (weaken, obj/slipped_on, lube_flags [mobs.dm], tilesSlipped)
COMSIG_MOB_RESET_PERSPECTIVEFrom base of /mob/proc/reset_perspective() : ()
COMSIG_CLIENT_SET_EYEfrom base of /client/proc/set_eye() : (atom/old_eye, atom/new_eye)
COMSIG_MOB_CHANGED_TYPEfrom /mob/proc/change_mob_type() : ()
COMSIG_MOB_BATONEDFrom /obj/item/melee/baton/baton_effect(): (datum/source, mob/living/user, /obj/item/melee/baton)
COMSIG_MOB_UNEQUIPPED_ITEMA mob has just unequipped an item.
COMSIG_MOB_UPDATE_HELD_ITEMSFrom base of /mob/proc/update_held_items
COMSIG_MOB_LANGUAGE_ADDFrom /mob/add_language() (language_name)
COMSIG_MOB_LANGUAGE_REMOVEFrom /mob/remove_language() (language_name)
COMSIG_DO_AFTER_BEGANSent from /proc/do_after if someone starts a do_after action bar.
COMSIG_DO_AFTER_ENDEDSent from /proc/do_after once a do_after action completes, whether via the bar filling or via interruption.
COMSIG_MOB_MOUSEDOWNSent from /client/MouseDown(): (atom/object, turf/location, control, params)
COMSIG_MOB_MOUSEUPSent from /client/MouseUp(): (atom/object, turf/location, control, params)
COMSIG_MOB_MOUSEDRAGSent from /client/MouseDrag(): (atom/src_object, atom/over_object, turf/src_location, turf/over_location, src_control, over_control, params)

Define Details

COMPONENT_AFTERATTACK_PROCESSED_ITEM

Flag for when /afterattack potentially acts on an item. Used for the swap hands/drop tutorials to know when you might just be trying to do something normally. Does not necessarily imply success, or even that it did hit an item, just intent.

COMPONENT_BLOCK_EMOTE_SILENT

Return this to block an emote silently.

COMPONENT_BLOCK_EMOTE_UNUSABLE

Return this to block an emote and let the user know the emote is unusable.

COMSIG_BLOCK_EYECONTACT

return this if you want to block printing this message to this person, if you want to print your own (does not affect the other person's message)

COMSIG_CLIENT_SET_EYE

from base of /client/proc/set_eye() : (atom/old_eye, atom/new_eye)

COMSIG_COMBINE_MESSAGE_FOR_HEARER

from /mob/proc/combine_message (&msg)

COMSIG_DO_AFTER_BEGAN

Sent from /proc/do_after if someone starts a do_after action bar.

COMSIG_DO_AFTER_ENDED

Sent from /proc/do_after once a do_after action completes, whether via the bar filling or via interruption.

COMSIG_MOB_ADJUST_FIRE

from mob/living/adjust_fire_stacks()

COMSIG_MOB_ADJUST_WET

from mob/living/adjust_wet_stacks()

COMSIG_MOB_ALLOWED

from base of obj/allowed(mob/M): (/obj) returns bool, if TRUE the mob has id access to the obj

COMSIG_MOB_ALTCLICKON

from base of mob/AltClickOn(): (atom/A)

COMSIG_MOB_ALTCLICKON_SECONDARY

from base of mob/alt_click_on_secodary(): (atom/A)

COMSIG_MOB_APPLY_BLOCKING_RESISTANCES

from base of /mob/living/proc/get_blocking_resistance(): (list/damage_resistances, damage, damagetype, def_zone, sharp, used_weapon)

COMSIG_MOB_APPLY_DAMAGE

from base of /mob/living/proc/apply_damage(): (damage, damagetype, def_zone, blocked, sharp, used_weapon, spread_damage, forced)

COMSIG_MOB_APPLY_DAMAGE_MODIFIERS

from base of /mob/living/proc/get_incoming_damage_modifier(): (list/damage_mods, damage, damagetype, def_zone, sharp, used_weapon)

COMSIG_MOB_ATTACKED_RANGED

from base of mob/RangedAttack(): (atom/A, params) after being range attacked

COMSIG_MOB_ATTACK_ALIEN

from base of /mob/living/attack_alien(): (user)

COMSIG_MOB_ATTACK_HAND

from base of atom/attack_hand(): (mob/user)

COMSIG_MOB_ATTACK_RANGED

from base of mob/RangedAttack(): (atom/A, params)

COMSIG_MOB_ATTACK_RANGED_SECONDARY

from base of mob/ranged_secondary_attack(): (atom/target, modifiers)

COMSIG_MOB_BATONED

From /obj/item/melee/baton/baton_effect(): (datum/source, mob/living/user, /obj/item/melee/baton)

COMSIG_MOB_CHANGED_TYPE

from /mob/proc/change_mob_type() : ()

COMSIG_MOB_CLICKON

from base of mob/clickon(): (atom/A, params)

COMSIG_MOB_CLIENT_BLOCK_PRE_LIVING_MOVE

Should we stop the current living movement attempt

COMSIG_MOB_CLIENT_BLOCK_PRE_MOVE

Should always match COMPONENT_MOVABLE_BLOCK_PRE_MOVE as these are interchangeable and used to block movement.

COMSIG_MOB_CLIENT_BLOCK_PRE_NON_LIVING_MOVE

Cancels the move attempt

COMSIG_MOB_CLIENT_LOGIN

sent when a mob/login() finishes: (client)

COMSIG_MOB_CLIENT_MOVED

From base of /client/Move(): (direction, old_dir)

COMSIG_MOB_CLIENT_PRE_LIVING_MOVE

From base of /client/Move(): (list/move_args)

COMSIG_MOB_CLIENT_PRE_MOVE

From base of /client/Move(): (new_loc, direction)

COMSIG_MOB_CLIENT_PRE_NON_LIVING_MOVE

From base of /client/Move(), invoked when a non-living mob is attempting to move: (list/move_args)

COMSIG_MOB_DEADSAY

from /mob/say_dead(): (mob/speaker, message)

COMSIG_MOB_DEATH

from base of mob/death(): (gibbed)

COMSIG_MOB_EMOTE

General signal fired when a mob does any old emote from /datum/emote/proc/run_emote(): (key, intentional)

COMSIG_MOB_EMOTED

Specific signal used to track when a specific emote is used. From /datum/emote/run_emote(): (P, key, m_type, message, intentional)

COMSIG_MOB_EMOTE_AT

From /datum/emote/select_param(): (target, key, intentional)

COMSIG_MOB_EXAMINATE

from base of /mob/verb/examinate(): (atom/target)

COMSIG_MOB_EXAMINING

from base of /mob/verb/examinate(): (atom/target, list/examine_strings)

COMSIG_MOB_EYECONTACT

from /mob/living/handle_eye_contact(): (mob/living/other_mob)

COMSIG_MOB_GET_STATUS_TAB_ITEMS

from mob/get_status_tab_items(): (list/items)

COMSIG_MOB_GHOSTIZE

from base of mob/ghostize(): (mob/dead/observer/ghost)

COMSIG_MOB_HALO_GAINED

from /datum/element/halo_attach

COMSIG_MOB_HUD_CREATED

from base of mob/create_mob_hud(): ()

COMSIG_MOB_HUD_REFRESHED

from base of hud/show_to(): (datum/hud/hud_source)

COMSIG_MOB_ITEM_AFTERATTACK

from base of obj/item/afterattack(): (atom/target, mob/user, proximity_flag, click_parameters)

COMSIG_MOB_ITEM_ATTACK

from base of /obj/item/attack(): (mob/M, mob/user)

COMSIG_MOB_ITEM_ATTACK_QDELETED

from base of obj/item/attack_qdeleted(): (atom/target, mob/user, proxiumity_flag, click_parameters)

COMSIG_MOB_KEYDOWN

from /mob/proc/key_down(): (key, client/client, full_key)

COMSIG_MOB_KEY_DROP_ITEM_DOWN

from base of mob/key_down(): (_key, client/user)

COMSIG_MOB_LANGUAGE_ADD

From /mob/add_language() (language_name)

COMSIG_MOB_LANGUAGE_REMOVE

From /mob/remove_language() (language_name)

COMSIG_MOB_LOGIN

from base of /mob/Login(): ()

COMSIG_MOB_LOGOUT

from base of /mob/Logout(): ()

COMSIG_MOB_MIDDLECLICKON

from base of mob/MiddleClickOn(): (atom/A)

COMSIG_MOB_MIND_INITIALIZED

from base of /mob/mind_initialize

COMSIG_MOB_MOUSEDOWN

Sent from /client/MouseDown(): (atom/object, turf/location, control, params)

COMSIG_MOB_MOUSEDRAG

Sent from /client/MouseDrag(): (atom/src_object, atom/over_object, turf/src_location, turf/over_location, src_control, over_control, params)

COMSIG_MOB_MOUSEUP

Sent from /client/MouseUp(): (atom/object, turf/location, control, params)

COMSIG_MOB_MOVESPEED_UPDATED

From base of mob/update_movespeed():area

COMSIG_MOB_MOVE_INTENT_TOGGLE

from base of /mob/living/toggle_move_intent(): (old_move_intent)

COMSIG_MOB_POINTED

from base of /mob/verb/pointed: (atom/A)

COMSIG_MOB_PREEMOTE

Signal fired when an emote is used but before it's executed. from /datum/emote/proc/try_run_emote(): (key, intentional)

COMSIG_MOB_RECEIVE_MAGIC

from base of mob/anti_magic_check(): (mob/user, magic, holy, tinfoil, chargecost, self, protection_sources)

COMSIG_MOB_RESET_PERSPECTIVE

From base of /mob/proc/reset_perspective() : ()

COMSIG_MOB_RUN_EXAMINATE

from base of /mob/proc/run_examinate(): (atom/target, list/result)

COMSIG_MOB_SAY

from /mob/living/say(): ()

COMSIG_MOB_SEE_INVIS_CHANGE

from base of mob/set_invis_see(): (new_invis, old_invis)

COMSIG_MOB_SEE_IN_DARK_CHANGE

from base of mob/set_see_in_dark(): (new_range, old_range)

COMSIG_MOB_SIGHT_CHANGE

from base of mob/set_sight(): (new_sight, old_sight)

COMSIG_MOB_SLIPPED

from /mob/proc/slip(): (weaken, obj/slipped_on, lube_flags [mobs.dm], tilesSlipped)

COMSIG_MOB_STATCHANGE

from base of mob/set_stat(): (new_stat)

COMSIG_MOB_SWAPPING_HANDS

from base of mob/swap_hand(): (obj/item/currently_held_item)

COMSIG_MOB_SWAP_HANDS

from base of mob/swap_hand(): () Performed after the hands are swapped.

COMSIG_MOB_THROW

from base of /mob/throw_item(): (atom/target)

COMSIG_MOB_UNEQUIPPED_ITEM

A mob has just unequipped an item.

COMSIG_MOB_UPDATE_HELD_ITEMS

From base of /mob/proc/update_held_items

COMSIG_MOB_UPDATE_SIGHT

from base of /mob/update_sight(): ()

COMSIG_MOB_VERB_EXAMINATE

from base of /mob/verb/examinate(): (atom/target)

COMSIG_MOB_WEAPON_APPEARS

called when a user is getting new weapon and we want to remove previous weapon to clear hands

MOVE_ARG_DIRECTION

The arugment of move_args which dictates our movement direction

MOVE_ARG_NEW_LOC

The argument of move_args which corresponds to the loc we're moving to