Space Station 13 - Modules - TypesVar Details - Proc Details

antagonist

Vars

antag_datum_blacklistList of other antag datum types that this type can't coexist with.
antag_hud_nameHolds the name of the hud's icon in the .dmi files, i.e "hudtraitor", "hudvampire", etc.
antag_hud_typeHolds the type of antagonist hud this datum will get, i.e. ANTAG_HUD_TRAITOR, ANTAG_HUD_VAMPIRE, etc.
antag_memoryAntagonist datum specific information that appears in the player's notes. Information stored here will be removed when the datum is removed from the player.
blurb_fontIntro Blurb Font
blurb_text_colorIntro Blurbs text colour
blurb_text_outline_widthIntro Blurbs outline width
clown_gain_textIf the owner is a clown, this text will be displayed to them when they gain this datum.
clown_removal_textIf the owner is a clown, this text will be displayed to them when they lose this datum.
clown_text_span_classThe spawn class to use for gain/removal clown text
delayed_objectivesDo we have delayed objective giving?
give_objectivesShould we automatically give this antagonist objectives upon them gaining the datum?
job_rankUsed to determine if the player jobbanned from this role. Things like SPECIAL_ROLE_TRAITOR should go here to determine the role.
mimickingIf the antagonist can have their spoken voice be something else, this is the "voice" that they will appear as.
nameThe name of the antagonist.
objective_holderList of objectives connected to this datum.
organizationThe organization, if any, this antag is associated with
ownerMind that owns this datum.
replace_bannedShould we replace the role-banned player with a ghost?
roundend_categorySection of roundend report, datums with same category will be displayed together, also default header for the section.
show_in_roundendSet to false to hide the antagonists from roundend report.
silentShould the owner mob get a greeting text? Determines whether or not the greet() proc is called.
special_roleThe special role that will be applied to the owner's special_role var. i.e. SPECIAL_ROLE_TRAITOR, SPECIAL_ROLE_VAMPIRE.
wiki_page_nameThe url page name for this antagonist, appended to the end of the wiki url in the form of: [GLOB.configuration.url.wiki_url]/index.php/[wiki_page_name]

Procs

add_antag_hudAdds this datum's antag hud to antag_mob.
add_antag_objectiveCreate and add an objective of the given type.
add_owner_to_gamemodeAdds the owner to their respective gamemode's list. For example SSticker.mode.traitors |= owner.
apply_innate_effectsThis handles the application of antag huds/special abilities.
can_be_ownedLoops through the owner's antag_datums list and determines if this one is blacklisted by any others.
create_teamCreates a new antagonist team.
custom_blurbThis is the custom blurb message used on login for an antagonist.
detach_from_ownerRemoves owner's dependencies on this antag datum. For example: removal of antag datum from owner's antag_datums, antag datum related teams etc. If your /datum/antagonist subtype adds more dependencies on owner - they should be cleared there.
farewellDisplays a message to the antag mob while the datum is being deleted, i.e. "Your powers are gone and you're no longer a vampire!"
finalize_antagGive the antag any final information or items.
forge_basic_objectivesCreate and assign a full set of randomized, basic human traitor objectives. can_hijack - If you want the 10% chance for the antagonist to be able to roll hijack, only true for traitors
forge_single_human_objectiveCreate and assign a single randomized human traitor objective.
get_antag_objectivesGet all of this antagonist's objectives, including from the team.
get_teamReturns the team the antagonist belongs to, if any.
give_objectivesGive the antagonist their objectives. Base proc, override as needed.
greetDisplays a message and their objectives to the antag mob after the datum is added to them, i.e. "Greetings you are a traitor! etc.
handle_clown_mutationHandles adding and removing the clumsy mutation from clown antags.
has_antag_objectivesDo we have any objectives at all, including from a team. Faster than get_antag_objectives()
is_bannedChecks if the person trying to receive this datum is role banned from it.
on_body_transferRemoves antagonist datum effects from the old body and applies it to the new one.
on_gainProc called when the datum is given to a mind.
remove_antag_hudRemoves this datum's antag hud from antag_mob.
remove_antag_objectiveComplement to add_antag_objective that removes the objective. Currently unused.
remove_innate_effectsThis handles the removal of antag huds/special abilities.
remove_owner_from_gamemodeRemoves the owner from their respective gamemode's list. For example SSticker.mode.traitors -= owner.
replace_banned_playerAttempts to replace the role banned antag with a ghost player.
restore_last_hud_and_roleRe-sets the antag hud and special_role of the owner to that of the previous antag datum they had before this one was added.
select_organizationSelects and set the organization this antag is associated with. Base proc, override as needed

Var Details

antag_datum_blacklist

List of other antag datum types that this type can't coexist with.

antag_hud_name

Holds the name of the hud's icon in the .dmi files, i.e "hudtraitor", "hudvampire", etc.

antag_hud_type

Holds the type of antagonist hud this datum will get, i.e. ANTAG_HUD_TRAITOR, ANTAG_HUD_VAMPIRE, etc.

antag_memory

