antagonist

Vars | |
antag_hud_name | Name of the antag hud we provide to this mob. |
---|---|
antag_hud_type | What is the configuration of this antagonist's hud icon, such as it's screen position and style, so thatit doesn't break other in-game hud icons. |
antag_memory | String dialogue that is added to the player's in-round notes and memories regarding specifics of that antagonist, eg. the nuke code for nuke ops, or your unlock code for traitors. |
antag_moodlet | typepath of moodlet that the mob will gain when granted this antagonist type. |
antagpanel_category | Antagpanel will display these together, REQUIRED |
can_coexist_with_others | Whether or not the person will be able to have more than one datum |
can_elimination_hijack | If these antags are alone when a shuttle elimination happens. |
hijack_speed | If above 0, this is the multiplier for the speed at which we hijack the shuttle. Do not directly read, use hijack_speed(). |
info_button | button to access antag interface |
job_rank | The define string we use to identify the role for bans/player polls to spawn a random new one in. |
name | Public name for this antagonist. Appears for player prompts and round-end reports. |
objectives | List of the objective datums that this role currently has, completing all objectives at round-end will cause this antagonist to greentext. |
owner | Mind that owns this datum |
prevent_roundtype_conversion | If false, the roundtype will still convert with this antag active |
replace_banned | Should replace jobbanned player with ghosts if granted. |
roundend_category | Section of roundend report, datums with same category will be displayed together, also default header for the section |
show_in_antagpanel | This will hide adding this antag type in antag panel, use only for internal subtypes that shouldn't be added directly but still show if possessed by mind |
show_in_roundend | Set to false to hide the antagonists from roundend report |
show_name_in_check_antagonists | Will append antagonist name in admin listings - use for categories that share more than one antag type |
show_to_ghosts | Should this antagonist be shown as antag to ghosts? Shouldn't be used for stealthy antagonists like traitors |
silent | Silent will prevent the gain/lose texts to show |
soft_antag | If set to true, the antag will not be added to the living antag list. |
suicide_cry | The battlecry this antagonist shouts when suiciding with C4/X4. |
typecache_datum_blacklist | List of datums this type can't coexist with |
ui_name | name of the UI that will try to open, right now having nothing means this won't exist but in the future all should. |
Procs | |
antag_panel_data | Additional data to display in the antagonist panel section. For example, nuke disk code, genome count, etc |
clear_antag_moodies | Proc that removes this antagonist's ascribed moodlet from the player. |
farewell | Proc that sends fluff or instructional messages to the player when they lose this antag datum. Use this proc for playing sounds, sending alerts, or otherwise informing the player that they're no longer a specific antagonist type. |
get_admin_commands | List of ["Command"] = CALLBACK(), user will be appeneded to callback arguments on execution |
get_objectives | generic helper to send objectives as data through tgui. supports smart objectives too! |
get_team | Proc that will return the team this antagonist belongs to, when called. Helpful with antagonists that may belong to multiple potential teams in a single round, like families. |
give_antag_moodies | Proc that assigns this antagonist's ascribed moodlet to the player. |
greet | Proc that sends fluff or instructional messages to the player when they are given this antag datum. Use this proc for playing sounds, sending alerts, or helping to setup non-gameplay influencing aspects of the antagonist type. |
handle_clown_mutation | Handles adding and removing the clumsy mutation from clown antags. Gets called in apply/remove_innate_effects |
hijack_speed | Gets how fast we can hijack the shuttle, return 0 for can not hijack. Defaults to hijack_speed var, override for custom stuff like buffing hijack speed for hijack objectives or something. |
is_banned | Proc that checks the sent mob aganst the banlistfor this antagonist. Returns FALSE if no mob is sent, or the mob is not found to be banned. |
on_body_transfer | Called by the transfer_to() mind proc after the mind (mind.current and new_character.mind) has moved but before the player (key and client) is transfered. |
on_gain | Called by the add_antag_datum() mind proc after the instanced datum is added to the mind's antag_datums list. |
on_removal | Called by the remove_antag_datum() and remove_all_antag_datums() mind procs for the antag datum to handle its own removal and deletion. |
replace_banned_player | Proc that replaces a player who cannot play a specific antagonist due to being banned via a poll, and alerts the player of their being on the banlist. |
roundend_report | Proc that sends string information for the end-round report window to the server. This runs on every instance of every antagonist that exists at the end of the round. This is the body of the message, sandwiched between roundend_report_header and roundend_report_footer. |
roundend_report_footer | Proc that sends string data for the round-end report. Displayed after roundend_report and roundend_report_footer. Appears at the end of the roundend_catagory section. |
roundend_report_header | Proc that sends string data for the round-end report. Displayed before roundend_report and roundend_report_footer. Appears at start of roundend_catagory section. |
ui_interact | ANTAGONIST UI STUFF |
Var Details
antag_hud_name

