/tg/ Station 13 - Modules - TypesVar Details - Proc Details

deathmatch_modifier

Deathmatch modifiers are little options the host can choose to spice the match a bit.

Vars

blacklisted_mapsA lazylist of map typepaths this is incomptable with.
blacklisted_modifiersA lazylist of modifier typepaths this is incompatible with.
colorThe color of the button shown in the UI
descriptionA small description/tooltip shown in the UI
nameThe name of the modifier
random_exemptedIs this trait exempted from the "Random Modifiers" modifier.

Procs

applyApply the modifier to the newly spawned player as the game is about to start
map_incompatibleReturns TRUE if map.type is in our blacklisted maps, FALSE otherwise.
on_end_gameCalled as the game has ended, right before the reservation is deleted.
on_map_changedCalled when the host chooses to change map. Returns FALSE if the new map is incompatible, TRUE otherwise.
on_selectCalled when selecting the deathmatch modifier.
on_start_gameCalled as the game is about to start.
selectableWhether or not this modifier can be selected, for both host and player-selected modifiers.
unselectWhen the host changes his mind and unselects it.

Var Details

blacklisted_maps

A lazylist of map typepaths this is incomptable with.

blacklisted_modifiers

A lazylist of modifier typepaths this is incompatible with.

color

The color of the button shown in the UI

description

A small description/tooltip shown in the UI

name

The name of the modifier

random_exempted

Is this trait exempted from the "Random Modifiers" modifier.

Proc Details

apply

Apply the modifier to the newly spawned player as the game is about to start

map_incompatible

Returns TRUE if map.type is in our blacklisted maps, FALSE otherwise.

on_end_game

Called as the game has ended, right before the reservation is deleted.

on_map_changed

Called when the host chooses to change map. Returns FALSE if the new map is incompatible, TRUE otherwise.

on_select

Called when selecting the deathmatch modifier.

on_start_game

Called as the game is about to start.

selectable

Whether or not this modifier can be selected, for both host and player-selected modifiers.

unselect

When the host changes his mind and unselects it.