/tg/ Station 13 - Modules - TypesProc Details

status_indicator

Procs

add_status_indicatorAdds a status indicator to the mob. If it exists, it won't dupe it.
animate_new_indicatorRefreshes the indicators over a mob's head. Should only be called when adding or removing a status indicator with the above procs, or when the mob changes size visually for some reason.
indicator_fakeoutsCases in which no status indicators should appear above a mob, such as changeling revive and regen coma.
is_confusedReturns true if the mob has confusion.
is_paralyzedReturns true if the mob is paralyzed - for can't fight back purposes.
is_stunnedReturns true if the mob is stunned.
is_unconciousReturns true if the mob is unconcious for any reason.
is_weakenedReturns true if the mob is weakened. Also known as floored.
remove_status_indicatorSimilar to add_status_indicator() but removes it instead, and nulls the list if it becomes empty as a result.
status_indicator_evaluateReceives signals to update on carbon health updates. Checks if the mob is dead - if true, removes all the indicators. Then, we determine what status indicators the mob should carry or remove.

Proc Details

add_status_indicator

Adds a status indicator to the mob. If it exists, it won't dupe it.

animate_new_indicator

Refreshes the indicators over a mob's head. Should only be called when adding or removing a status indicator with the above procs, or when the mob changes size visually for some reason.

indicator_fakeouts

Cases in which no status indicators should appear above a mob, such as changeling revive and regen coma.

is_confused

Returns true if the mob has confusion.

is_paralyzed

Returns true if the mob is paralyzed - for can't fight back purposes.

is_stunned

Returns true if the mob is stunned.

is_unconcious

Returns true if the mob is unconcious for any reason.

is_weakened

Returns true if the mob is weakened. Also known as floored.

remove_status_indicator

Similar to add_status_indicator() but removes it instead, and nulls the list if it becomes empty as a result.

status_indicator_evaluate

Receives signals to update on carbon health updates. Checks if the mob is dead - if true, removes all the indicators. Then, we determine what status indicators the mob should carry or remove.