game_mode
Vars | |
antag_datum | Typepath of the antagonist datum to hand out at round start |
---|---|
antag_flag | The antagonist flag to check player prefs for, for example ROLE_WIZARD |
antag_flag_to_ban_check | If a role is to be considered another for the purpose of banning. |
antag_preference | If set, will check this preference instead of antag_flag. |
antagonists | ALL antagonists, not just the roundstart ones |
death_timers | A k:v list of mind:time of death. |
exclusive_roles | If set, rule will only accept candidates from those roles. If on a roundstart ruleset, requires the player to have the correct antag pref enabled and any of the possible roles enabled. |
force_pre_setup_check | Even if the mode has no antag datum, force possible_antags to be built |
max_pop | The maximum players this gamemode can roll |
min_pop | The minimum players this gamemode can roll |
permadead_antag_pool | A list of names of antagonists who are permanantly. This list will be cut down to spend on midrounds. |
possible_antags | A list of minds that are elligible to be given antagonist at roundstart |
protected_jobs | A list of jobs that should not be this antagonist |
recommended_enemies | The recommended number of antag players for this round type |
required_enemies | The number of antag players required for this round type to be considered |
required_jobs | Jobs required for this round type to function, k:v list of JOB_TITLE : NUM_JOB. list(list(cap=1),list(hos=1,sec=2)) translates to one captain OR one hos and two secmans |
restricted_jobs | A list of jobs cannot physically be this antagonist, typically AI and borgs. |
setup_error | Dynamically set to what the problem was. Or the first problem, anyway. |
votable | Is the gamemode votable? !Not implimented! |
weight | This is a WEIGHT not a PROBABILITY |
Procs | |
admin_panel | Mode specific admin panel. |
check_for_errors | Pass in a list of players about to participate in roundstart, returns an error as a string if the round cannot start. |
execute_roundstart | Try to start this gamemode, called by SSticker. Returns FALSE if it fails. |
give_antag_datums | Actually send out the antag datums |
init_mob_signals | Setup signals for the antagonist's mind and mob. Make sure it gets cleared in handle_antagonist_mind_transfer. |
make_antag_chance | Handles late-join antag assignments |
on_failed_execute | Clean up a mess we may have made during set up. |
post_setup | Everyone should now be on the station and have their normal gear. This is the place to give the special roles extra things |
pre_setup | Populate the possible_antags list of minds, and any child behavior. |
process | Stub for reference that gamemodes do infact, process. |
select_antagonist | Add a mind to pre_setup_antags and perform any work on it. |
setup_antags | The absolute last thing called before the round starts. Setup gamemode info/antagonists. |
trim_candidates | Return a list of players that have our antag flag checked in prefs and are not banned, among other criteria. |
Var Details
antag_datum
Typepath of the antagonist datum to hand out at round start
antag_flag
The antagonist flag to check player prefs for, for example ROLE_WIZARD
antag_flag_to_ban_check
If a role is to be considered another for the purpose of banning.
antag_preference
If set, will check this preference instead of antag_flag.
antagonists
ALL antagonists, not just the roundstart ones
death_timers
A k:v list of mind:time of death.
exclusive_roles
If set, rule will only accept candidates from those roles. If on a roundstart ruleset, requires the player to have the correct antag pref enabled and any of the possible roles enabled.
force_pre_setup_check
Even if the mode has no antag datum, force possible_antags to be built
max_pop
The maximum players this gamemode can roll
min_pop
The minimum players this gamemode can roll
permadead_antag_pool
A list of names of antagonists who are permanantly. This list will be cut down to spend on midrounds.
possible_antags
A list of minds that are elligible to be given antagonist at roundstart
protected_jobs
A list of jobs that should not be this antagonist
recommended_enemies
The recommended number of antag players for this round type
required_enemies
The number of antag players required for this round type to be considered
required_jobs
Jobs required for this round type to function, k:v list of JOB_TITLE : NUM_JOB. list(list(cap=1),list(hos=1,sec=2)) translates to one captain OR one hos and two secmans
restricted_jobs
A list of jobs cannot physically be this antagonist, typically AI and borgs.
setup_error
Dynamically set to what the problem was. Or the first problem, anyway.
votable
Is the gamemode votable? !Not implimented!
weight
This is a WEIGHT not a PROBABILITY
Proc Details
admin_panel
Mode specific admin panel.
check_for_errors
Pass in a list of players about to participate in roundstart, returns an error as a string if the round cannot start.
execute_roundstart
Try to start this gamemode, called by SSticker. Returns FALSE if it fails.
give_antag_datums
Actually send out the antag datums
init_mob_signals
Setup signals for the antagonist's mind and mob. Make sure it gets cleared in handle_antagonist_mind_transfer.
make_antag_chance
Handles late-join antag assignments
on_failed_execute
Clean up a mess we may have made during set up.
post_setup
Everyone should now be on the station and have their normal gear. This is the place to give the special roles extra things
pre_setup
Populate the possible_antags list of minds, and any child behavior.
process
Stub for reference that gamemodes do infact, process.
select_antagonist
Add a mind to pre_setup_antags and perform any work on it.
setup_antags
The absolute last thing called before the round starts. Setup gamemode info/antagonists.
trim_candidates
Return a list of players that have our antag flag checked in prefs and are not banned, among other criteria.