Antagonist datum specific information that appears in the player's notes. Information stored here will be removed when the datum is removed from the player.

blurb_font

Intro Blurb Font

blurb_text_color

Intro Blurbs text colour

blurb_text_outline_width

Intro Blurbs outline width

clown_gain_text

If the owner is a clown, this text will be displayed to them when they gain this datum.

clown_removal_text

If the owner is a clown, this text will be displayed to them when they lose this datum.

clown_text_span_class

The spawn class to use for gain/removal clown text

delayed_objectives

Do we have delayed objective giving?

give_objectives

Should we automatically give this antagonist objectives upon them gaining the datum?

job_rank

Used to determine if the player jobbanned from this role. Things like SPECIAL_ROLE_TRAITOR should go here to determine the role.

mimicking

If the antagonist can have their spoken voice be something else, this is the "voice" that they will appear as.

name

The name of the antagonist.

objective_holder

List of objectives connected to this datum.

organization

The organization, if any, this antag is associated with

owner

Mind that owns this datum.

replace_banned

Should we replace the role-banned player with a ghost?

roundend_category

Section of roundend report, datums with same category will be displayed together, also default header for the section.

show_in_roundend

Set to false to hide the antagonists from roundend report.

silent

Should the owner mob get a greeting text? Determines whether or not the greet() proc is called.

special_role

The special role that will be applied to the owner's special_role var. i.e. SPECIAL_ROLE_TRAITOR, SPECIAL_ROLE_VAMPIRE.

wiki_page_name

The url page name for this antagonist, appended to the end of the wiki url in the form of: [GLOB.configuration.url.wiki_url]/index.php/[wiki_page_name]

Proc Details

add_antag_hud

Adds this datum's antag hud to antag_mob.

Arguments:

add_antag_objective

Create and add an objective of the given type.

If the given objective type needs a target, it will try to find a target which isn't already the target of different objective for this antag. If one cannot be found, it tries one more time. If one still cannot be found, it will be added as a "Free Objective" without a target.

Arguments:

add_owner_to_gamemode

Adds the owner to their respective gamemode's list. For example SSticker.mode.traitors |= owner.

apply_innate_effects

This handles the application of antag huds/special abilities.

Gives the antag mob their assigned hud. If they're a clown, removes their clumsy mutataion.

Arguments:

can_be_owned

Loops through the owner's antag_datums list and determines if this one is blacklisted by any others.

If it's in one of their blacklists, return FALSE. It cannot coexist with the datum we're trying to add here.

create_team

Creates a new antagonist team.

custom_blurb

This is the custom blurb message used on login for an antagonist.

detach_from_owner

Removes owner's dependencies on this antag datum. For example: removal of antag datum from owner's antag_datums, antag datum related teams etc. If your /datum/antagonist subtype adds more dependencies on owner - they should be cleared there.

farewell

Displays a message to the antag mob while the datum is being deleted, i.e. "Your powers are gone and you're no longer a vampire!"

Called in on_removal() if silent is set to FALSE.

finalize_antag

Give the antag any final information or items.

forge_basic_objectives

Create and assign a full set of randomized, basic human traitor objectives. can_hijack - If you want the 10% chance for the antagonist to be able to roll hijack, only true for traitors

forge_single_human_objective

Create and assign a single randomized human traitor objective.

get_antag_objectives

Get all of this antagonist's objectives, including from the team.

get_team

Returns the team the antagonist belongs to, if any.

give_objectives

Give the antagonist their objectives. Base proc, override as needed.

greet

Displays a message and their objectives to the antag mob after the datum is added to them, i.e. "Greetings you are a traitor! etc.

Called in on_gain() if silent it set to FALSE.

handle_clown_mutation

Handles adding and removing the clumsy mutation from clown antags.

Arguments:

has_antag_objectives

Do we have any objectives at all, including from a team. Faster than get_antag_objectives()

is_banned

Checks if the person trying to receive this datum is role banned from it.

on_body_transfer

Removes antagonist datum effects from the old body and applies it to the new one.

Called in the/datum/mind/proc/transfer_to().

Arguments:

on_gain

Proc called when the datum is given to a mind.

remove_antag_hud

Removes this datum's antag hud from antag_mob.

Arguments:

remove_antag_objective

Complement to add_antag_objective that removes the objective. Currently unused.

remove_innate_effects

This handles the removal of antag huds/special abilities.

Removes the antag's assigned hud. If they're a clown, gives them back their clumsy mutataion.

Arguments:

remove_owner_from_gamemode

Removes the owner from their respective gamemode's list. For example SSticker.mode.traitors -= owner.

replace_banned_player

Attempts to replace the role banned antag with a ghost player.

restore_last_hud_and_role

Re-sets the antag hud and special_role of the owner to that of the previous antag datum they had before this one was added.

For example, if the owner has a traitor datum and a vampire datum, both at index 1 and 2 respectively, After the vampire datum gets removed, it sets the owner's antag hud/role to whatever is set for traitor datum.

select_organization

Selects and set the organization this antag is associated with. Base proc, override as needed