Name of the antag hud we provide to this mob.
antag_hud_type

What is the configuration of this antagonist's hud icon, such as it's screen position and style, so thatit doesn't break other in-game hud icons.
antag_memory

String dialogue that is added to the player's in-round notes and memories regarding specifics of that antagonist, eg. the nuke code for nuke ops, or your unlock code for traitors.
antag_moodlet

typepath of moodlet that the mob will gain when granted this antagonist type.
antagpanel_category

Antagpanel will display these together, REQUIRED
can_coexist_with_others

Whether or not the person will be able to have more than one datum
can_elimination_hijack

If these antags are alone when a shuttle elimination happens.
hijack_speed

If above 0, this is the multiplier for the speed at which we hijack the shuttle. Do not directly read, use hijack_speed().
info_button

button to access antag interface
job_rank

The define string we use to identify the role for bans/player polls to spawn a random new one in.
name

Public name for this antagonist. Appears for player prompts and round-end reports.
objectives

List of the objective datums that this role currently has, completing all objectives at round-end will cause this antagonist to greentext.
owner

Mind that owns this datum
prevent_roundtype_conversion

If false, the roundtype will still convert with this antag active
replace_banned

Should replace jobbanned player with ghosts if granted.
roundend_category

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

This will hide adding this antag type in antag panel, use only for internal subtypes that shouldn't be added directly but still show if possessed by mind
show_in_roundend

Set to false to hide the antagonists from roundend report
show_name_in_check_antagonists

Will append antagonist name in admin listings - use for categories that share more than one antag type
show_to_ghosts

Should this antagonist be shown as antag to ghosts? Shouldn't be used for stealthy antagonists like traitors
silent

Silent will prevent the gain/lose texts to show
soft_antag

If set to true, the antag will not be added to the living antag list.
suicide_cry

The battlecry this antagonist shouts when suiciding with C4/X4.
typecache_datum_blacklist

List of datums this type can't coexist with
ui_name

name of the UI that will try to open, right now having nothing means this won't exist but in the future all should.
Proc Details
antag_panel_data
Additional data to display in the antagonist panel section. For example, nuke disk code, genome count, etc
clear_antag_moodies
Proc that removes this antagonist's ascribed moodlet from the player.
farewell
Proc that sends fluff or instructional messages to the player when they lose this antag datum. Use this proc for playing sounds, sending alerts, or otherwise informing the player that they're no longer a specific antagonist type.
get_admin_commands
List of ["Command"] = CALLBACK(), user will be appeneded to callback arguments on execution
get_objectives
generic helper to send objectives as data through tgui. supports smart objectives too!
get_team
Proc that will return the team this antagonist belongs to, when called. Helpful with antagonists that may belong to multiple potential teams in a single round, like families.
give_antag_moodies
Proc that assigns this antagonist's ascribed moodlet to the player.
greet
Proc that sends fluff or instructional messages to the player when they are given this antag datum. Use this proc for playing sounds, sending alerts, or helping to setup non-gameplay influencing aspects of the antagonist type.
handle_clown_mutation
Handles adding and removing the clumsy mutation from clown antags. Gets called in apply/remove_innate_effects
hijack_speed
Gets how fast we can hijack the shuttle, return 0 for can not hijack. Defaults to hijack_speed var, override for custom stuff like buffing hijack speed for hijack objectives or something.
is_banned
Proc that checks the sent mob aganst the banlistfor this antagonist. Returns FALSE if no mob is sent, or the mob is not found to be banned.
- mob/M: The mob that you are looking for on the banlist.
on_body_transfer
Called by the transfer_to() mind proc after the mind (mind.current and new_character.mind) has moved but before the player (key and client) is transfered.
on_gain
Called by the add_antag_datum() mind proc after the instanced datum is added to the mind's antag_datums list.
on_removal
Called by the remove_antag_datum() and remove_all_antag_datums() mind procs for the antag datum to handle its own removal and deletion.
replace_banned_player
Proc that replaces a player who cannot play a specific antagonist due to being banned via a poll, and alerts the player of their being on the banlist.
roundend_report
Proc that sends string information for the end-round report window to the server. This runs on every instance of every antagonist that exists at the end of the round. This is the body of the message, sandwiched between roundend_report_header and roundend_report_footer.
roundend_report_footer
Proc that sends string data for the round-end report. Displayed after roundend_report and roundend_report_footer. Appears at the end of the roundend_catagory section.
roundend_report_header
Proc that sends string data for the round-end report. Displayed before roundend_report and roundend_report_footer. Appears at start of roundend_catagory section.
ui_interact
ANTAGONIST UI STUFF