byond - Modules - TypesVar Details - Proc Details

invalid

Vars

gear_scaleMultiplier to the amount of marine gear, current value as calculated with modifiers
gear_scale_maxMultiplier to the amount of marine gear, maximum reached value for
latejoin_larva_usedAmount of latejoin_tally already awarded as larvas
role_mappingsList of role titles to override to different roles when starting game
taskbar_iconWhen set and this gamemode is selected, the taskbar icon will change to the png selected here

Procs

can_startcan_start() Checks to see if the game can be setup and ran with the current number of players or whatnot.
ds_first_dropTriggered partway through the first drop, based on DROPSHIP_DROP_MSG_DELAY. Marines are underway but haven't yet landed.
ds_first_landedTriggered when the dropship first lands.
init_gear_scaleReturns a multiplier to the amount of gear that is to be distributed roundstart, stored in /datum/game_mode/var/gear_scale
latejoin_updateUpdates [var/latejoin_tally] and [var/gear_scale] based on role weights of latejoiners/cryoers. Delta is the amount of role positions added/removed
pick_queen_spawnPick and setup a queen spawn from landmarks, then spawns the player there alongside any required setup
post_setuppost_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_setuppre_setup() Attempts to select players for special roles the mode might have.
processprocess() Called by the gameticker
setup_structuresSpawn structures relevant to the game mode setup, done before actual game setup. By default try to setup everything.
update_gear_scaleUpdates the /datum/game_mode/var/gear_scale multiplier based on joining and cryoing marines

Var Details

gear_scale

Multiplier to the amount of marine gear, current value as calculated with modifiers

gear_scale_max

Multiplier to the amount of marine gear, maximum reached value for

latejoin_larva_used

Amount of latejoin_tally already awarded as larvas

role_mappings

List of role titles to override to different roles when starting game

taskbar_icon

When set and this gamemode is selected, the taskbar icon will change to the png selected here

Proc Details

can_start

can_start() Checks to see if the game can be setup and ran with the current number of players or whatnot.

ds_first_drop

Triggered partway through the first drop, based on DROPSHIP_DROP_MSG_DELAY. Marines are underway but haven't yet landed.

ds_first_landed

Triggered when the dropship first lands.

init_gear_scale

Returns a multiplier to the amount of gear that is to be distributed roundstart, stored in /datum/game_mode/var/gear_scale

latejoin_update

Updates [var/latejoin_tally] and [var/gear_scale] based on role weights of latejoiners/cryoers. Delta is the amount of role positions added/removed

pick_queen_spawn

Pick and setup a queen spawn from landmarks, then spawns the player there alongside any required setup

post_setup

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

pre_setup() Attempts to select players for special roles the mode might have.

process

process() Called by the gameticker

setup_structures

Spawn structures relevant to the game mode setup, done before actual game setup. By default try to setup everything.

update_gear_scale

Updates the /datum/game_mode/var/gear_scale multiplier based on joining and cryoing marines